Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
