# Non-GUI mortgage calculator in Java (with arrays)

Write the program in Java (without a graphical user interface) and have it calculate the payment amount for 3 mortgage loans:

- 7 year at 5.35%

- 15 year at 5.5%

- 30 year at 5.75%

Use an array for the different loans. Display the mortgage payment amount for each loan and then list the loan balance and interest paid for each payment over the term of the loan. Use loops to prevent lists from scrolling off the screen.

© BrainMass Inc. brainmass.com October 9, 2019, 10:24 pm ad1c9bdddfhttps://brainmass.com/computer-science/java/non-gui-mortgage-calculator-in-java-with-arrays-219459

#### Solution Preview

We start this solution by creating a method that can handle one loan configuration. This method takes in a rate, principle, and term. With the given data the method calculates the monthly payment. The monthly payment is displayed and then the payment schedule is printed.

Calculating the monthly payment is not just a matter of dividing the principle by the term. The problem is that interest is compounded on the payment. The formula for calculating the monthly payment is:

M = P ( i(1 + ...

#### Solution Summary

This solution shows a non-GUI mortgage calculator written in Java using arrays.