Answer: Vulnerability of
Explanation:
The network administrator was able to identify that virus before it led to denial of service to users. Since it has been discovered, it is no longer a threat as measures will be taken to eliminate it. But a virus that was successful uploaded shows how vulnerable the system is or how bad the security protections put in place are. Steps has to be taken to ensure it does not reoccur.
Answer:
- from matplotlib import pyplot as plt
-
- with open("text.txt") as file:
- data = file.readlines()
- category = []
- amount = []
- for row in data:
- values = row.split(" ")
- category.append(values[0])
- amount.append(float(values[1]))
-
- figure = plt.figure()
- ax = figure.add_axes([0,0,1,1])
- ax.axis('equal')
- ax.pie(amount, labels = category, autopct='%1.2f%%')
- plt.show()
Explanation:
Firstly, we need to import matplotlib library (Line 1).
Next, open a file stream and use readlines method to read the data from the text file (Line 4). Presume the data read from the text files are as follows:
Rent 450
Gas 150
Food 500
Clothing 120
Car 600
Create two lists, category and amount (Line 5-6). Use a for loop to traverse through the read data and use split method to break each row of data into two individual items. The first item is added to category list whereas the second item is added to amount list (Line 7 - 10).
Next, create a plot figure and then add the axes (Line 12 - 13). We can use the pie method to generate a pie chart (Line 15) by setting the amount list as first argument and category list as value of labels attributes. The output pie chart can be found in the attachment.
Answer:
It's good to consider this as a dictionary, with key-value pair, or as a two-dimensional array.
And in the first case, the code will be as below:
day_i={'Bob':'100', 'Alice':'100','Celia':'110','Bob':'200'}
for k, v in day_i.items():
print(k, v)
Explanation:
The above code reads through each day, and each customer purchase amount in the form of Dictionary, and prints each customer name and purchase amount. And with little enhancement, we can create each day data, and print details of the day, as being asked by the user.
<h2>All the given answers are right</h2>
Explanation:
- Lighting is one of the key factor which is essential to do cinematography
- It will help to cut off the shadows that is created using natural light
- It can depict the mood of the scene that is shoot
- We can adjust manually brightness and darkness according to the need, which is not possible in the natural light.
- It can boost the quality of the footage
- We can shoot anytime irrespective of the weather condition
- The light from the camera alone is not enough to shoot the best picture