Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. Allow the user to loop back and enter new data or quit. Please insert comments in the program to document the program.
I just can't figure out to use the array to calculate the Principal Paid, Interest Paid, and Balance that changes from payment 001 to XXX. (for example, 30 years loan is 360 times)
How can we loop the calculation to be from pay cycle 001 to 360 for example?
Use "for" statement, but this is too diffciult.