Algorithm: Selection
Construct
Ms. Emamdee
Flowchart Symbols
off-page
off-page Start/Stop decision process input/output flow line
connector Start/Stop decision process input/output flow line
connector
Instructions:
Question:
Write an algorithm that will read the time. If the time
is 12:00 output “Lunch time”.
Click on the shape and label to construct a flowchart
to the following problem.
Select flowchart
symbol
Select label for symbol
Start
Stop
READ time
WRITE “lunch time”
time = 12:00?
Start
Select flowchart
symbol
Start
Select flowchart
symbol
Select label for symbol Start
Start
Stop
READ time
WRITE “lunch time”
time = 12:00?
Start
Select flowchart READ time
symbol
Start
Select flowchart READ time
symbol
Select label for symbol Start
READ time
Start
Stop
READ time
WRITE “lunch time”
time = 12:00?
Start
Select flowchart READ time
symbol
time = 12:00?
Start
Select flowchart READ time
symbol
time = 12:00?
Start
Select label for symbol
READ time
Start time = 12:00?
Stop
READ time
WRITE “lunch time”
time = 12:00?
Start
Select flowchart READ time
symbol
time = 12:00?
WRITE “lunch
time”
Start
Select flowchart READ time
symbol
time = 12:00?
WRITE “lunch
time”
Start
Select flowchart READ time
symbol
time = 12:00?
WRITE “lunch
time”
Start
Select label for symbol
READ time
Start time = 12:00?
Stop
WRITE “lunch
READ time
time”
WRITE “lunch time”
time = 12:00?
Start
Start
Congratulations!!!
READ time
READ time
Well done
time = 12:00?
time = 12:00?
WRITE “lunch
time”
WRITE “lunch
time”
Stop
Stop
Sorry that’s incorrect at this stage.
Try again