Question: please solve using matlab >> mortgagePayments(10000, .3, 2); month 1 total $ 559.13 month 2 total $ 1118.26 month 3 total $ 1677.38 month 4

please solve using matlab  please solve using matlab >> mortgagePayments(10000, .3, 2); month 1 total

>> mortgagePayments(10000, .3, 2);

month 1 total $ 559.13

month 2 total $ 1118.26

month 3 total $ 1677.38

month 4 total $ 2236.51

month 5 total $ 2795.64

month 6 total $ 3354.77

month 7 total $ 3913.90

month 8 total $ 4473.03

month 9 total $ 5032.15

month 10 total $ 5591.28

month 11 total $ 6150.41

month 12 total $ 6709.54

month 13 total $ 7268.67

month 14 total $ 7827.79

month 15 total $ 8386.92

month 16 total $ 8946.05

month 17 total $ 9505.18

month 18 total $ 10064.31

month 19 total $ 10623.44

month 20 total $ 11182.56

month 21 total $ 11741.69

month 22 total $ 12300.82

month 23 total $ 12859.95

month 24 total $ 13419.08

C. (5 points) The monthly payment M of a loan amount P for y years and with interest rate r (.05 for 596) can be calculated by the formula: MPr/12) 1-(1 +r/12)-12y Write a function (with no return value) with three arguments, loan amount P, interest rate r, total mortgage years y, that calculates the running total of monthly payments for the duration of the loan for each month and displays the results in two columns where the first column is the loan month number (1 2 3 12 13 14. . .etc.) and the second is the total running payment; be sure your format is typical of dollars and cents. Sample run below. Design and test able will be done in lecture or lab

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!