Free Term Papers on Mortgage Calculator Jave

OPPapers.com Essay Index >> Technology >> Mortgage Calculator Jave

We have many free term papers and essays on Mortgage Calculator Jave. We also have a wide variety of research papers and book reports available to you for free. You can browse our collection of term papers or use our search engine.

Essays from FratFiles.com
  1. Mortgage Calculator Jave

    Mortgage Calculator Jave. /* Week 2 individual assignment by William Velez
    Version 1.1 Edited by William Velez on September 27th, 2007 ...

View More Papers...

Mortgage Calculator Jave

Submitted by Joersvr on October 31, 2007

Category: Technology
Words: 1154 | Pages: 5
Views: 287
Popularity Rank: 38,404
Average Member Grade: N/A (Add a Comment / Grade this Paper)

/* Week 2 individual assignment by William Velez
Version 1.1
Edited by William Velez on September 27th, 2007
MortgageCalc.java
Write a Java program without a graphical user interface that calculates and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. In this program, hard code the amount = $200,000, the term = 30 years, and the interest rate = 5.75%. Insert comments in the program to document the program.
*/

public class MortgageCalc
{
public static void main (String[] args)
{
double mortgagedAmount = 200000; //hard coded mortgaged amount
int year = 30; //years of loan
double interestRate = 5.75; //hard coded interest rate
double monthlyInterest;
double numberOfMonths;
double monthTotalPayment;
double interestPayed;
double principlePayment;
int month = 1;
//Displaying the amount mortgaged with interest rate and life of the loan in years
System.out.print("\nThe mortgage amount is: $");
System.out.println(mortgagedAmount);
System.out.print("The life of the loan in years is: ");
System.out.println(year);
System.out.print("The interest rate given is: %");
System.out.println(interestRate);

// The program will now calculate and display the mortgage payment amount
//Given the link http://www.hughchou.org/calc/formula.html which shows how to calculate mortgage amounts
//First we will calculate monthly interest

monthlyInterest = interestRate/(12*100);


//Calculate number of Months from the amount of years

numberOfMonths = year*12;

//Now to calculate monthly payment

...

You must Login to view the entire paper.
If you are not a member yet, Sign Up for free!