Question: In Python, create a program that asks the user to enter a loan amount, the rate of interest (between 0 & 1), and the number

 In Python, create a program that asks the user to enter

In Python, create a program that asks the user to enter a loan amount, the rate of interest (between 0 & 1), and the number of months for the loan duration Calculate the monthly repayment amount using the following formula: P = x*y/(1-(1+x)**-w) where x = monthly interest rate (between 0 and 1) y = loan amount w = number of months for the repayment or the loan duration Create a function for the monthly payment called Payment which has three input parameters x, y, and w, and one output parameter P the monthly payment amount. Use the function in main to gather the input parameters and print out the output parameter in a user-friendly message. Error out if r = 1. Error out if n 600. Error out if L

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!