Question: Once the configuration step is over, the program then moves to a sample collection phase in which the user either enters a new set of

Once the configuration step is over, the program then moves to a sample collection phase in which the
user either enters a new set of samples or an exit code.
1) If a value is a non-negative integer, it is a threat level score for the current set.
2) If the value is -1 then the sample input is complete and your code should evaluate this
sample set for a threat, print the result, and then begin to collect a new sample set.
3) If the value is any other negative value then the program immediately quits (by calling
sys.exit()) and any samples that are part of an incomplete set are discarded.

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!