Assignment2

advertisement
IT210 - Assignment #2
Assignment Due Date Sunday May 3
Guidelines:
1. Late assignment won’t be accepted.
2. If there is any question, please ask me via s.alshuhail@mu.edu.sa
3. Submit your assignment as a hardcopy at my office.
4. After you make sure from your code, copy it in a word document and make a screen
shot from your run screen.
5. Assignment score is 10.
Using java, design and implement program with a GUI that looks like figure 1.
The description of the program is listed below:

The program allows the user to calculate Triangle and Rectangle area.

It should asks the user to enter the information in a text fields, then click on calculate
button.

Clear button should erase all text in the text fields.

Triangle Area and Rectangle Area are computed as follows:
Rectangle Area = width * height
Triangle Area = ½ * base * height
Figure 1: The Interface
Download