68 774
Assignments Done
98,8%
Successfully Done
In January 2019

# Answer to Question #70391 in Python for Cayla Collins

Question #70391
print ("Enter 1 to calculate the area of a circle")
print ("Enter 2 to calculate the surface area of a sphere")
print ("Enter 3 to calculate the volume of a sphere")
print ("Enter 4 to quit")
Assuming the choice is 1-3, ask the user for the radius. If the user enters a string that cannot be interpreted
as a number, display the error message: Radius needs to be a number. If the user enters a nonpositive
number, display the error message: The radius has to be positive. Once you have a
positive radius, for choice 1, calculate the area of a circle by calling a function that calculates and returns the
area. For choice 2, calculate the surface area of a sphere by calling a function that calculates and returns
the surface area. For choice 3, calculate the volume of sphere by calling a function that calculates and
returns the volume. Your program should continue to display the menu, error check, and make calculations,
until the user enters choice 4.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!