A spray breaks of water into tiny droplets, all the same size. The smaller the droplets, the more surface there is, and every square metre of new surface costs energy. You will make the program find the number of droplets, their total surface and the energy needed, for droplets from down to in radius.
The idea. Each droplet holds , so there are of them, with a total surface . The energy is times that surface.
Your tasks.
N for every radius in r.area.E needed, and read it off for droplets of radius .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…