Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the program in python not in java!. Write a program that lets the user enter the loan amount and loan period in number

image text in transcribed

please write the program in python not in java!.

Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8. The formula to compute monthly payment: monthlyPayment = loanAmount times monthlyInterestRate/1/1 - 1/(1 + monthlyInterestRate)^numberOfYear times 12 totalPayment = monthlyPayment times numberOfYears times 12 Make sure your output is formatted as shown above. Whenever your program accepts user input, you need to make sure that the user supplied values are valid before you use them in your computations. If the user provides an input that is not in the expected range, print an error message and don't process the input. Name the source code file "Loan.py

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

More Books

Students also viewed these Databases questions