Microsleep refers to periods of sleep that last from a few to several seconds.
Answer:
The program in Python is as follows:
myList = []
num = int(input())
count = 0
while num>=0:
myList.append(num)
count+=1
num = int(input())
myList.sort()
mid = int((count-1)/2)
print(myList[mid])
Explanation:
This initializes the list
myList = []
This gets the first input
num = int(input())
This initializes count to 0
count = 0
The following is repeated until the user inputs a negative number
while num>=0:
This appends the input number to the list
myList.append(num)
This increments count by 1
count+=1
This gets another input
num = int(input())
This sorts the list
myList.sort()
Assume the number of inputs is odd, the middle element is calculated as
mid = int((count-1)/2)
This prints the middle element
print(myList[mid])
<em>From the complete question. the condition that ends the loop is a negative integer input</em>
Renewable energy is energy that is collected from renewable resources, which are naturally replenished on a human timescale, such as sunlight, wind, rain, tides, waves, and geothermal heat.
Using the knowledge of pseudocodes it will be possible to write a code that calculates the amount of hours worked and giving warnings about it.
<h3>Writing a pseudocode we have that:</h3>
<em>while </em>
<em>if number == 0</em>
<em>break</em>
<em>hours =0 </em>
<em>for i =1 to 5 </em>
<em>hours = hours + time_out[ i ] - time_in[ i ]</em>
<em> If hours >36 : </em>
<em>print ( "Name is " ,name)</em>
<em>print( "No of hours are ",hours)</em>
<em>print("Congratulaion! Your working hours are more than 36")</em>
<em>If hours <30 : #</em>
<em>print ( "Name is " ,name)</em>
<em>print( "No of hours are ",hours)</em>
<em>print("Warning !!!")</em>
<em>End loop</em>
See more about pseudocode at brainly.com/question/13208346
#SPJ1