
Modularization
7.1 Modularization
Throughout the previous six chapters, it has been emphasized that to
design a solution algorithm, a programmer must:
■ define the problem;
■ write down the control structures required to reach a solution;
and
■ devise a solution algorithm, which uses a combination of
sequence, selection and repetition control structures.
Many solution algorithms have been presented, and all have been
relatively simple; the finished algorithm has been less than one page in
length. As programming problems increase in complexity, however, it
becomes more and more difficult to consider the solution as a whole.
Given a complex problem ...