Object Oriented Programming ( C++ )
Write a program that will tell you how many most it will take you to pay of 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 moont of loan needed, the interest rate per year, and your monthly payment. Also, the program should tell you how many months at will take you to pay off the loan, as well as the total amount of interest paid over the life of the For example, if you have just purchased a stereo system that c 1.000 the following credit plan no down payment, an interest rate of 185 per year (1.3% per me, and monthly payment of $50. In this example, the monthly payment of 550 is used to pay the interest, and whatever is left used to pay part of the remaining det. Hence, the first month you pay 1.5% of $100 in interest That is SIS in interest. The remaining $35 is deducted from your dicht, which leaves you with debt of $65.00. The next month you pay interest of 15% of 965.00, which is $14.48. Hence you can deduct $35.52 (which is $50.514.48) from the amount you owe. The last payment may be less than 5So if the debt is small, but do not forget the merest. If you me 550, then your monthly payment of S50 will no pay off your debt, although it will come close One months interest on so is only 75 cents. Note: The program should work for any input valus Sample Running of the Program of the input to your programi Loon 1000 Yearly interest Rate 18 Monthly payment: 50 Then the Output is: Intl Loan 1000 Monthly interest 150 Monthly Payment: $50 Month Remaining Loan Amount of interest per month 1000.00 965.00 14.4750 929:48 893.42 856.8 4 5 6 7 8 9 10 11 781.97 743,70 7045 665.42 525.40 584.79 139421 13.4011 12.8533 12.2951 11.7295 111554 30.5728 9.9814 9.3811 8.775 8.254 7.5257 6.335 14 15 18 501.71 459.24 41613 372 37 327.95 282.87 23711 190.67 143.53 95.66 47.12 5.5855 49193 4.2431 3.9562 2.8601 2.1530 20 21 23 24 0.7066 Total amount of interested 1972268