A ray falls at on a glass slab thick, with . You will make the program find the angle inside the glass, the sideways shift of the ray, and the angle at which it leaves. Then it draws the path.
The idea. , the shift is , and at the far face, .
Your tasks.
r, the angle inside the glass, in degrees.d, the lateral displacement, in cm.e, the angle of emergence, in degrees.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…