The correct answer is protocols.
Protocols are rules and instructions as to how devices should function. Each of these devices has its own protocols about its inner workings that regulate how that particular device is going to work and function in real life. Without these protocols, the device wouldn't be able to work.
Answer:
The solution code is written in Python:
- sec = int(input("Enter number of seconds: "))
-
- if(sec >=60):
- min = sec // 60
- sec = sec % 60
- else:
- min = 0
-
- print(str(min) + " minutes " + str(sec) + " seconds")
Explanation:
Firstly, use input function to prompt user to enter number of seconds and assign the input value to variable sec (Line 1).
Next, create an if statement to check if the sec is bigger or equal to 60 (Line 3). If so, we user // operator to get minutes and use % operator to get the seconds (Line 4 - 5).
Then we use print function to print the minutes and seconds (Line 9).
Is it where you can pick multiple answers
Answer:
Below are the python Program for the above question:
Explanation:
keysList =[1,61,68,64]#key list items.
itemsList =[1,2,3,4]#item list items.
for x in range(len(keysList)):#for loop.
if(keysList[x]>60):#check the value to be greator.
print(itemsList[x],end=";")#print the value.
Output:
- The above code will print as "2;3;4;".
Code Explanation:
- The above code is in python language, in which the first and second line of the code defines a list. That list can be changed by the user when he wants.
- Then there is a or loop that scans the keylist items and matches the items that it is greater than 60 or not. If it then takes the location and prints the itemlist by the help of that location.