Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help please....calculator!!!

Status
Not open for further replies.

cindyg919

Programmer
Feb 10, 2001
17
US
hi... i need help in this :
A program that produces a Calculator with GUI.
It should be similar in functionality to the standard calculator( not the scientific ) available under Microsoft Windows's accessories.
Do not include "edit", "view", "help", "Backspace".
It should allow the user to save and later recall two different values.


 
Start by breaking it down into pieces.

1. First Draw a picture of how you want your screens.
2. Figure out what type of layout managers you will need.
3. Figure out what packages you will need to import.
eg. javax.swing.*
4. Write the basic code to create the screens and show your
GUI buttons, etc.
5. Write the code to handle your events. eg. = button on
calculator, etc.
6. Add code to do your calculations, etc. Use private
variables for the figures saved in memory.
7. Test and debug your program completely.
8. Use the Java API Docs to look up commands and refer to
your text books.
9. Follow all the routines of good development and you can
get this small java calculator program working.
10. Turn in a working program and impress your teacher.

Not to rude, but you have to do the main work yourself. If you get stuck with code that you have trouble debugging, put another post out and many us will be happy to assist you.

Good luck,
Brian
(Sun Certified Programmer on the Java Platform, Instructor)
 
i did put another post out but i did not know how to delte this.....thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top