
Students' Guide to
Program
Design
9.1 Program structure
The aim of this chapter is to present a number of general pseudocode
solutions to a selection of typical programming problems. All of the
features covered in the previous eight chapters have been incorporated
into these solutions, with the result that each solution offers a sound
modular structure with highly cohesive modules.
For ease of presentation, the solutions have been designed to use
global data. They could, however, easily be adjusted to incorporate the
passing of parameters as in the example in Chapter 8.
Throughout this text, reference has been made to a general solution
algorith ...