4.21 (Financial application: comparing loans with various interestrates) Write a
ID: 3613400 • Letter: 4
Question
4.21 (Financial application: comparing loans with various interestrates) Write a program that lets the user enter the loan amount andthe loan period in number of years and display the monthly andtotal payment for each interest rate starting from 3.5% to 8% ,with an increment of 1 / 4. if you enter the loan amount 5,000 forfive years, it will display a table as follows:Loan Amount:5000
number of years: 5
interestRate monthlyPayment Total Payment
3.5% 146.51 5274.37
3.75% 147.06 5294.32
:
:
8.0% 156.68 5640.54