Question: Part 1: Monthly Loan Payment You will write a function named lastname_firstname_payment.py that calculates monthly payments on a loan. Your program will ask for these

 Part 1: Monthly Loan Payment You will write a function named

Part 1: Monthly Loan Payment You will write a function named lastname_firstname_payment.py that calculates monthly payments on a loan. Your program will ask for these items as input: the amount of the loan, the annual percentage rate, and the number of years of the loan. Calculate the monthly payment according to this formula: r(1+r)" (1+r)" 1 nt pis the principal (the amount of the loan). ris the monthly interest rate. nis the number of months of the loan. You might want to make separate variables for: The monthly interest rate r, which equals the annual rate divided by 12 The number of months n, which equals the number of years times 12 The common subformula (1+r)" Here is what a sample run of the program might look like: Enter amount of loan: $5000 Enter annual interest rate as a percent: 7.25 Enter number of years for the loan: 10 Your monthly payment is $58.70

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!