Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started