Develop a C++ program that will determine whether a customer for a department, has exceeded
the credit limit on their charge account. For each customer, the following facts are available:
Account number (an integer)
Balance at the beginning of the month
Total of all payment made by this customer this month
Total of all credits applied to this customer’s account this month
Allowed credit limit
In the program, define and declare a structure for the above information (Assume the program
only work for one customer). The program should then call the following functions in the main
program:
A function to input each of the information above
A function to calculate the new balance (=beginning balance + payment – credits). This
function will return 1 if the new balance exceeds the customer’s credit limit, otherwise
return 0 to the main program.
For those customers whose credit limit is exceeded, in the main program should display the
customer account number, credit limit, new balance and the message “Credit limit exceeded”.
Answers
Answered by
0
Answer:
sorry the question is too lengthy to answer so what I'm not doing it
Similar questions