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 ----- --------- --------- --------- 864 2113.70 -55.95 -1403.92 863 2032.69 25.06 628.77 862 1954.79 102.96 2583.55 861 1879.87 177.88 4463.42 860 1807.82 249.93 6271.24 859 1738.53 319.22 8009.77 858 1671.90 385.85 9681.68 857 1607.82 449.93 11289.50 856 1546.20 511.55 12835.70 855 1486.94 570.81 14322.65 854 1429.95 627.80 15752.60 853 1375.15 682.60 17127.75 852 1322.45 735.30 18450.20 851 1271.76 785.99 19721.96 850 1223.02 834.73 20944.98 849 1176.15 881.60 22121.13 848 1131.07 926.68 23252.20 847 1087.72 970.03 24339.92 846 1046.03 1011.72 25385.96 845 1005.94 1051.81 26391.90 844 967.39 1090.36 27359.29 843 930.31 1127.44 28289.60 842 894.66 1163.09 29184.26 841 860.37 1197.38 30044.63 840 827.39 1230
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 ----- --------- --------- --------- 864 1978.88 78.87 1978.88 863 1903.04 154.71 3881.93 862 1830.11 227.64 5712.03 861 1759.97 297.78 7472.00 860 1692.51 365.24 9164.51 859 1627.65 430.10 10792.16 858 1565.26 492.49 12357.42 857 1505.27 552.48 13862.70 856 1447.58 610.17 15310.28 855 1392.10 665.65 16702.38 854 1338.75 719.00 18041.13 853 1287.44 770.31 19328.57 852 1238.10 819.65 20566.67 851 1190.65 867.10 21757.32 850 1145.01 912.74 22902.33 849 1101.13 956.62 24003.46 848 1058.93 998.82 25062.39 847 1018.34 1039.41 26080.73 846 979.31 1078.44 27060.05 845 941.78 1115.97 28001.83 844 905.69 1152.06 28907.51 843 870.98 1186.77 29778.49 842 837.59 1220.16 30616.08 841 805.49 1252.26 314