Question: : In your main code, prompt the user to input the radius of a sphere in meters. Next write the following two functions: 1 .
: In your main code, prompt the user to input the radius of a sphere in
meters. Next write the following two functions:
Surface area of the sphere:
Parameters: Radius
Return: Surface area
Volume of the sphere:
Parameters: Radius
Return: Volume
Finally, in your main code, print the returned values of each measurement in meters.
Note:
You may need to search online for the formula of these functions.
Functions and variables must be named appropriately and follow proper naming
conventions.
Always make sure you functions are above your main code.
Assume input values could have decimal places.
Example InputOutput:
Please enter a radius:
Area:
Volume:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
