Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write in python please Write a simple Matlab function with command structure of the form [p]=mortgage(P,R,N) where the input parameters are the initial amount of

image text in transcribed

image text in transcribed

Write in python please

Write a simple Matlab function with command structure of the form [p]=mortgage(P,R,N) where the input parameters are the initial amount of the loan P, the annual percentage interest rate R, and the total number of monthly payments N, and the output p is a vector of N+1 elements containing the amount owed to the bank at the beginning of each month after making the mortgage payment for the month. The first entry of p should be P. and the last entry should be 0 or negative. Assume that the mortgage payment M is the same every month. You should calculate this amount in your program using the closed form solution in equation (1.6) in the lecture notes. (a) Use the mortgage program created above to determine the total savings possible by paying off a 30-year, $400,000 loan at the annual interest rate of 6% in 15 years. (Assume that instead of the monthly payment for the 30-year loan, you will pay a fixed amount more each month to make the 15-year pay off possible.) (b) Now suppose that the bank allowed you to repay the loan in two-week installments, and the bank calculates the interest rate for two weeks as (1/26) th of the annual interest rate R. Assume also that the biweekly payment is half the monthly payment for the thirtyyear loan. How much will you save over the life of the biweekly loan when compared with the thirty-year loan

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Evaluate the integral. Lle* 1| dx dx

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Explain the procedure for valuation of shares.

Answered: 1 week ago

Question

Which months of this year 5 Mondays ?

Answered: 1 week ago

Question

Define Leap year?

Answered: 1 week ago