Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Chapter 16 Component-Level Design. 2 Component-Level Design  the closest design activity to coding  the approach: review the design description for.

Similar presentations


Presentation on theme: "1 Chapter 16 Component-Level Design. 2 Component-Level Design  the closest design activity to coding  the approach: review the design description for."— Presentation transcript:

1 1 Chapter 16 Component-Level Design

2 2 Component-Level Design  the closest design activity to coding  the approach: review the design description for the component use stepwise refinement to develop algorithm use structured programming to implement procedural logic

3 3 Stepwise Refinement open walk to door; reach for knob; open door; walk through; close door. repeat until door opens turn knob clockwise; if knob doesn't turn, then take key out; take key out; find correct key; find correct key; insert in lock; insert in lock; endif pull/push door move out of way; end repeat

4 4 The Component-Level Design Model  represents the algorithm at a level of detail that can be reviewed for quality  options: graphical  flowchart  box diagram decision table pseudocode  Program Design Language(PDL)

5 5 Graphical Design (flowchart) uses a limited set of logical constructs: sequence conditional — if-then-else, select-case — if-then-else, select-case loops — do-while, repeat until — do-while, repeat until leads to more readable, testable code important for achieving high quality, but not enough

6 6  Three structured constructs:

7 7  Nesting constructs

8 8  A Structured Procedural Design

9 9 Box Diagram

10 10 Decision Table

11 11

12 12 Program Design Language (PDL) if-then-else if condition x then process a; else process b; endif PDL easy to combine with source code machine readable, no need for graphics input graphics can be generated from PDL enables declaration of data as well as procedure easier to maintain

13 13 Comparison of Design Notation  Modularity  Overall simplicity  Ease of editing  Machine readability  Maintainability  Structure enforcement automatic processing  Data representation  Logic verification  “Code-to” ability


Download ppt "1 Chapter 16 Component-Level Design. 2 Component-Level Design  the closest design activity to coding  the approach: review the design description for."

Similar presentations


Ads by Google