Question: 2. Write a program named, paymentCalcwlator.cpp. This program will first print a description of what the program does. Next, this progr Of the loan, the
2. Write a program named, paymentCalcwlator.cpp. This program will first print a description of what the program does. Next, this progr Of the loan, the yearly in crest on the loan (in percent, like 6% or 8%,not Dt or the program will have to make that a just ment as ita term of the loan. Now the program will calculate the amount of one monthly payment using the formula t for and input from the user the amount number of months (or payments) in the payment- rate*(l+rate)". principle a + rate)-1) oearly interest eute divided by 12), a is the sumber of mos payments The moedly paymens is the variable.payment, and the anoust of the lo is prineile Once the monthly payment is calculated, the program will display the following information, formatted as in the example below: the loan amount, the yearly interest rate, the number of payments, the amount of the monthly payment,the amount of moncy that will be paid back once all payments have been made, and the total amount of interest paid once the loan has been fully repaid Here are three examples. The outpat of your program should be formatted like these examples and work for any inputs received from the user. This program will assume the user's inputs are valid. Example 1: this aspiicatios wi11 caleulate a monthly paynent on a loan The output will also inelude other infornation about the loan Ester the loan anoust: 20000 Inter the yearly interest rate in percentst 12 Enter the number of paymentn (number of montha)s 36 Loan nount i 10000.00 Nunber of Paymentss Monthly Paymenti Anount Paid Back11957.1S Interest Paid End of Monthly Payment Caleulation App 12.00 332.14 1957.15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
