Question: The Second Program: ball.c In this program you will calculate the volume of rubber needed to produce a rubber ball. Here are some things you

 The Second Program: ball.c In this program you will calculate the

The Second Program: ball.c In this program you will calculate the volume of rubber needed to produce a rubber ball. Here are some things you need to know: The rubber ball is assumed to be a hollow sphere. You will need the formula for volume of a sphere in order to proceed. Your program must: 1) ) 2) 3) 4) 5) Have header comments. Follow the example shown above. Have at few inline comments. Display a prompt and input the exterior diameter (decimal, inches). Display a prompt and input the interior diameter (decimal, inches). Determine whether the diameter values that were input are reasonable (exterior diameter must be larger than the interior diameter). If the values are not reasonable, display the message "Exterior diameter must be larger than interior diameter." Calculate the volume of rubber (cubic inches) needed to produce a rubber ball with the given dimensions. Display the volume of rubber needed with a meaningful message. Limit the value to 2 digits to the right of the decimal point. 6) 7) Test thoroughly

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!