You will write three functions that find a height from an angle, and then use them on a real-sized problem.
The idea. With the angle of elevation and the ground distance , the height is . With a slanting length , the height is . An eye above the ground adds its own height.
Your tasks.
tower_height, return the height from the ground distance and the angle in degrees.tree_height, do the same, then add the height of the observer's eye.kite_height, return the height of a kite from the string length and the angle with the ground.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…