A candle tall stands in front of a convex lens of focal length . You will make the program find the image from the lens formula, find its height, and say if it is real or virtual. Then it draws two rays and the image.
The idea. With the signs, and . Then and .
Your tasks.
v, the image distance, in cm.h_image, the height of the image, in cm.kind to "real" or "virtual", from the sign of v.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…