Sunday 9 November 2008

Chunk 13 Description

CHUNK 13
TITLE While statements
DESCRIPTION Describe the two forms of while statement. Students really find this a tough topic so go very gently with lots of examples. Use arrays as much as possible but start of with a simple non-array example such as summing the first n integers. Develop a program similar to Greenberg 90--92
OUTCOMES
  • Be able to understand a simple while loop involving a single dimensional array
  • Be able to develop a simple while loop involving a single dimensional array
  • Be able to understand a program of a similar complexity to that described in your text
REFERENCE Greenberg 85--87
HINT This probably the toughest part of the book so far, take it very gently with lots of small examples between three and five lines of code
PROGRAM Develop a program similar to the one you describe in the text.

No comments: