Mortgage Payment Calculator
Essay by review • February 8, 2011 • Study Guide • 217 Words (1 Pages) • 1,039 Views
/*
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");
...
...