Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

What lower-layer protocol encapsulates SNMP messages?

Answered: 1 week ago