Hi, I need help from anyone to solve this "c programming" or help to teach the method for this question. thank u so much?
A bookstore has many customers and each one of them has an account with a credit limit which
must not be exceeded. The bookstore owner requested you to develop a system by using C programming
language to control these accounts.
For each customer, the following facts are available:
1. Account Number
2. Balance at the beginning of the month
3. Total of all items charged by this customer this month
4. Total of all credits applied to this customer’s account this month
5. Allowed credit limit
The program should input each of these facts, calculate the new balance (which is the beginning balance
+ charges – credits), and determine if 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”
------------------------------------------------------------------------------------------------------------------.
A sample output is shown below,
Enter account (-1to end): 3
Enter Beginning Balance: 3500
Enter Total Charges: 750
Enter Total Credits: 300
Enter credit Limits: 4000
Account: 100
Balance: 3950
Enter account (-1to end): 15
Enter Beginning Balance: 2200
Enter Total Charges: 1000
Enter Total Credits: 300
Enter credit Limits: 2500
Account: 15
Balance: 2900
Credit Limit Exceeded
Enter account (-1to end): -1
Program Terminated