You are on page 1of 3

Algorithm Design: Writing

instructions in how to make a jam


sandwich Examples
• Algorithms are most Pseudocode Flowchart
commonly written as either a
Flowchart or as Pseudocode. START
• Flowcharts clearly show the IF the decision is true THEN
flow and direction of your Go to Action 1
decisions in a very visual way. ELSE
Go to Action 2 TRUE FALSE
• Pseudocode shows each step END
in a clearly ordered, written
structure. Above is an example
of the same
• Either way is fine, it’s up to instructions written
your own personal as pseudocode and
preference! as a flowchart.
Algorithm: Writing flowchart instructions
The following symbols are used to create flowchart algorithms:
Example:
Start / End Direction of flow
Begin or finish your algorithm. Arrows are used to show the
direction of flow within the START
START algorithm.
END
Is it TRUE
Wear a
raining
Task coat
Decision today?
(e.g. spread jam) (e.g. “do you want butter?”)
Do something. True or False test. FALSE

Leave
coat at
TRUE home
Spread Jam Do you
want
butter?
END
FALSE
Flowchart Algorithm: Make a jam sandwich
Flow arrows can be found within the Shapes drop down menu.

• It’s time to create Make sure you add


our flowchart! the TRUE and FALSE
labels above to each
• To the right, you
decision correctly!
will see all the
tasks and
decisions you
need to create
either a
strawberry or
apricot jam
sandwich.
• Using the tasks
and decisions
provided, create a
flowchart
algorithm to
create a jam
sandwich. Make
sure you use flow
arrows to connect
the symbols
together.

You might also like