Question: Python 3.6 In all cases, the key idea is to write a single function. However, in all cases, you should create a program that will

Python 3.6

In all cases, the key idea is to write a single function. However, in all cases, you should create a program that will essentially test the function. For example, you might include several function calls and the results, or create a program where a user can enter values and see the results. You may feel free to make multiple functions within any one of these programs.

a) Imagine that you have a block of material in which a hole has been drilled:

NOTE: Image if not displaying is a cube with a single hole of constant diameter drilled perpendicular to face straight through to other side of object. Hole is centered in face

Write a function that will take in the dimensions of the box, length, width, and height, and the radius of the hole, and determine the volume of material remaining. Assume the hole has been drilled along the height direction. Note: first write the function assuming the hole has radius less than min(length/2, width/2) you will still receive a majority of credit (more than 70%) for this result. For full credit, you will need to account for larger radii.

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!