nums = list(map(int, input().split()))
mean = sum(nums)/len(nums)
print("The mean is",mean)
values = 0
for x in nums:
values += abs(x - mean)**2
print("The standard deviation is",(values / (len(nums)-1))**0.5)
I wrote my code in python 3.8. I hope this helps.
Answer:
a. see explaination
b. 0.632
Explanation:
Packet switching is a method of grouping data that is transmitted over a digital network into packets. Packets are made of a header and a payload.
See attachment for the step by step solution of the given problem.
Answer:
18000 seconds or 300 minutes.
Explanation:
In the example given in the question, it is stated that the system uses 32-bit unique salt which is equal to 4 bytes where every digit takes up 1 byte thus forming the 4 digit passwords.
Considering that the passwords are 4 digits, starting from 1000 and up to 9999, there are 9000 possible password combinations.
If Eve has to go through the whole range of possible password combinations and it takes her 1 second to guess 1 password. Then in the worst case scenario, it would take her 18000 seconds or 300 minutes to crack both accounts, assuming that it is possible for them to use the same passwords.
I hope this answer helps.