Chapter 3
Basic Program Structure Abstractions


3.0 Chapter Goals
3.1 Statement Sequences
3.2 Simple Selection
3.3 Boolean Variables and Expressions
3.4 Repetition (1) -- the WHILE Statement
3.5 Repetition (2) -- the REPEAT Statement
3.6 Analysis of Loops
     3.6.1 Loops and Boolean Flags
3.7 Counting Loops
3.8 Replacing Loops With Closed Forms
3.9 Qualified Import
3.10 Insect Control Again--Some Common Errors
3.11 Style and Prettyprinting
3.12 An Extended Example (Day Number in a year)
3.13 Chapter Summary
3.14 Assignments
     First Interregnum--A Short History of Computing

Contents