Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
Please enter the monthly payment: Please enter the interest rate: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 528 5088.88 438.62 7127.99 527 4793.89 733.61 11921.89 526 4516.00 1011.50 16437.89 525 4254.22 1273.28 20692.11 524 4007.62 1519.88 24699.73 523 3775.31 1752.19 28475.04 522 3556.46 1971.04 32031.50 521 3350.30 2177.20 35381.80 520 3156.09 2371.41 38537.89 519 2973.14 2554.36 41511.03 518 2800.80 2726.70 44311.83 517 2638.44 2889.06 46950.27 516 2485.50 3042.00 49435.77 515 2341.42 3186.08 51777.19 514 2205.69 3321.81 53982.89 513 2077.84 3449.66 56060.72 512 1957.39 3570.11 58018.11 511 1843.92 3683.58 59862.04 510 1737.04 3790.46 61599.07 509 1636.35 3891.15 63235.42 508 1541.49 3986.01 64776.91 507 1452.13 4075.37 66229.04 506 1367.96 4159.54 67597.00 505 1288.66 4238.84 68885.66 504 1213.96 4313
JOJ Answer
Please enter the monthly payment: Please enter the interest rate: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 528 5207.09 320.41 5207.09 527 4905.24 622.26 10112.33 526 4620.90 906.60 14733.23 525 4353.04 1174.46 19086.27 524 4100.70 1426.80 23186.97 523 3863.00 1664.50 27049.97 522 3639.07 1888.43 30689.03 521 3428.12 2099.38 34117.15 520 3229.40 2298.10 37346.56 519 3042.20 2485.30 40388.76 518 2865.85 2661.65 43254.61 517 2699.73 2827.77 45954.34 516 2543.23 2984.27 48497.57 515 2395.81 3131.69 50893.37 514 2256.93 3270.57 53150.30 513 2126.10 3401.40 55276.40 512 2002.85 3524.65 57279.25 511 1886.75 3640.75 59166.01 510 1777.38 3750.12 60943.39 509 1674.35 3853.15 62617.75 508 1577.30 3950.20 64195.04 507 1485.86 4041.64 65680.91 506 1399.73 4127.77 67080.64 505 1318.59 4208.91 683