Question: I need to write a python program for this problem. Mortgage Affordability Calculator Your team works in the mortgage department of a major bank. Mortgage

I need to write a python program for this problem.

Mortgage Affordability Calculator

Your team works in the mortgage department of a major bank. Mortgage brokers are visited by customers who are asked how much money they make per month after taxes. Another question asked is how much money they have saved for a deposit. Customers are also asked how much of a mortgage they are applying for and how many years they want to be given to pay back the mortgage. The mortgage broker will know what the annual interest rate is.

Mortgage brokers want to input this information and have the following calculated and displayed:

  • The percentage of the loan that the down payment represents.
  • 20%, 30% and 40% of the monthly income of the customer.
  • For the interest rate entered, determine:
    • The monthly payment for the loan with deposit using the formula below.
    • The monthly payment for the loan with deposit if repaid in half the time given.
    • The monthly payment for the loan without deposit using the formula below.
    • The monthly payment for the loan without deposit if repaid in half the time given.

The formula to calculate the monthly payment of a fixed year mortgage is:

P = L(c(1 + c)n)/((1 + c)n - 1)

where:

  • P is the monthly payment
  • L is the loan amount
  • n is the number of months
  • c is the monthly interest rate

Mortgage Affordability Algorithm :

#Input Input how much money customer make per month after taxes? Input how much money customer have saved for a deposit? Input how much is the loan amount the customer is applying for? Input how many years the customer want to be given to pay back the mortgage? Input the interest rate of the loan #Calculate the percentage Divide the downpayment by the loan amount to achieve downpayment percentage Multiply the monthly income by 0.2 to equal 20% of the monthly income of the customer Multiply the monthly income by 0.3 to equal 30% of the monthly income of the customer Multiply the monthly income by 0.4 to equal 40% of the monthly income of the customer #Calculate the monthly payment Divide the annual interest rate by 12 to equal the monthly interest rate percentage Divide the monthly interest rate percentage by 100 to equal the decimal equivalent of the monthly interest rate percentage Multiply the number of years by 12 to equal the number of months. Calculate the monthly payment for the loan with deposit using the formula below Calculate the monthly payment for the loan with deposit if repaid in half the time given. Calculate the monthly payment for the loan without deposit using the formula below. Calculate the monthly payment for the loan without deposit if repaid in half the time given. P = L(c(1 + c)^n)/((1 + c)^n - 1) P is the monthly payment L is the loan amount n is the number of months c is the monthly interest rate #Display Display down payment percentage Display 20% of the monthly income Display 30% of the monthly income Display 40% of the monthly income Display payment with deposit Display payment with deposit half the time Display payment without deposit Display payment without deposit half the time
This is the formula:
P = L(C(1 + C)^N)/((1 + C)^N - 1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!