ReviewEssays.com - Term Papers, Book Reports, Research Papers and College Essays
Search

Mortgage Payment Calculator

Essay by   •  February 8, 2011  •  Study Guide  •  217 Words (1 Pages)  •  969 Views

Essay Preview: Mortgage Payment Calculator

Report this essay

/*

Service Request SR-mf-003

Mortgage Payment Calculator

Organization: McBride financial Services

Requester: Dwain Hammer - Billings, MT

Programmer: Omar Diaz

Filename: McbrideCalculator5.java

Change Request: 2

Request Description: 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.

*/

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.text.DecimalFormat;

public class McbrideCalculatorW5

{

public static void main(String[] args)

{

// Declaration of variables

double dMortgageLoanAmount; // Mortgage Loan Amount

int iMonthlyPaymentAmount; // Monthly Loan Payment Amount

int startNum,lineCtr,ctr;

int lastNum=360;

int iLenthOfLoan=360;

int maxLineCtr=361;

double dLoanTerm;

double dMonthlyInterestPaid;

double dLoanBalance;

String nothing;

BufferedReader dataIn= new BufferedReader(new

InputStreamReader(System.in));

DecimalFormat twoDigits = new DecimalFormat("0.00");

...

...

Only available on ReviewEssays.com