A girl claps at different distances from a wall. You will make the program find the time of each echo, list the distances at which she hears a separate echo, and find how the echo time changes on a hot day. Then it draws the echo time against the distance.
The idea. The sound goes to the wall and back: . A separate echo needs at least .
Your tasks.
t, the echo time for each distance, in seconds (with ).separate, the list of distances whose echo time is or more.t_hot, the echo time from when the air is at , using .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…