The notes of a scale are played in air and then under water. You will make the program find each wavelength in air, then in water, and how many times longer the waves are in water. Then it draws both.
The idea. . The frequency stays the same in water, but the speed is instead of .
Your tasks.
in_air, the wavelength in air, in metres.in_water, the wavelength in water, in metres.ratio, how many times longer the waves are in water than in air.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…