Question: . LAB: Calculate volume of a sphere Write a function def sphereVolume (r) that computes the volume of a sphere with radius r (volume =4/3pi
. LAB: Calculate volume of a sphere Write a function def sphereVolume (r) that computes the volume of a sphere with radius r (volume =4/3pi radius 3 ). Then write a main function that prompts the user for the value of r. Then print the output formatted so that it contains three decimal places. Ex: If the input is: then the return value is: and the output is: Please make sure to write the entire program including function def main() : The volume of a sphere is 34r3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
