Compute a table that shows a monthly payback schedule for a loan. The principle amount of the loan, the
annual interest rate, and the monthly payment amount are to be read as inputs. Calculate the monthly
interest rate as 1/12 of the annual rate. Each month, rst calculate the current interest = the monthly
rate the loan balance. Then add the interest amount to the balance, subtract the payment, and print
this new balance. Continue printing lines for each month until the normal payment would exceed the
loan balance. On that month, the payment amount should be the remaining balance and the new balance
becomes 0. Print a neat loan repayment table following this format:
Payment schedule for $1000 loan
at 0.125 annual interest rate
and monthly payment of $100.00
Month Interest Payment Balance
-----------------------------------------
1 10.42 100.00 910.42
2 9.48 100.00 819.90
... ... ... ...
10 1.66 100.00 60.99
11 0.64 61.63 0.00
-----------------------------------------



LinkBack URL
About LinkBacks


