Purchase Solution

Non-GUI mortgage calculator in Java (with arrays)

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

Solution Summary

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

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 + ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.