Free Term Papers on Java Calculator

OPPapers.com Essay Index >> Technology >> Java Calculator

We have many free term papers and essays on Java Calculator. 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. Java Calculator

    Java Calculator. /* Mortgage Calculator Date: April 16, 2008 Filename:
    MortgageCalc.java Purpose: This is a program to calculate the mortgage using user ...

  2. Mortgage Calculator Paper

    Mortgage Calculator paper. ... POS 406 // 1/30/2005 // First Assignment class Mort
    //Translated into English, this line means, "Computer, give my Java program the ...

  3. Gui Mortgage Calculator

    ... GUI Mortgage Calculator University of Phoenix David Silberberg POS 407 04-19-2005
    Program /* * MortgageGui.java * Version 4 * Created on April 19, 2005 * Use a ...

  4. Mortgage Calculator W/ Gui (Wk 4)

    Mortgage Calculator w/ GUI (wk 4). Filename: MortCalc.java /* Version: 1.0 - Initial
    version 2.0 - Modified the mortgage program from Week 2 to add a list of ...

  5. Mortgage Calculator Week 3

    ... import java.awt.*; import java.awt.event.*; import java.lang.Math ... Label items JLabel
    companyname = new JLabel(" McBride Mortgage Calculator"); JLabel loanamount ...

View More Papers...

Java Calculator

Submitted by czenrezig on April 29, 2008

Category: Technology
Words: 972 | Pages: 4
Views: 154
Popularity Rank: 68,806
Average Member Grade: N/A (Add a Comment / Grade this Paper)

/*
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 IOException
{

roundDecimal = new DecimalFormat("########.##");

// create an instance of the menu
MenuBar mnuBar = new MenuBar();
setMenuBar(mnuBar);

// construct and populate the File menu
Menu mnuFile = new Menu("File", true);
mnuBar.add(mnuFile);
MenuItem mnuFileExit = new MenuItem("Exit");
mnuFile.add(mnuFileExit);

// construct and populate the Edit menu
Menu mnuEdit = new Menu("Edit", true);
mnuBar.add(mnuEdit);
MenuItem mnuEditClear = new MenuItem("Clear");
mnuEdit.add(mnuEditClear);


// construct and populate the About menu
...

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