Essays24.com - Term Papers and Free Essays
Search

Prg420 Week2

Essay by   •  May 24, 2011  •  442 Words (2 Pages)  •  939 Views

Essay Preview: Prg420 Week2

Report this essay
Page 1 of 2

import java.io.*;

import java.util.*;

import java.text.*;

public class Calculator //begins Calculator class

{

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

{

//declares variables and defines hard coded values

double principal = 200000;

double interest = 0.0575;

int term = 30;

//prints an explanation of the calculations to be performed

//and the data that will be displayed by he program

System.out.println("nThis program will calculate and display the monthly " +

"nmortgage payment needed to fully amortize a $200,000.00 loan " +

"nover a term of 30 years at a 5.75% interest rate.");

System.out.println();

System.out.println();

//calculations to find monthly interest rate and payment amount

double monthlyInterest = interest / 12;

double payment = (principal * monthlyInterest)

/ (1 - Math.pow(1/ (1 + monthlyInterest), term * 12));

...

...

Download as:   txt (1.6 Kb)   pdf (44.7 Kb)   docx (8.8 Kb)  
Continue for 1 more page »
Only available on Essays24.com
Citation Generator

(2011, 05). Prg420 Week2. Essays24.com. Retrieved 05, 2011, from https://www.essays24.com/essay/Prg420-Week2/51416.html

"Prg420 Week2" Essays24.com. 05 2011. 2011. 05 2011 <https://www.essays24.com/essay/Prg420-Week2/51416.html>.

"Prg420 Week2." Essays24.com. Essays24.com, 05 2011. Web. 05 2011. <https://www.essays24.com/essay/Prg420-Week2/51416.html>.

"Prg420 Week2." Essays24.com. 05, 2011. Accessed 05, 2011. https://www.essays24.com/essay/Prg420-Week2/51416.html.