A student shone a ray into a plastic block at six angles and measured the angle of refraction each time. You will make the program find for each reading and the average, which is the refractive index of the plastic. Then it draws against : a straight line whose slope is .
Your tasks.
ratio, for one reading.n_plastic, the average of the six ratios.v, the speed of light in the plastic, in m/s.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…