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.