Mcbridemortgagecalculatorw5
Below is one of our free research papers on Mcbridemortgagecalculatorw5. If the term paper below is not exactly what you're looking for, you can search our essay database for other topics or order a custom essay.
Mcbridemortgagecalculatorw5
/*
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");
// Declaration of Array for mortgage calculation of three loans.
double[]dInterestRate ={0.0535,0.055,0.0575}; // Loan Interest Rates declared after being divided by 100 (5.35, 5.5 and 5.75 percent)
int[]iLoanTerm = {84,180,360}; // Length of the Loan figures in months after being multiplying by 12 months (7,15 and 30 years)
//Initialization of Variables
dMortgageLoanAmount=200000.00; // Mortgage Loan Amount
iMonthlyPaymentAmount=0; // Monthly Payment Amount
dLoanBalance=0.0;
// McBride Financial Services output display
System.out.println("\t\t\t\t\t*****************************************");...
- Submitted by: munozjl
- Date Submitted: 11/07/2007 06:27 PM
- Category: Technology
- Words: 335
- Pages: 2
- Views: 1539
- Rank: 11746