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 ----- --------- --------- --------- 1200 0.00 1.00 12.00 1199 0.00 1.00 12.00 1198 0.00 1.00 12.00 1197 0.00 1.00 12.00 1196 0.00 1.00 12.00 1195 0.00 1.00 12.00 1194 0.00 1.00 12.00 1193 0.00 1.00 12.00 1192 0.00 1.00 12.00 1191 0.00 1.00 12.00 1190 0.00 1.00 12.00 1189 0.00 1.00 12.00 1188 0.00 1.00 12.00 1187 0.00 1.00 12.00 1186 0.00 1.00 12.00 1185 0.00 1.00 12.00 1184 0.00 1.00 12.00 1183 0.00 1.00 12.00 1182 0.00 1.00 12.00 1181 0.00 1.00 12.00 1180 0.00 1.00 12.00 1179 0.00 1.00 12.00 1178 0.00 1.00 12.00 1177 0.00 1.00 12
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 ----- --------- --------- --------- 1200 0.92 0.08 0.92 1199 0.85 0.15 1.78 1198 0.79 0.21 2.56 1197 0.73 0.27 3.29 1196 0.67 0.33 3.96 1195 0.62 0.38 4.58 1194 0.57 0.43 5.15 1193 0.53 0.47 5.67 1192 0.49 0.51 6.16 1191 0.45 0.55 6.61 1190 0.41 0.59 7.02 1189 0.38 0.62 7.41 1188 0.35 0.65 7.76 1187 0.33 0.67 8.09 1186 0.30 0.70 8.39 1185 0.28 0.72 8.67 1184 0.26 0.74 8.92 1183 0.24 0.76 9.16 1182 0.22 0.78 9.38 1181 0.20 0.80 9.58 1180 0.19 0.81 9.77 1179 0.17 0.83 9.94 1178 0.16 0.84 10.10 1177