Question: Write aprogram that reads the radius of a sphere, then it asks the user to enter A or a to compute the sphere area;
Write aprogram that reads the radius of a sphere, then it asks the user to enter A or a to compute the sphere area; V or v to compute the sphere volume. If the symbol entered is not valid, the program displays an error message, as shown in the sample runs below, and terminates. You need also to check for valid radius (radius > 0). Use pi from math library The volume and area of a sphere are given given by: 4 Volume = r Area = 42
Step by Step Solution
3.53 Rating (153 Votes )
There are 3 Steps involved in it
Heres a Python program that calculate... View full answer
Get step-by-step solutions from verified subject matter experts
