Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a Python program that can compute the interest on the next monthly mortgage payment. The program reads the balance and the annual percentage interest

write a Python program that can compute the interest on the next monthly mortgage payment. The program reads the balance and the annual percentage interest rate (e.g.: for an interest rate of 4.25%, the user should enter 4.25) from the console. The program should check to be sure that the inputs of balance and the interest rate are not negative. After the computation, the program displays the interest amount as a float number with 2 digits after the decimal point. Formula: the interest on the next monthly mortgage payment can be computed using the following formula: Interest = balance x (annualInterestRate / 1200) Notes: It is assumed that the user makes mistakes at most once for the balance and once for the annual percentage interest rate while entering the data, i.e. he/she enters the correct value the next time right after being warned.

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

How can you develop media literacy?

Answered: 1 week ago