nerdexam
Oracle

1Z0-815 · Question #6

Given the formula to calculate a monthly mortgage payment: and these declarations: How can you code the formula?

The correct answer is B. m = p * ((r * Math.pow(1 + r, n) / (Math.pow(1 + r, n)) - 1)). See the full explanation below for the reasoning.

Question

Given the formula to calculate a monthly mortgage payment:

and these declarations:

How can you code the formula?

Options

  • Am = p * (r * Math.pow(1 + r, n) / (Math.pow(1 + r, n) - 1));
  • Bm = p * ((r * Math.pow(1 + r, n) / (Math.pow(1 + r, n)) - 1));
  • Cm = p * r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1;
  • Dm = p * (r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1);

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    83% (19)
  • C
    9% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice