Develop a C++ program that will determine if a department store customer has exceeded the credit limit on a charge account. These info are available for each cutomrer…
a. Account number(integer)
b. Balance at the beginning by this customer this month
c. Total of all items charged by the cust. This month
d. Total of all credits applied to the cust account this month
e. Allowed credit limit

This program should input each of these facts, calculate the new balance(=beginning balance + charges –credits) and determine if the new balance exceeds the customers credits
For those customers whose credit limit is exceeded, the program should display the customers account number, credit limit, new balance and the message “Credit limit exceeded”.

The output should look like this….

Enter account number (-1 to end):100
Enter beginning balance: 5394.78
Enter total charges: 1000.00
Enter total credits: 500.00
Enter credit limit: 5500.00
Account: 100
Credit limit: 5500.00
Balance: 5894.78
Credit Limit Exceeded.

Enter account number (-1 to end): 200
Enter beginning balance: 1000.00
Enter total charges: 123.45
Enter total credits: 321.00
Enter credit limit: 1500.00

Enter account number (-0 to end): 300
Enter beginning balance: 500.00
Enter total charges: 274.73
Enter total credit limit: 800.00

Enter account number (-1 to end): -1


So far i have this
Develop a C++ program that will determine if a department store customer has exceeded the credit limit on a charge account. These info are available for each cutomrer…
a. Account number(integer)
b. Balance at the beginning by this customer this month
c. Total of all items charged by the cust. This month
d. Total of all credits applied to the cust account this month
e. Allowed credit limit

This program should input each of these facts, calculate the new balance(=beginning balance + charges –credits) and determine if the new balance exceeds the customers credits
For those customers whose credit limit is exceeded, the program should display the customers account number, credit limit, new balance and the message “Credit limit exceeded”.

The output should look like this….

Enter account number (-1 to end):100
Enter beginning balance: 5394.78
Enter total charges: 1000.00
Enter total credits: 500.00
Enter credit limit: 5500.00
Account: 100
Credit limit: 5500.00
Balance: 5894.78
Credit Limit Exceeded.

Enter account number (-1 to end): 200
Enter beginning balance: 1000.00
Enter total charges: 123.45
Enter total credits: 321.00
Enter credit limit: 1500.00

Enter account number (-0 to end): 300
Enter beginning balance: 500.00
Enter total charges: 274.73
Enter total credit limit: 800.00