Question: Test your code using the following cases: ( a ) All positive input values for radius and height. ( b ) Zero radius, positive height.

Test your code using the following cases:
(a) All positive input values for radius and height.
(b) Zero radius, positive height.
(c) Positive radius, zero height.
(d) Zero radius and height.
(e) Negative radius, positive height. Be sure your code raises a ValueError exception if the radius passed to the function is negative.
(f) Positive radius, negative height. Be sure your code raises a ValueError exception if the height passed to the function is negative.

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