
Modularization
7.3 Steps in modularization
Top-down modular design is really quite simple if the following steps
are performed every time a programmer is presented with a
programming problem:
1
Define
the problem by dividing it into its three components: input,
output and processing. The processing component should consist
of
a
list of activities to be performed.
2
Group
the activities into subtasks or functions to determine the
modules which will make up the program. Remember that a
module is one section of a program dedicated to the performance
of a single function. Note that not all the activities may be
identified at this stage. Only th ...