Hands on exercise to be submitted:
HOW MUCH WATER IS IN THE GLASS?
A spherical ball with radius R cm is submerged in water in a glass that is T cm
tall. The diameter of the glass is D cm. The glass is filled with water.
How much water is in the glass?
Write a program that determines the amount of water in the glass, given R, T, and D.
You may assume that the dimensions are integers, but the resulting amount is a double.
Optional: When the glass has been emptied, some surfaces will remain wet (sphere and glass).
Compute the total area of the wet surface.