Answer:
Following are the Python program to this question: t=float(input("Enter time value in seconds: "))#input time in seconds by user
d = t // (24 * 3600) #calculate day and store in d variable t= t % (24 * 3600)#calculate time and store in t variable h = t // 3600#calculate hour and store in h variable t %= 3600#calculate time and store in t variable m=t // 60#calculate minutes and store in m variable t%= 60#calculate time and store in t variable s = t#calculate second and store in s variable print("day:hour:minute:second= %d:%d:%d:%d" % (d,h,m,s))#print calculated value
Output:
Enter time value in seconds: 1239876
day:hour:minute:second= 14:8:24:36
Explanation:
Description of the above can be defined as follows:
- In the above Python program code an input variable "t" is declared, which uses the input method to input value from the user end.
- In the next step, "d, m, and s" is declared that calculates and stores values in its variable and at the last print, the method is used to print its value.
Answer: B
Explanation: They are trying to flood the service with so many things like messages, connection requests, that the system can't handle it and will shut down or crash.
Answer:
It counts the number of items in the given list that are less than Description temp:
Explanation:
Following are the description of the loop
- In the given question initially, the value of "j" variable is initialized to 0.
- After that loop will iterate less then the length of the list array.
- The if(list[j] < temp) checks the condition if it is true then c++ increment the value by 1
- j++ increment the value of "j" by 1.