In the context of web and network privacy issues, new employees in an organization have to sign an acceptable use policy (AUP) before they access the network. This usage policy<span> or fair use policy, </span> provides guidance and set of rules for using the network and network resources and protects the network and the users.
Answer:
The solution code is written in Python 3
- digits = input("Enter 9 digits: ")
-
- multiplier = 1
- total = 0
-
- for x in digits:
- total += int(x) * multiplier
- multiplier += 1
-
- checksum = total % 11
-
- if(checksum == 10):
- print(digits + "X")
- else:
- print(digits + str(checksum))
Explanation:
Firstly, use input function to get user input for 9 digits (Line 1)
Next we can use a for-loop to estimate the summation (d1 * 1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5+ d6 * 6 + d7 * 7 + d8 * 8 + d9 * 9) ( Line 6-8)
Then only apply % operator to get the remainder of total and get the checksum (Line 10)
Next create if and else statement to print the digits string joined with X if checksum is 10 else join digits string with checksum value (Line 12 -15)
HTTP or HTTPS is most likely the answer you are looking for.
Loop is a control structure that causes a statement or group of statements to repeat.Before entering a loop, the first input, or the accumulator where the total will be kept is retrieved to an initial value, usually zero.