Question: Problem 1 ( 5 points ) : Write a simple script called spvol that calculates the volume of a hollow sphere, that is , 4

Problem 1(5 points):
Write a simple script called spvol that calculates the volume of a hollow sphere, that is,43(ro3-ri3),
where ri=2 is the inner radius, and ro=4 is the outer radius. The script will prompt the user for the
inner and outer radii in the following format. Using these two variables, calculate the volume, and then
output the volume in the following format. Please pay attention to the number of decimal places in the
output.The inner radius is: 2
The outer radius is: 4
The volume of the sphere is: 234.57
 Problem 1(5 points): Write a simple script called spvol that calculates

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!