A toy tall stands in front of a concave mirror of focal length . You will make the program find the image from the mirror formula, find its height, and say if it is real or virtual. Then it draws the 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 (negative means inverted).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…