You will plan the fuel of a migrant, predict the error of a clock-shifted bird, and follow a clock that runs free.
The idea. The fat needed is the power times the flight time, divided by per gram. The flight time is the distance in metres divided by the speed. A sun-compass heading turns by about for each hour of clock shift. In constant darkness the start of activity moves by a day.
Your tasks.
fat_needed. It gives the grams of fat for a distance in km, a speed in m/s and a power in W.heading_error. It gives the error in degrees for a clock shift in hours.start_after. It gives the hour of the day (0 to 24) at which activity starts after some days in the dark.Run your code once to unlock the worked solution.
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…