/*
Mortgage Calculator
Date: April 16, 2008
Filename: MortgageCalc.java
Purpose: This is a program to calculate the mortgage using user input.
*/
import java.awt.*;
import java.awt.event.*;
import java.awt.datatransfer.*;
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
public class MortgageCalc extends Frame implements ActionListener
{
private Button keys[];
private Panel userInterface, buttonInterface, result1Interface, result2Interface;
private TextField tfMortgagePayment, tfMortgageAmount;
private TextArea tfMonthlyPayments;
private Label label1, label2, label3, label4;
private Choice availableLoans;
private double mortgagePayment, loanBalance=0;
private boolean foundKey;
private DecimalFormat roundDecimal;
private double [] intRateAnnual = {5.35, 5.50, 5.75};
private int termMonths, arrayIndex=0;
private int [] termYears = {7, 15, 30};
//MortgageCalc constructor
public MortgageCalc() //throws......
Join Now or Login to view the rest of this paper.
Approximate Word Count: 972
Approximate Pages: 4 (260 words per double-spaced page) |