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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started