1. Take the
three functions from
exercise 2B out
of the applets and put into 3 separate classes that inherit from one
abstract base class.
An applet will plot one of the functions according to a parameter passed
from the applet tag via getParameter() (Optionally you could also pass
parameters to change line colors, function parameters,etc.) The applet
paint() should use a call to the base class
draw function (as in 2nd example
in lecture 3a).
2. Use a thread to
animate a function (can be one of the functions in exercise 2b or a
new one). For example, oscillate a sine wave or simulate wave packet
motion. [Don't worry if your animation seems to
flash and jerk a bit. We will learn how to avoid this
in a future lecture.]