A loan is amortized by printing its schedule of periodic payments along with the
ID: 3666095 • Letter: A
Question
A loan is amortized by printing its schedule of periodic payments along with the remaining balance after each payment. Write a complete program that prints an amortization schedule for a given loan amount a at a given interest rate r and a given monthly payment p. Your program should input a, n, and p and then print a series of lines showing the payment number and the remaining balance after each payment. Make use of the setw() and be sure to use a iomanip fuction so that your payments are to the nearest hundredth of a cent, as in $ 159.23