Lab 4: Instructor's Notes


Suggestion: Call attention to the last paragraph of the introduction to Chapter 5:

"Sequence, selection, and repetition are the only control structures needed. A fundamental result of theoretical computer science states that any problem solvable by a computer program can be solved by one that is made up of sequence, selection, and repetition structures."
Up to now, the programs have been "straight-line" programs. None of them have involved selective execution of one or more statements or repetition of a collection of statements. This chapter and lab introduce the basic control mechanisms.

Here are:


Report errors to Larry Nyhoff (nyhl@cs.calvin.edu)