Write a program which calculates and displays the cash flow


Write a program which calculates and displays the cash flow for a given loan. The type of the loan is equal instalments, i.e. the interest amount reduces when the principal amount reduces. You can assume monthly payments and that exactly one month passes from the issue date to the first instalment and that monthly interest rate is equal to yearly interest rate / 12. The main program asks the user for the principal amount, yearly interest rate, and the number of instalments. Then the program displays the projected cashflow, i.e. for each instalment it displays the instalment number, the remainder of the principal, the instalment amount, the interest paid, and the total amount.
you need to modify the class Loan and the function readData(). the following main is given:

int main()
{
double amount, interestRate;
int numPayments;
readData(amount, interestRate, numPayments);
Loan myLoan(amount, interestRate, numPayments);
myLoan.displaySchedule();
return 0;
}

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a program which calculates and displays the cash flow
Reference No:- TGS01701638

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)