When the Sun is degrees high, its light crosses about times as much air as from overhead. In this simple model, the share of blue light left is and of red light . You will make the program find the air, the blue and the red left for eight heights of the Sun, and the first height (going down) where red light is more than twice the blue. Then it draws both shares.
Your tasks.
air, how many times as much air the light crosses.blue and red, the shares of each colour that are left.first, the first height in the list where red is more than twice blue.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…