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: see image.

b. Imagine that you have three parallel lists of the same length, one with the names of several production facilities, another with the annual cost to operate each of those facilities, and a third with the value of the products produced at each facility. Return the name and net profitability (profitability is the value of what's produced minus the cost to operate) of the least profitable facility.

C. Write a function that takes in two parallel lists: a list of times (in increasing order), and a list of distance traveled by that point in time. The function should return a new list giving the average velocity between consecutive time measurements. The new list should have length one less than the original lists.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.