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.
1
Expert's answer
2017-10-02T20:36:56-0400
Dear Cayla Collins, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS