The retina is behind the eye lens, so a far object needs . A nearer object at needs more: , with in centimetres. You will make the program find the power for five distances, the extra power the nearest one needs, and the near point of an eye whose lens can reach at most . Then it draws the power against the distance.
Your tasks.
P, the power needed for the distance d, in dioptres.extra, how much more power the last (nearest) distance needs than the first (farthest).near, the near point in centimetres of an eye that can reach at most .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…