Deepa does the ruler-drop test six times. Her first try is a warm-up. You will turn each catch into a reaction time, find her average after the warm-up, and draw her tries as a bar chart.
The idea. A ruler that falls metres takes seconds, with . The catches are in centimetres, so divide by first.
Your tasks.
reaction_ms, return the reaction time in milliseconds for a catch of d_cm centimetres.times to the list of reaction times, one for each catch, in the same order.average_ms to the average of the last five times.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…