Applet "Circle Wave", Problem B