Purchase Solution

Java Program for User Interfaces

Not what you're looking for?

Ask Custom Question

Write a Java program without a graphical user interface that calculates and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. In this program, hard code the amount = $200,000, the term = 30 years, and the interest rate = 5.95%. Insert comments in the program to document the program.

The following mortgage formula should be used for all the individual assignments.

MonthlyPayment = [MortgageAmount * (1 + MonthlyInterestRate)TotalMonth * MonthlyInterestRate] /

[(1 + MonthlyInterestRate)TotalMonth - 1]

Please note that the number used below is for illustration purpose only. You should refer to the assignment question for mortgage detail.

Suppose you take out a 30 year mortgage for $100,000 at 7% interest, and want to know the monthly payments. To do that, you divide the interest rate by 12 to get (.07/12) = .00583; and multiply 30 x 12 = 360 to get the number of payments. Then the formula gives you:

payment = [$100,000 * (1 + .00583)360 * .00583] / [(1 + .00583)360 - 1]

= $665

Purchase this Solution

Solution Summary

The expert examines a Java program for user interfaces.

Purchase this Solution


Free BrainMass Quizzes
Basic Networking Questions

This quiz consists of some basic networking questions.

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.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

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.