A cyclist's position is written down every seconds. You will make the program find her velocity in each gap, add up the area under the velocity graph to get the distance, and find when she was fastest. Then it draws both graphs.
The idea. In each gap, velocity change of position change of time (the slope). Each gap is a strip wide under the velocity graph, so its area is velocity . The areas add up to the distance.
Your tasks.
velocities.area.fastest, the time at the start of the gap where she was fastest.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…