Question
Problem The No Interest Credit Company provides zero-interest loans to customers. (It makes a profit by selling advertising space in its monthly statements and selling
Problem
The No Interest Credit Company provides zero-interest loans to customers. (It makes a profit by selling advertising space in its monthly statements and selling its customer lists.) Design an application that gets customer account data that includes an account number, customer name, and balance due. For each customer, display the account number and name; then print the customer's projected balance each month for the next 10 months. Assume that there is no finance charge on this account, that the customer makes no new purchases, and that the customer pays off the balance with equal monthly payments, which are 10 percent of the original bill. Your are required to define three functions below.
void displayColumnTitle() Display the column titles MONTH BALANCE DUE
float calculateBlanceDue(float balanceDue, float paymentAmt) Calculate and return the balance due. balanceDue = balanceDue - paymentAmt;
void dipslayBalance(int month, float balanceDue) Display the month and the balance due.
Sample output
Enter Account Number (-1 to terminate the input): 123 Enter name: John Nguyen Enter balance due: 10000.00 Account Number: 123 Name: John Nguyen MONTH BALANCE DUE 1 9000.00 2 8000.00 3 7000.00 4 6000.00 5 5000.00 6 4000.00 7 3000.00 8 2000.00 9 1000.00 10 0.00
Enter Account Number (-1 to terminate the input): 456 Enter name: Jose Hernandez Enter balance due: 25000.00 Account Number: 456 Name: Jose Hernandez MONTH BALANCE DUE 1 22500.00 2 20000.00 3 17500.00 4 15000.00 5 12500.00 6 10000.00 7 7500.00 8 5000.00 9 2500.00 10 0.00
Enter Account Number (-1 to terminate the input): -1 Thank you.
Step 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