Title: place a teabag in a mug
1(No Transcript)
2- place a teabag in a mug
- boil some water
- pour over teabag
- wait until strong enough
- remove the teabag
- add some milk and stir.
what is this?
3- procedure maketea
- objects mug, teabag, water, milk
- actions pour, put, boil, stir, drink
- conditions strong, cool
- begin
- boil water
- put (teabag, mug)
- pour (water, mug)
- repeat until strong TRUE
- put (teabag, NOT mug)
- pour (milk, mug)
- stir (mug)
- repeat until cool TRUE
- end
- end procedure
what is this?
4 5Algorithm is a metaphor Imagine making a cup of
tea When pupils are first introduced to
programming at whatever level, a popular example
is making a cup of tea. It is an activity
associated with combining components in a
specific order, over a period of time and ends
when a condition is set.
6The format of instruction could be considered to
be a metaphor if it is a whole set of
alternative labels, a whole apparatus of
organisation that takes over new territory
(Goodman, 1951)
Goodman, N (1951) The Structure of Appearance
Harvard University Press
7John WoollardSeptember 2003