Write a Fortran program that displays an amortization schedu
Write a Fortran program that displays an amortization schedule. The program should read the loan amount, annual interest rate, and the loan term in months (from a single line). Loan amounts shall not exceed $250,000 and the maximum loan term shall not exceed 360 months. Be sure to follow the requirement that the three input variables will be formatted on a single line.
Solution
Amortization Schedule: An amortization schedule is a table detailing each periodic payment on an amortizing loan , as generated by an amortization calculator. Amortization refers to the process of paying off a debt over time through regular payments.
program:
! amortization.f
! performs regular payments using the amortization schedule.
!construct a table of A=Pr(1+r)n/(1+r)n-1 for the values of P,A,R,N
!r from 1 to n in steps of.n+1
real :: p,a,n,r
print *, \' a \'
do n=1,2
print *, a
end do
end program amortization
