Revisions: 08/24/01; 11/07/04, 08/20/06 -- format changes

CHAPTER 15 — More about Program Structure

Most big tasks can be divided into smaller sub-tasks. Programs that perform big tasks are written with many sub-programs that perform sub-tasks. Big programs need loops that repeat sections of code and need decisions to pick alternative sections. This chapter shows how to do this.

Chapter Topics:

QUESTION 1:

(Mental exercise:) A car is made up of many small components (motor, body, wheels, radio, fuzzy dice ...) which are in turn made up of even smaller components (block, head, cam shaft, gaskets, pistons, ...), which are made up of yet smaller components, and so on.