Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ The No Interest Credit Company provides zero-interest loans to customers. (I

ID: 666206 • Letter: C

Question

C++

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. This lab assignment is similar to lab assignment 3 except you need to define three functions below.
Name the file as lab5.

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

Hint: The following pseudocode will provide you some ideas to write the program.

DECLARE VARIABLES

INPUT ACCOUNT NUMBER

WHILE ACCOUNT NUMBER IS NOT -1 (Use a while loop)

Input Name
cout<<"Enter name: ";
cin.ignore(10,' ');// to clear input buffer
cin.getline(name,20); // where name is a string variable - see pages 121 and 122
//INPUT BALANCE and ACCOUNT NUMBER

CALCULATE THE PAYMENT AMOUNT
paymentAmt = balance x PAY_RATE (10%)
Call the function displayColumnTitle
while month <=10 (Use a while loop)
    Call the function calculateBlanceDue
     Call the function dipslayBalance

end loop

INPUT ANOTHER ACCOUNT NUMBER

END LOOP

Explanation / Answer

#include <iostream>
using namespace std;


int main ()
{

double account_Number,remaining_Balance,monthly_Balance,month=1, original_bill,costumer_Name;

cout<<"Enter the account number: ";
cin>>account_Number;
cout<<"Enter the name of the costumer: ";
cin>>costumer_Name;
cout<<"Enter the original balance : ";
cin>>original_bill;

while (month<11)
{
monthly_Balance=original_bill*.10;

remaining_Balance=remaining_Balance-monthly_Balance;

cout<<"For month"<<month<<" :"<<endl;
cout<<"Your Monthly Balance is:"<<monthly_Balance<<endl;
cout<<"Your Remaining Balance is:"<<remaining_Balance<<endl;
month=month+1;
}

system ("pause");
return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote