Download presentation
Presentation is loading. Please wait.
Published byGordon Hart Modified over 9 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.