Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 . fr Analyze Mortgage [ ESE | ) | Amount of loan: 2 4 0 0 0 0 Interest rate: ( suchas 5 .
fr Analyze Mortgage ESE
Amount of loan:
Interest rate:
suchas
Duration in months:
Monthly payment:
FIGURE
Total interest paid:
En
i
~~
~~
$
$
Possible output for Practice Problem
Write a program to analyze a mortgage. See Fig. The user should enter the amount of
the
loan, the annual percentage rate of interest, and the duration of the loan in months.
When the user clicks on the button, the information that was entered should be checked to
make sure it is reasonable. If bad dara have been supplied, the user should be so advised.
Otherwise, the monthly payment and the total amount of interest paid should be displayed.
The formula for the monthly payment is
payment p rn
where p is the amount of the loan, r is the monthly interest rate annual rate divided by
given as a number between for percent and for percent and n is the duration
of the loan in months. The formula for the total interest paid is
total interest n payment pb
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