Mortgage Interest Rates Sometimes Depend Whether Mortgage Term Open Closed Use Formula Cre Q43793717
Mortgage interest rates can sometimes depend on whether themortgage term is open or closed. Use the formula:
to create a function to calculate a monthly mortgage payment Rwhere i is an interest rate (compounded monthly), P is the originalprincipal, and n is the length of the term (in months). Thefunction should take n, P, and open as arguments. If open==TRUE,then take i = 0.005; otherwise, take i = 0.004.
If you are still confused, maybe try the following pseudocode:
your input should be n, P, open
when open takes value “TRUE”, i is 0.005
when open takes value “FALSE” i is 0.004
calculate using the formula contains n, P, i
return the result.
USE RSTUDIO TO SOLVE THIS QUESTION
Pi 1-(1 + i)” Show transcribed image text Pi 1-(1 + i)”
Expert Answer
Answer to Mortgage interest rates can sometimes depend on whether the mortgage term is open or closed. Use the formula: to create …
OR