|
The recommended tool for designing a modular, top-down system is a structure chart. A structure chart is a diagram consisting of rectangular boxes, which represent the modules, and connecting arrows. Structure charts encourage top-down design and support the concepts of modularity and top-down structured design. Top-down structured design deals with the size and complexity of an application by breaking it up into a hierarchy of modules that result in an application that is easier to implement and maintain. Top-down design allows the systems analyst to ascertain overall organizational objectives along with ascertaining how they are best met in an overall system. Then, the analyst moves to dividing that system into subsystems and their requirements. The modular programming concept is useful for the top-down approach: once the top-down approach is taken, the whole system is broken into logical, manageable-sized modules, or subprograms. (The bottom-up approach to design, on the other hand, refers to identifying the processes that need computerization as they arise, analyzing them as systems, and either coding them or purchasing packaged software to address the immediate problem.) Modular design is the decomposition of a program or application into modules. A module is a group of executable instructions (code) with a single point of entry and a single point of exit. A module could be a subroutine, subprogram, or main program. It also could be a smaller unit of measure such as a paragraph in a COBOL program. Data passed between structure chart modules has either Data Coupling where only the data required by the module is passed, or Stamp Coupling where more data than necessary is passed between modules. The modules in a structure chart fall into three categories:
A lower level module should not be required to perform any function of the calling, higher level module. This would be "improper subordination." A structure chart is a graphic tool that shows the hierarchy of program modules and interfaces between them. Structure charts include annotations for data flowing between modules.
Modules that perform input are referred to as afferent while those that produce output are called efferent. |