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:
1. Surface area of the sphere:
Parameter/s: Radius
Return: Surface area
2. Volume of the sphere:
Parameter/s: 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 function/s are above your main code.
Assume input values could have decimal places.
Example Input/Output:
Please enter a radius:
5
Area: 314.16
Volume: 523.60

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!