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)- A4% (1)
- B83% (19)
- C9% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.