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

Mortgage Program - Week 5

Essay by   •  February 5, 2011  •  Study Guide  •  223 Words (1 Pages)  •  998 Views

Essay Preview: Mortgage Program - Week 5

Report this essay

//Begin Program

import java.text.DecimalFormat; //needed to set the decimal point place

import javax.swing.JOptionPane; //needed to make the program pause

public class MortgageProject05

{

public static void main(String[]args) throws Exception

{

int [] MonthPayment = {7,15,30}; //declares how many years

double Monthly=0; //delcares the variable for the mortgage payment

double Amount = 200000; //declares how much the loan is for

double [] MonthInt = {5.35,5.5,5.75}; //declares the interest rate

double PaidInt; //paid interest monthly

double OutStand; //monthly balance

int MonthTerm; //number of payments

char enter;

DecimalFormat roundComma = new DecimalFormat("#,##0.00"); //formats commas and decimal points

for (int i=0; i

...

...

Only available on ReviewEssays.com