Applet "Refraction of a Wave", Problem F