Question: please solve the previous question in Payton 3 and it should match the sample run. Exercise # 4: Write a program that prompts for and

 please solve the previous question in Payton 3 and it should

please solve the previous question in Payton 3 and it should match the sample run.

Exercise # 4: Write a program that prompts for and reads the number n of spheres to be processed. If n so your program must display an error message and terminate; otherwise it does the following for n times: Prompts for and reads the volume of a sphere, it then displays the surface area of the sphere with that volume. Assume that each volume is in cubic centimeters. The program finally displays the average of the surface areas of the n spheres. . Please note that . = 3.14159. volume = ar? surface area = 40r2 The following are sample runs of the program. Slide Type Slide Type Enter number of spheres to be processed: -1 number of spheres must be > 0 Enter number of spheres to be processed: 3 Enter volume of sphere 1: 15 Sphere #1 surface area= 29.41 Enter volume of sphere 2: 27 Sphere #2 surface area= 43.52 Enter volume of sphere 3: 9 Sphere #3 surface area= 20.92 The average surface area = 31.29

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!