Question: Using python This project is to provide simple risk calculations given an input file and associated constraints. R1. You will write a single driver program

Using python This project is to provide simple risk calculations given an input file and associated constraints.

R1. You will write a single driver program named "simple_risk".

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.

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.

R5. Your program will need to read an input file named sle_data.csv. The structure of the file is a CSV, with a header row having the column names, System and SLE. The data is a list of systems and associated SLEs. An example is available in the Files\src section of Canvas.

It looks like the following:

System,SLE

System1,800

System2,650

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 - GetSimpleRisk(, aro)

This will output various risk information for an enterprise set of SLEs.

Test program:

simple_risk sle_data.csv 0.1

The program should return the following:

R6. System Count

R7. Mean SLE

R8. Mode SLE

R9. Median SLE

R10. Total ALE

-This criterion is linked to a Learning OutcomeR1

You will write a single driver program named "simple_risk".

-This criterion is linked to a Learning OutcomeR2

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.

-This criterion is linked to a Learning OutcomeR3

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

-This criterion is linked to a Learning OutcomeR4

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

-This criterion is linked to a Learning OutcomeR5

Your program will need to read an input file named sle_data.csv. The structure of the file is a CSV, with a header row having the column names, System and SLE. The data is a list of systems and associated SLEs.

This criterion is linked to a Learning OutcomeInterface 1 - GetSimpleRisk(, aro)

Using python This project is to provide simple risk calculations given an

System Count: 38 Mean SLE: 599.70 Mode SLE: 755.00 Median SLE: 755.00 Total ALE: 1799.10

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