Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is a formula for computing monthly payments for a loan (for example: a car loan): Rate*(1 Rate)N Payment ((1Rate)N 1) *L Where: L: Loan

Here is a formula for computing monthly payments for a loan (for example: a car loan):

Rate*(1 Rate)N Payment ((1Rate)N 1) *L

Where:

L: Loan Amount

Rate: Monthly Interest Rate as a fraction (ex: 0.01 for 1%)

N: Number of Payments

Payment: is the monthly payment

Write a Python module (loan.py) that assigns values to Loan Amount, Monthly Interest Rate and Number of payments, using the above formula, computes the monthly payment.

For example: if Loan amount is $10000, Monthly Interest Rate is 0.01 (or 12% annual interest rate), the number of payments is 36, Monthly payment should be $332.14.Verify that your program works correctly by using this data as input.

Attach loan.py when submitting this quick test.

here is what I have wrote

def main (): print ("This program takes Loan amount, monthly interest Rate and number of payments," " and tells the user the monthly payment") arp = eval (input ("Please enter monthly interest rate, Number of payments, Rate loan amount"))

main()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

What is the difference between an exempt and a nonexempt employee?

Answered: 1 week ago