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 ----- --------- --------- --------- 648 310.79 28.68 554.31 647 295.50 43.97 849.81 646 280.96 58.51 1130.77 645 267.14 72.33 1397.91 644 254.00 85.48 1651.91 643 241.50 97.97 1893.41 642 229.62 109.85 2123.02 641 218.32 121.15 2341.35 640 207.58 131.89 2548.93 639 197.37 142.10 2746.30 638 187.66 151.81 2933.95 637 178.43 161.05 3112.38 636 169.65 169.83 3282.03 635 161.30 178.17 3443.33 634 153.37 186.11 3596.69 633 145.82 193.65 3742.51 632 138.65 200.83 3881.16 631 131.82 207.65 4012.98 630 125.34 214.13 4138.32 629 119.17 220.30 4257.49 628 113.31 226.16 4370.80 627 107.73 231.74 4478.54 626 102.43 237.04 4580.97 625 97.39 242.08 4678.37 624 92.60 246
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 ----- --------- --------- --------- 648 322.77 16.70 322.77 647 306.89 32.58 629.66 646 291.79 47.68 921.46 645 277.44 62.04 1198.89 644 263.79 75.69 1462.68 643 250.81 88.66 1713.49 642 238.47 101.00 1951.96 641 226.74 112.73 2178.70 640 215.58 123.89 2394.28 639 204.98 134.50 2599.26 638 194.89 144.58 2794.15 637 185.30 154.17 2979.45 636 176.19 163.29 3155.64 635 167.52 171.95 3323.16 634 159.28 180.20 3482.44 633 151.44 188.03 3633.88 632 143.99 195.48 3777.87 631 136.91 202.57 3914.77 630 130.17 209.30 4044.95 629 123.77 215.71 4168.71 628 117.68 221.80 4286.39 627 111.89 227.59 4398.28 626 106.38 233.09 4504.66 625 101.15 238.32 46