Question: 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

 Write a Fortran program that displays an amortization schedule. The program

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). The formula for calculating the monthly payment is: payment = amount * (irate * (1 + itate)^term/((1+irate)^term -1)) Note, the annual interest rate, irate, in the formula must be converted to a monthly rate (divided by 12) and then divided by 100 (to convert from percentage). During the time period, term, some of each monthly payment will be used to pay the interest and some will be used to reduce the outstanding balance. The monthly interest amount can be calculated by multiplying the monthly interest rate times outstanding balance. The amounts must be lined up with only two digits for cents. The payment number must display three digits, including leading zeros if necessary. Test the program on a series of different input values and verify that the output is correct for those input values. Output will consist of appropriate headings and aligned and formatted columns for payment number, monthly payment, principal paid, interest paid, and outstanding balance. A sum will appear at the bottom of each column. 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. 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). The formula for calculating the monthly payment is: payment = amount * (irate * (1 + itate)^term/((1+irate)^term -1)) Note, the annual interest rate, irate, in the formula must be converted to a monthly rate (divided by 12) and then divided by 100 (to convert from percentage). During the time period, term, some of each monthly payment will be used to pay the interest and some will be used to reduce the outstanding balance. The monthly interest amount can be calculated by multiplying the monthly interest rate times outstanding balance. The amounts must be lined up with only two digits for cents. The payment number must display three digits, including leading zeros if necessary. Test the program on a series of different input values and verify that the output is correct for those input values. Output will consist of appropriate headings and aligned and formatted columns for payment number, monthly payment, principal paid, interest paid, and outstanding balance. A sum will appear at the bottom of each column. 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!