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 monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the duration of the loan, in years: Please enter the duration of the loan, in years: Please enter the duration of the loan, in years: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 588 94168.27 5832.15 94168.27 587 88676.25 11324.17 182844.52 586 83504.54 16495.88 266349.05 585 78634.44 21365.98 344983.49 584 74048.38 25952.04 419031.87 583 69729.78 30270.64 488761.65 582 65663.05 34337.37 554424.70 581 61833.50 38166.92 616258.20 580 58227.29 41773.13 674485.49 579 54831.39 45169.03
JOJ Answer
Please enter the monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the duration of the loan, in years: Please enter the duration of the loan, in years: Please enter the duration of the loan, in years: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 588 8411.38 520.94 8411.38 587 7920.81 1011.51 16332.19 586 7458.86 1473.46 23791.05 585 7023.85 1908.47 30814.90 584 6614.21 2318.11 37429.11 583 6228.46 2703.86 43657.57 582 5865.21 3067.11 49522.78 581 5523.14 3409.18 55045.92 580 5201.03 3731.29 60246.95 579 4