Question: Input, Output and Processing Create a console program named SphereCalc that that calculates both the volume and the area of a sphere, given a

Input, Output and Processing Create a console program named SphereCalc that that

Input, Output and Processing Create a console program named SphereCalc that that calculates both the volume and the area of a sphere, given a radius r. The volume V, and the area A, are calculated by using the formulas: A = 4r2 4 .3 V = r and 3 Here is what the output of your program should look like: r CS170: Sphere Calculator ### Enter the radius of the sphere: 8.3 Sphere Volume: 2395.0957848241965 Sphere Surface Area: 865.6972716232036 Line #1 and all prompts and output should appear exactly as shown. Line #2 is the same length as Line #1 and uses the # symbol. Lines #3 and #5 are blank while line #4 begins with a prompt. Input should occur on the same line as the prompt. #6 and #7 must contain "Sphere Volume: " and "Sphere Surface Area: The volume and area should not be formatted. Just use concatenation. Use Math.PI, not a literal value for pi. Use Math.pow(). Remember the difference between integer and real division. 11

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

PYTHON import math printCS170 Sphere Calculator ... View full answer

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 Programming Questions!