1 / 5

Modules

Modules. Programmers break programming problems down into smaller, reasonable units called modules, subroutines, procedures, functions, or methods When you create a module or subroutine, you give the module a name that a calling program uses when the module is about to execute

rtoni
Download Presentation

Modules

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Modules • Programmers break programming problems down into smaller, reasonable units called modules, subroutines, procedures, functions, or methods • When you create a module or subroutine, you give the module a name that a calling program uses when the module is about to execute • A module can call other modules • Functions are a type of module

  2. Creating Hierarchy Charts • A hierarchy chart illustrates module relationships • Does not tell you what tasks are to be performed within a module and thus does not show control flow. • Does not tell you when or how a module executes • Rather, identifies which routines exist within a program and which routines call which other routines • A hierarchy chart shows hierarchy, that is, subordinate-superordinate relationships. In particular, it shows which modules (functions) call which others.

  3. Creating Hierarchy Charts (continued)

  4. Numbering of Modules

  5. Module Listing Order • 0 • 1 • 2 • 2.1 • 2.2 • 2.3 • 2.1.1 • 2.1.2 • 2.1.2.1 • 2.1.2.2

More Related