
Module design considerations
ir ir
for data parameters for status parameters
Data parameters contain the actual variables or data items which
will be passed between modules.
Status parameters act as program flags and should contain just one
of two values: true or false. These program flags or switches are set to
true or
false,
according to a specific set of conditions. They are then
used to control further processing.
When designing modular programs, the programmer should avoid
using data parameters to also indicate status. This can affect the
program in two ways:
1 It may confuse the reader of the program because a variable has
been
overloaded; ...