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
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:
Post a Comment