rendered paste body//Josh Crichton
//Programming - Mr. Tennant
//Proj4_5 - Currency Converter
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class Proj4_5 extends Applet implements ActionListener
{
Button button1, button2, button3, button4, button5, button6;
Label label1, label2, label3;
TextField text1, text2, text3;
Float dollars1, xRate1;
float forgnCurr1;
Float forgnCurr2, xRate2;
float dollars2;
Float principal, intRate, months;
double period, payment;
public void init()
{
setLayout(null);
button1 = new Button ("$ to EGP (Egyptian)");
button1.setBounds(30, 30, 150, 30);
add(button1);
button1.addActionListener(this);
button2 = new Button ("EGP (Egyptian) to $");
button2.setBounds(200, 30, 150, 30);
add(button2);
button2.addActionListener(this);
button3 = new Button ("Simple Loan");
button3.setBounds(370, 30, 150, 30);
add(button3);
button3.addActionListener(this);
button4 = new Button ("Convert $");
button4.setBounds(30, 240, 150, 30);
add(button4);
button4.addActionListener(this);
button4.hide();
button5 = new Button ("Convert Foreign Currency");
button5.setBounds(200, 240, 150, 30);
add(button5);
button5.addActionListener(this);
button5.hide();
button6 = new Button ("Foreign Currency to $");
button6.setBounds(370, 240, 150, 30);
add(button6);
button6.addActionListener(this);
button6.hide();
label1 = new Label();
label1.setBounds(30, 90, 150, 15);
add(label1);
label1.hide();
text1 = new TextField(10);
text1.setBounds(180, 90, 150, 20);
add(text1);
text1.hide();
label2 = new Label();
label2.setBounds(30, 120, 150, 15);
add(label2);
label2.hide();
text2 = new TextField(10);
text2.setBounds(180, 120, 150, 20);
add(text2);
text2.hide();
label3 = new Label();
label3.setBounds(30, 150, 150, 15);
add(label3);
label3.hide();
text3 = new TextField(10);
text3.setBounds%