You will write three functions for a tsunami: its speed, its wavelength and its height as the sea gets shallow.
The idea. The speed is with . The wavelength is the speed times the period. By Green's law the height is .
Your tasks.
speed, return the speed in in water of depth d metres.wavelength_km, return the wavelength in km for a period of minutes minutes in water of depth d.height, return the height in metres at depth d, if the wave has height h1 at depth d1.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…