Student Notes
Sequential Structure
Decision Making Structure
Looping Structure
A series of processes that follow in
A condition exists that may change the
Often, we might wish to perform the
order.
order or types of processes to be
same set of processes a number of
followed.
times, we can perform a loop and do the
For example, to wash your hair;
same set of actions over and over until a
1. Wet hair
For example, IF the light is red THEN I
STOPPING condition occurs.
2. Apply shampoo
will stop OTHERWISE I will go.
Failure to provide a STOP condition will
3. Rinse
cause the process to go into an
INFINITE LOOP
An example of a LOOP could be to
Drive Car
display the word 'SCHOOL' on the
screen 7 times.
Set counter to 0
No
Light is
Wet hair
Go
Print
Red?
‘School’
Yes
No
Is
Apply Shampoo
Counter
Add 1 to
= 7?
Stop
Counter
Rinse
Yes
exit
- 2 -
Aquilina K