Question: IN PYTHON Write functions for the following: sphereArea (radius): It returns the surface area of a sphere having the given radius. The formula is A
IN PYTHON
Write functions for the following:
sphereArea (radius): It returns the surface area of a sphere having the given radius. The formula is A = 4 r2.
sphereVolume(radius): It returns the volume of a sphere having the given radius. The formula is V = (4/3) r3.
Then write a main program that uses these functions to compute the surface area and volume of a sphere given the radius. The program should prompt the user for the radius and then print out the surface area and volume.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
