81.9k views
3 votes
A pseudocode program is started below that asks the user for input and stores the value in a variable. Continue writing pseudocode to accomplish this task:

If the hour is within the school day (8 to 15) then display "Nice to see you!", Otherwise, display "It’s time to go home!

DISPLAY ("Enter the hour of day (0-23)")

hour <- INPUT ()

A) This is an Essay question... make sure you know how to write and IF/ELSE Statement for this question.

B) This is an Essay question... make sure you know how to write and IF/ELSE Statement for this question.

User Eyad
by
5.2k points

1 Answer

2 votes

Answer:

Step-by-step explanation:

BEGIN

Define hour type integer

DISPLAY ("Enter the hour of day (0-23)")

hour <- INPUT()

IF hour >= 8 AND hour <= 15 THEN

DISPLAY("Nice to see you!")

ELSE

DISPLAY("It's time to go home!")

END IF

END

User Luuksen
by
5.4k points