Question: Suppose you are buying a house. Write a program to calculate your monthly mortgage payment. The required inputs are: P : The principal loan amount
Suppose you are buying a house. Write a program to calculate your monthly mortgage payment. The required inputs are: P : The principal loan amount i : The annual interest rate y : The number of years over which to pay back the loan. Your monthly interest rate is therefore: r i and the number of payments is n y because you are making monthly payments per year. The formula for the monthly mortgage payment is then: Principal loan amount: Annual interest rate : Loan term years : Monthly payment : Demonstrate your program with the above example and at least one other example. Copy and paste your
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
