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
I think it is D
Hope my answer help you?
There are different kinds of variable. The answers are below;
- If the variable value is incremented, therefore, No <u>exception </u>will occur.
- If the variable value is incremented, An <u>Overflow </u>will occur
- If the variable value is decremented no exception will occur.
<h3>What is Underflow?</h3>
Underflow is a known to be a process or exception that happens if a number calculation is too small to be shown by the CPU or memory.
what causes a overflow is the Adding to a variable when its value is at the upper end of the datatype range.
Learn more about variables from
brainly.com/question/24751617