0% found this document useful (0 votes)
91 views

Algorithms Selection - Activity

The algorithm reads the current time, compares it to 12:00, and if it is 12:00, outputs "Lunch time". The flowchart constructed contains symbols for Start, Read time, decision diamond to check if time equals 12:00, and Write "lunch time" output. An off-page connector is used to connect the decision diamond to the Write output.

Uploaded by

api-546162315
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Algorithms Selection - Activity

The algorithm reads the current time, compares it to 12:00, and if it is 12:00, outputs "Lunch time". The flowchart constructed contains symbols for Start, Read time, decision diamond to check if time equals 12:00, and Write "lunch time" output. An off-page connector is used to connect the decision diamond to the Write output.

Uploaded by

api-546162315
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

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

You might also like