Question: in python ENGR 102-LAB ASSIGNMENT #118 ACTIVITY #3 : ASSIGNMENT: WRITING YOUR OWN PROGRAMS (INDIVIDUAL) You are to write the following programs as described below
in python

ENGR 102-LAB ASSIGNMENT #118 ACTIVITY #3 : ASSIGNMENT: WRITING YOUR OWN PROGRAMS (INDIVIDUAL) You are to write the following programs as described below have the program 'test' the function. For example, you might include several function calls and display 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 PROGRAM 1: THIS ISN'T A DRILL Image you have a block of material in which a hole has been drilled. 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 driled along the height directiorn Note: first write the function assuming the hole has a radius less than min(length/2 width/2). For full credit, you will need to account for larger radii as wel PROGRAM 2: PROFIT PROPHETS Imagine 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 is produced minus the cost to operate) of the least profitable facility PROGRAM 3: LABEL ME Write a function that takes as input a person's name, city, state, zip code, and address, where the address is either one string (one line) or two strings (two lines), and prints the person's information like a mailing label. Show that the routine works regardless of whether it is called with one address line or two address lines. PROGRAM 4: PICK UP MY TAB Write a function that takes the name of a file with a.csv extension (a comma-separated value file), and writes a new equivalent file (same name and data) but with a.tsv extension (a tab-separated value file: like a CSV but with tabs instead of commas separating the elements). Note: the character used to represent a tab is'\t'. PROGRAM 5: AGAIN Write a single function that takes in a list and returns the minimum, mean and maximum value from the list. PROGRAM 6: KEANU REEVES STARRING IN "AVERAGE VELOCITY" 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
