Question: A python program in which: a. Create an attack history dictionary with the contents as given below: i. Attack type: SQL injection, IP spoofing, DDoS,
A python program in which:
a. Create an attack history dictionary with the contents as given below:
i. Attack type: SQL injection, IP spoofing, DDoS, DNS poisoning, Theft
ii. Date of the last attack: 5 Feb 2020,
iii. Component effected: database, router, cache memory, network, computer node
iv. Cost of recovery (dollar amount) b. Enter up to 5 such attacks and display the contents of your dictionary. (4 points)
c. Sort and display the attacks according to date and cost. Use appropriate methods such as add_attack, display_attak, etc. for each of the functionality mentioned above. (6 points)
Description- I need this program in a simple way. This is given as a basic programming exercise. In this program, we need to make a directory with the above-mentioned things like attack type, date of the last attack, etc. After this is done we need to sort the above-lsited data according to date and cost. Please help...Need to be done as soon as possible
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
