Question: Create a script file that uses a while loop to ensure that data entered to calculate the volume of a cylinder is valid (meaning both

 Create a script file that uses a while loop to ensure

Create a script file that uses a while loop to ensure that data entered to calculate the volume of a cylinder is valid (meaning both the radius and heights entered by the user are greater than 0). If the input is not valid then display an error message and ask the user to renter the values until the user enters valid input. Once the Input is valid then calculate the volume and display the results (nicely formatted)

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!