Question: Help.!!!!! need a c++ program. Write a program that will tell you how many months it will take you to pay off a loan for

Help.!!!!!
need a c++ program.
Write a program that will tell you how many months it will take you to pay off a loan for a purchase item with no down payment, as well as the total amount of interest paid over the life of the loan The program should input from the user the amount of low needed, the interest rate per year, and your monthly payment. Also, the program should tell you how many months it will take you to pay of the loan, as well as the total amount of interest paid over the life of the loan. For example, if you have just purchased a stereo system that cost $1,000 on the following credit plan: no down payment, an interest rate of 18% per year (1.5% per month), and monthly payments of $50 In this example, the monthly payment of $50 is used to pay the interest, and whatever is left is used to pay part of the remaining debt. Hence, the first month you pay 1.5% of $1,000 in interest That is 515 in interest. The remaining 535 is deducted from your debt, which leaves you with a debt of 5965.00. The next month you pay interest of 15% of $965.00, which is $14.48. Hence, you can deduct 535,52 (which is $50 - 514.48) from the amount you owe. The last payment may be less than 550 if the debt is small, but do not forget the interest. If you owe 550, then your monthly payment of 550 will not pay off your debt, although it will come dose. One month's interest on $50 is only 75 cents. Note: The program should work for any input values: Sample Running of the Program the input to your program is: Leon 1000 Yearly interest Rate: 18 Monthly payment: 50 Then the Output is: Monthly interest Monthly Payment 1000 1.50% $50 Month 2 Remaining Loan 1050.00 965.00 Amount of Interest per month 15.0000 14.4750 3342 856 82 139421 13.4013 12.8523 12.2951 11.7295 11.1554 10 5728 7 781.97 743.70 704 65 665 42 625.40 5017 15 16 17 416 13 372 37 327.95 28287 237 11 9.3811 8.7713 81514 7.5257 6.8385 6.2419 55855 4.9193 4.2431 3.5567 2.8601 2.1530 14353 0.7068 19 20 21 22 143 53 95.68 47.12 Total amount of interest paid: 197.8268
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
