I have finally reached the final assignment of my Java course. First I will give a detailed description of the assignment:
- The application should be a JApplet that also can be run as an application
- The calculator should contain the following buttons: 1,2,3,4,5,6,7,8,9,0,MC,MR,MS,M+,BACKSPACE,CE,C,±," ,",".",+,-,*,/,sgrt,%,1/x,=
- Use javaDoc
- Make html files that contain JavaDoc
- Make an executable jar.
The first thing I want to do is to figure out all of the classes I will have to create. Here starts my problem. Should I make a class for each button on the calculator (because a calculator HAS-A button)?
And thats where I need a little push in the right direction. How can I determine of what entity to make a class?
Because there are also the calculations, display in a JTextfield, etc.
I really hope you can help me determine all of the necessary classes before I even start building.
This is a cross post to http://www.javaprogrammingforums.com...tml#post142153