Answer:
IF hour >= 8 AND hour <= 15
DISPLAY("Nice to see you!")
ELSE
DISPLAY("It's time to go home!")
END IF
Step-by-step explanation:
We check the value entered, and stored in the variable 'hour'.
If the value of 'hour' is greater or equal to 8, but lower or equal 15, we wish the student welcome. Otherwise, we tell him to go home. Then end of the IF structure.
This fragment of code would be placed below the one provided in the question statement.