i need help... - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

i need help...

cabrera31086cabrera31086 Posts: 7Member
help me guys on this, it's my take home quiz about applets and i need it tomorrow but i miss the lecture, help me pls...

appreciate the help, thanks...

Create an applet names CalculateBalance that calculates the current balance in a checking account in a textfield. The user enters the beginning balance, check amount, and deposit amount in separate textfields with the appropriate labels. After the applet calculates the current balance, reposition the textfields and labels so that the beginning balance appear on the first line, the check and deposit amount appear on the second line, and the new balance appears on the third line...


--please help me, i need this guys, thanks...


im hopeless, i think i can't do it... here is what i started... but i think it's broke and incomplete...

can you make this one for me mr. moderator or anyone, please i just needed this man, please help me, thanks...

import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class CalculateBalance extends Applet implements ActionListener

{
Label CalcBal = new Label("Calculate Balance");

Label begBal = new Label("Beginning Balance");
Label prompt = new Label("Current Balance");
TextField numGuest = new TextField(5);

Label depAm = new Label("Deposit Amount");
Label prompt = new Label("Current Balance");
TextField numGuest = new TextField(5);

Label cheBal = new Label("Check Balance");
Label prompt = new Label("Current Balance");
TextField numGuest = new TextField(5);

Button calcButton = new Button("Calculate");

Font bigFont = new Font("Helvetica", Font.ITALIC, 24);

public void init()
{
calcBal.setFont(bigFont);
add(begbal);
add(prompt);
add(depAm);
add(chebal);
add(numGuest);
add(calcButton);
calcButton.addActionListener(this);
numGuest.addActionListener(this);
add(cbRes);
add(totalResult);
}


Comments

Sign In or Register to comment.