Question
All that is needed is the CODE and must be all done with C# in Visual Studio 2022. The following additions MUST be added to
All that is needed is the CODE and must be all done with C# in Visual Studio 2022. The following additions MUST be added to the code as well. There are also other mandatory requirements below:
For this assignment, all functionality should be in your Main method. Just for clarification, the 5 mentioned values (facts) are to be entered for each customer. Allow the user of the program to be able to enter the information for any number of customers (hence use a sentinel-controlled loop as specified).
Additions: - Validate that each of the 5 entered values is 0 or more (use validation loops for each). - If the credit limit has been exceeded, also display by how much. - When done looping, display how many customers exceeded their limit and how many did not.
There must also be a change: It states that the entered facts should be integers. Instead, allow decimal digits for the 4 monetary-related facts. When displaying the ending balance, ensure that 2 (and only 2) decimal digits are displayed.
5.18 (Credit-Limit Calculator) Develop a C\# app that will determine whether any of several department-store customers has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) account number, b) balance at the beginning of the month, c) total of all items charged by the customer this month, d) total of all credits applied to the customer's account this month and e) allowed credit limit. The app should input all these facts as integers, calculate the new balance (= beginning balance + charges - credits), display the new balance and determine whether the new balance exceeds the customer's credit limit. For those whose credit limit is exceeded, the app should display the message "Credit 7 imit exceeded". Use sentinel-controlled iteration to obtain the data for each accountStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started