Help needed in this problem,
September 24, 2008 at 5:50 PM
The monthly payments for a given loan are divided into amounts that apply to the principal and to the interest. For example, if you take a monthly payment of RM500, only a portion of the RM500 goes to the principal, and the remainder is the interest payment. The monthly interest is computed by multiplying the monthly interest rate by the unpaid balance. The monthly payment minus the monthly interest is the amount applied to the principal. The following table is the sample loan payment schedule for a one-year loan of RM5000 with a 12 percent annual interest rate:
Write an application (using structured Java program) that accepts a loan amount, annual interest rate and loan period (in number of years) and displays a table with five columns:
Payment number, the interest and principal paid for that month, the remaining balance after the payment, and the total interest paid to date.