Purchase Solution

Mortgage Calculator in Java: Change Request #2

Not what you're looking for?

Ask Custom Question

Please help with the following problem involving programming languages.

Change Request #2
Requestor: Dwain Hammer - Billings, MT
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.

Purchase this Solution

Solution Summary

The following posting helps with a problem involving programming. This solution provides the MortgageCalculator.java program. The code is provided in the solution.

Solution Preview

/*
* MortgageCalculator.java
*
*/

public class MortgageCalculator {
public static int defaultYears = 30;
public static float defaultLoanAmount = 200000;
public static float defaultInterestRate = (float)0.0575;

private int Years;
private float LoanAmount;
private float InterestRate;
private float MonthlyPayment;

/** Creates a new instance of MortgageCalculator */

public MortgageCalculator(int years, float LA, float IR){
Years = years;
...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

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.

Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

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

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.