NOTE: This applet may not work correctly (ClassNotFound for a constructor for java.awt.Checkbox) under Netscape's virtual machine. Sun AppletViewer, Mac OS Runtime for Java 2.0's Applet Runner, the Microsoft virtual machine, and the MSIE/MW Mac VM (Internet Explorer or CodeWarrior) all have no problems with it.
Here is the homework assignment.
The Java source of this applet is available here. You should be able to view the HTML source of this page as well.