Program Flow Control 1
3 Control Structures to consider
• Sequence (a, b, c, d)
• Selection (what do you want from a to d?)
• Looping (a, b, c, d, a, b, c, d, a, b, c, d)
Basic Elements
Start / Stop
Process
Decision
Basic Elements explained
• Start/Stop – used to begin and end the
flowchart
• Process – an operation which takes place,
usually contains a description
• Decision – makes a Boolean choice and has
two lines coming from it – yes/no
Flowcharts – Sequence
Start
Stop
Put bread in
toaster
Wait for bread
to toast
Eat toast
Flowcharts – Selection
Start
Stop
Is it
wet?
Wear a coat Wear shades
YES NO
Flowcharts – Looping
Start
Stop
Do I
have
20p
Buy a Freddo
Go home and
get wallet
YES
NO
Question
• Why do people create flowcharts before they
start a project?

Program flow control 1