How can you code the formula?

Given the formula to calculate a monthly mortgage payment:

and these declarations:

How can you code the formula?
A. m = p * (r * Math.pow(1 + r, n) / (Math.pow(1 + r, n) – 1));
B. m = p * ((r * Math.pow(1 + r, n) / (Math.pow(1 + r, n)) – 1));
C. m = p * r * Math.pow(1 + r, n) / Math.pow(1 + r, n) – 1;
D. m = p * (r * Math.pow(1 + r, n) / Math.pow(1 + r, n) – 1);

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “How can you code the formula?

  1. This is what I got from each calculation.

    A) 790.7936267415464 (correct?)
    B) -99583.33333333333
    C) 415.6666666666667
    D) -99583.33333333333

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.