For your first animation program, you’ll write an applet that
implements the Runnable interface that will simulate a yo-yo
going up and down on a string. To reduce flicker, repaint
only the string and yo-yo in the background color.
Then, modify the program so that you have two yo-yos of
different colors and speeds. Finally, create an HTML file that
will put a stick figure “holding” the yo-yos between the two
yo-yo applets. It’s not necessary to animate the stick figure.
Title the Web page “Yo-Yos for Sale!!!!” Figure 1 shows a
screen capture of the finished project.