Prg 421 Java 2
Below is one of our free research papers on Prg 421 Java 2. If the term paper below is not exactly what you're looking for, you can search our essay database for other topics or order a custom essay.
Prg 421 Java 2
/*
Week 5: PRG/421
Programmer:
Date:
Program Name: CalculatorChg7.java
Description: SR-mf-003 is a calulator program that provides a GUI for the user to
calculate payment for different mortgage terms. Also allows user to enter
loan amount, and select term and rate from a select menu. Then calculate
loan payment with the results being displayed on a graph chart.
- 7 years at 5.35%
- 15 years at 5.5%
- 30 years at 5.75%
*/
//Java import statements
import java.math.*;
import java.text.NumberFormat;
import java.util.*;
import java.text.DecimalFormat;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.text.*;
import java.lang.*;
import javax.swing.border.*;
import javax.swing.JOptionPane;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.*;
import java.util.StringTokenizer;
import javax.swing.BorderFactory;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.font.*;
import java.awt.Font;
import java.awt.geom.*;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.Reader;
import javax.swing.*;
// Create Calculator class
public class Mortgage extends JFrame implements ActionListener
{
public static void main(String[] args)
{
Mortgage frame = new Mortgage();
}
//Declaring fields for GUI
JTextField mortgageAmountField, interestRateField, monthlyPayField;
JFrame myframe;
int buttonCount = 0;
int value = 0;
int myrate = 0;
int term;
int terms [] = {7,15,30};
double trm;
double amt;
double pymt;
double myinterest;
BigDecimal rndpymt;
BigDecimal finalpymt;
String txtpymt;
int months;
double month;
double monthlyInt;
double payment;
double[] interest;...
- Submitted by: chevy350turbo
- Date Submitted: 02/25/2009 08:52 PM
- Category: Technology
- Words: 1289
- Pages: 6
- Views: 982
- Rank: 4271