a.
Write a function that returns the volume of a cylinder of radius r and height h.
cylinder volume = pi * r^2 * h
b. Write a function that returns the volume of a sphere of radius r. sphere volume = 4/3 x pi x r^3
c. Write a function that takes as parameters the radius, the height, and a character, from the user. If the character is 's' or 'S',
the function displays the volume of the sphere of radius r. If the character is 'c' or 'C', the function displays the volume of the
cylinder of radius r and height h. Otherwise, the function displays \"Wrong entry\" .
d.
Write a C++ program that reads the radius, height, and a character from the user, then invokes the function you did in part
"c".
The program keeps reading values until the user decides to stop.