Four sounds have different amplitudes and frequencies. You will make the program find the time period of each, the number of waves each shows in , and which sound is both loud and high. Then it draws the four waves.
The idea. The time period is ; the number of waves in a time is . A big amplitude means loud; a big frequency means high.
Your tasks.
T_ms, the time period of each sound, in milliseconds.n, the number of waves in ().loud_high to the number of the sound (0 to 3) that has amplitude above and frequency above .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…