Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started