place a teabag in a mug - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

place a teabag in a mug

Description:

Imagine making a cup of tea ... to programming at whatever level, a popular example is 'making a cup of tea' ... The format of instruction could be considered ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 8
Provided by: johnwo9
Category:
Tags: mug | place | teabag

less

Transcript and Presenter's Notes

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
  • what is this?

5
Algorithm 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.
6
The 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
7
John WoollardSeptember 2003
Write a Comment
User Comments (0)
About PowerShow.com