if-else Statements Assignment

See this link for Assignment Policies, Submission Instructions, and Grading Guidelines.

Instructions

1.      Write a Java applet uses “if-else statements” to accomplish the following:

2.      Make 5 different buttons that do 5 different, but related, graphical tasks. Use appropriate names on the buttons.

3.      For example, the buttons might draw 5 different shapes (circle, oval, rectangle, square, triangle, star, etc.).

4.      Or, the buttons might move the shape (up, down, left, right, center, diagonal, etc.).

5.      Or, the buttons might draw the shape in 5 different colors.

6.      Or, the buttons might draw a “Ms. Potato Head”.

7.      Or, the buttons might do something else. Be sure to consult with the TA as to other possibilities.

8.      Be creative!!!

9.      DO NOT copy my example code. Your applet SHOULD NOT grow or shrink a shape. It also SHOULD NOT display a blue circle.

10.  Be careful NOT to copy another student’s applet, as it will be very obvious, since there are numerous combinations for this code.

11.  In your e-mail, don't forget to include the link to the HTML page that displays your applet.

 

 

 

© 2007 William Albritton