B. Extract all files
In order to access a zipped (compressed) folder you have to extract them. The prompt should say “Extract” not Unzip.
Answer:
weights = []
total = 0
max = 0
for i in range(5):
weight = float(input("Enter weight " + str(i+1) + ": "))
weights.append(weight)
total += weights[i]
if weights[i] > max:
max = weights[i]
average = total / 5
print("Your entered: " + str(weights))
print("Total weight: " + str(total))
print("Average weight: " + str(average))
print("Max weight: " + str(max))
Explanation:
Initialize the variables
Create a for loop that iterates 5 times
Get the values from the user
Put them inside the array
Calculate the total by adding each value to the total
Calculate the max value by comparing each value
When the loop is done, find the average - divide the total by 5
Print the results
Hang up, and inform your (real) bank that someone may attempt to steal your identity and your money.
Answer:
/var/log
Explanation:
The /var/log location identifies the location to view the log file.
Records of usage of a particular OS or software can be viewed in the log file. They usually provide a detailed view of the events of an application or system.
Log files usually provide a massive guide for troubleshooting a service, application or OS. Due to the possibility of a service or application to generate log files, these come in handy when a service malfunction, because it contains detailed information about the events of that service or application.