Question: Instructions 4.14 (Credit Limits) Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For

 Instructions 4.14 (Credit Limits) Develop a C++ program that will determinewhether a department-store customer has exceeded the credit limit on a charge

Instructions 4.14 (Credit Limits) Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: A. Account number (an integer) B. Balance at the beginning of the month C. Total of all items charged by this customer this month D. Total of all credits applied to this customer's account this month E. Allowed credit limit The program should use a while statement to input each of these facts, calculate the new balance (= beginning balance + charges - Credits) and determine whether the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number, credit limit, new balance and the message "Credit Limit Exceeded." Enter account number (or -1 to quit): 100 Enter beginning balance: 5394.78 Enter total charges: 1000.00 Enter total credits: 500.00 Enter credit limit: 5500.00 New balance is 5894.78 Account: 100 Credit limit: 5500.00 Balance: 5894.78 Credit Limit Exceeded. Enter Account Number (or -1 to quit): 200 Enter beginning balance: 1000.00 Enter total charges: 123.45 Enter total credits: 321.00 Enter credit limit: 1500.00 New balance is 802.45 Enter Account Number (or -1 to quit): -1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!