
Modularization
repetition will stop, and control will pass to the statement after
ENDDO. (Print total patients, total charges.)
However, instead of performing all the activities
itself,
this mainline
calls on a series of modules to perform the tasks. The mainline will
pass control to a module which will
perform
a task. When the module
has reached its end it will pass control back to the mainline, which will
then pass control to the next module and so on.
Note that the name of each module describes the specific function
for which it is intended. Without knowing the contents of any of the
modules, a programmer can read this mainline and obtai ...