AMC 140
Lab Exercise 2
Create your own PersonApplet3.java applet, according to the following specs:
- Your applet should draw 3 persons in a row, using 3 instances of the same Person class
- As the user clicks the button, the 3 persons do jumping jacks as shown below.
- (Having an input to set number of persons, as shown is optional You don't need to
use an array of Persons either.)
- Optional features:
- Allow user to specify number of persons to draw, as shown below. You can use an
array of Persons. Also, you can use the clear() and/or erase(Shape)
methods of GraphicsIOApplet.
- Make even Persons jumpUp, while odd Persons jumpDown, and vice versa.