Question: Could you write this in Python please. R1. You will write a single driver program named acute . R2. You can write this program

Could you write this in Python please.

R1. You will write a single driver program named \"acute\".

R2. You can write this program in the language of your choice, but it must run on either Microsoft Windows or a version of UNIX with no additional external requirements (e.g. special libraries). My recommendation would be to use Python 3.NOTE: If you use Python 3, you are approved to use numpy and pandas. Sweet!

R3. This program will be command line and take commands as parameters, each of which demonstrates a specific function of the interface.

R4. Your program's source code should be well-documented and professional so that its logic is easily followed.

Special Requirements

R5. Your program will need to read an input file namedcontrol_data.csv.

The structure of the file is a CSV, with a header row having the column names, Control_ID, Control_Description, Cost, and Value. The data is a list of controls, associated costs (implementation and operational) and risk values (reduction). An example is available in the Files\\src section of Canvas.

Interfaces

Each of these functions and their parameters will be invoked from the main program and each of the parameters will be a single argument on the command line.

Interface 1 - GetControlOptions(, max_cost)

This will output various control implementation options based on different algorithms.

Test program:

acute control_data.csv 8

The program should return the following:

R6. Total Controls

R7. Possible Control Combinations (NOTE:If you had 7 different total controls, then for example, you could implement C1, but not C2-C7. Or, you could implement C1 and C2, but not C3-C7. Or, you could implement C7, but not C1 - C6.)

R8. Maximize Count Items

R9. Maximize Count Value

R10. Maximize Value Items

R11. Maximize Value Value

R12. Maximize Value Density Items

R13. Maximize Value Density Value

R14. Optimal Solution Items

R15. Optimal Solution Value

Here is the file needed:

Example Output:

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 Programming Questions!