How much is water squeezed in the deep sea, and how much is a steel probe squeezed? You will make the program find the pressure at every depth down to the deepest trench, the fraction of volume each loses, and the depth at which water has lost .
The idea. The extra pressure is . Each material loses the fraction of its volume.
Your tasks.
p at every depth in h.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…