Part VI

Two Programs

The chapters so far have shown each feature in a snippet of its own. This part shows two complete programs, each a page or two long, and looks at the decisions in them: where the data lives, how errors travel, and what the compiler checks. Neither is built up step by step. Each is shown whole, and then taken apart.

  1. 24A Word Counter
  2. 25A Calculator