This is a C++ programming question The code should be in C++ language When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments....


This is a C++ programming question


The code should be in C++ language


When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is:




You can also calculate the unpaid loan balance after making certain payments.




For example, the unpaid balance after making k payments is:


where R is the periodic payment. (Note that if the payments are monthly, then m = 12.)


Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the user can repeat the program for different values.


Li<br>R=-<br>1- (1+i)~™<br>You can also calculate the unpaid loan balance after making certain payments.<br>For example, the unpaid balance after making k payments is:<br>1– (1+ i)-(mt-k)]<br>L' = R<br>?<br>

Extracted text: Li R=- 1- (1+i)~™ You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is: 1– (1+ i)-(mt-k)] L' = R ?

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here