You will write functions for the distance a wheel rolls and the number of turns it needs. Then you will find how much a clock hand sweeps.
The idea. In one turn a wheel rolls its circumference . In turns it rolls . A hand that turns through a fraction of a circle sweeps that fraction of the area of the circle.
Your tasks.
distance_m, return the distance in metres rolled by a wheel of diameter diameter_cm in turns turns, rounded to decimals.turns_needed, return the number of turns a wheel of diameter diameter_cm makes on a road of road_m metres, rounded to decimals.hand_area, return the area in square centimetres that a hand of length length_cm sweeps in minutes minutes, if it is a minute hand, rounded to decimals.more_turns to the name of the wheel in wheels that makes more turns on the same road.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…