Upload
vinay-arora
View
1.805
Download
2
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
Tools for Structured Design
Organized By: Vinay Arora
Assistant Professor
CSED, Thapar University
www.slideshare.net/aroravinay
V.A.
CSED
Disclaimer
This is NOT A COPYRIGHT MATERIAL
Content has been taken mainly from the following books:
System Analysis and Design Methods By Jeffrey L Whitten & Lonnie D Bentley ,
Analysis & Design of Information Systems By James A. Senn,
System Analysis & Design By Elias M. Awad,
Modern System Analysis & Design By Jeffrey A. Hoffer, Joey F.George & Joseph
S. Valacich
V.A.
CSED
Tools for Structured Analysis
For the Business System under Investigation DECISION & PROCEDURES are Important to System Analyst.
Various TOOLS are present for Studying Operational Procedures and Decision Making Steps.
TOOL – A Device, Object or Operation used to accomplish a Specific Task.
Three TOOLS for Documenting Procedures:
Decision Tree, Decision Table and Structured English
V.A.
CSED
Structured English
� STRUCTURED ENGLISH is the use of the English Language with the
SYNTAX of Structured Programming.
� STRUCTURED ENGLISH aims at getting the benefits of both the
Programming Logic and Natural Language.
� Program Logic helps to attain precision while natural language helps in
getting the convenience of spoken Languages.
� Method to Overcome Problem of AMBIGUOUS Language.
V.A.
CSED
Guidelines when writing Structured
English
� Statements should be Clear and Unambiguous
� Use One Line per Logical Element
� All LOGIC should be expressed in Operational, Conditional and
Repetition Blocks
� Logical Blocks should be indented to show Relationship
� Keywords should be Capitalized
V.A.
CSED
Structured English (contd.)
V.A.
CSED
Common Keywords
� START, BEGIN, END, STOP, DO, WHILE, DO WHILE, FOR,
� UNTIL, DO UNTIL, REPEAT, END WHILE, END UNTIL, END
� REPEAT, IF, IF THEN, ELSE, IF ELSE, END IF, THEN, ELSE
� THEN, ELSE IF, CASE, EQUAL, TRUE, FALSE, AND, OR, XOR
V.A.
CSED
Developing Structured Statements
Structured English uses THREE Basic Types of Statements to describe a
PROCESS:
� SEQUENCE STRUCTURES
� DECISION STRUCTURE
� ITERATION STRUCTURES
V.A.
CSED
Sequence Structures
� A Single Step or Action Included in a Process.
� None of the Steps contains a Decision or any Conditions that determine whether the steps are taken.
� Operation Statements written as ENGLISH PHRASES executed from the top down.
Example:
1). Pick Out a Desirable Book
2). Take the Book to the Checkout Counter
3). Pay for the Book
4). Obtain a Receipt
5). Leave the Store
V.A.
CSED
Decision Structure
� Another way of Showing Decision Analysis.
� Decision Structures occur When TWO or MORE Actions can be taken,
depending on the value for a Specific Condition.
� After Decision Making Stated Actions or Sets of Actions for that
Condition will be taken.
� Once Condition is made, ACTIONS are Unconditional.
� Keywords Like IF/THEN/OTHERWISE are used.
V.A.
CSED
Example
IF a desirable book is found, THEN
Take the book to the checkout counter.
Pay for the book.
Be sure to obtain a receipt.
Leave the store.
OTHERWISE
Do not take the books to the checkout counter.
Leave the Store.
END IF
V.A.
CSED
Iteration Structure
� Iteration Instructions permit Analyst to Describe the cases where:
Certain Activities are repeated WHILE a certain Condition Exists
OR
UNTIL a Condition Occurs
V.A.
CSED
Example
DO WHILE Still examining more books.
Read the title of the Book.
IF the title sounds interesting
THEN pick up the book and thumb through it.
Look at the Price.
IF you decide you want the book
Put it in the DESIRABLE BOOK stack.
ELSE Put it back on the shelf.
END IF
ELSE Continue
END DO
V.A.
CSED
IF Desirable books are found THEN
Take the books to the checkout counter.
Pay for the books.
Be sure to obtain a receipt.
Leave the store.
ELSE
Do not take books to the checkout counter
Leave the store
END IF
V.A.
CSED
Tree Structure
V.A.
CSED
Decision Tree
� Conditions – Possible States of an ENTITY.
� Action – What to do when certain condition/s occur…
� Actions are the Alternatives.
� Tools used in Understanding & Matching combinations are -
- Decision Trees
- Decision Tables
- Structured English
V.A.
CSED
Decision Tree
� Decision Tree – Diagram that presents CONDITIONS and ACTIONS
sequentially.
� Shows which CONDITIONS to consider First which Second and so on.
� Method of showing the relationship of condition & its permissible
actions.
� Diagram resembles branch of a TREE.
V.A.
CSED
Decision Tree – Basic Layout
V.A.
CSED
Decision Tree Sample
V.A.
CSED
Decision Tree Example
V.A.
CSED
Decision Tree (cont.)
� Formal Identification of Actual Decision.
� Force Analyst to Consider the Sequence of Decisions.
� Drawback of Decision Tree – A Large number of branches with many
paths through them will cloud rather than aid analysis.
V.A.
CSED
Decision Tree for Invoice Processing
V.A.
CSED
Example Decision Tree – Students Data
V.A.
CSED
Example Decision Tree – Students Data – Take
student as root node
V.A.
CSED
Example Decision Tree – Students Data – Take
income as 2nd node
V.A.
CSED
Example Decision Tree – Students Data (contd.)
V.A.
CSED
Example Decision Tree – Students Data (contd.)
V.A.
CSED
Example Decision Tree – Students Data (contd.)
V.A.
CSED
Example Decision Tree – Students Data (contd.)
V.A.
CSED
Decision Table
� Decision Table – Matrix of Rows & Columns, rather than a TREE.
� Decision Rules are present in Decision Table.
� Decision Tables are a Precise yet Compact WAY TO MODEL complicated
logic.
� Decision Tables, like If-Then-Else and Switch-Case Statements,
ASSOCIATE CONDITIONS WITH ACTIONS to perform.
� Decision Rule – Procedure to follow when certain Conditions Exits.
V.A.
CSED
Decision Table
V.A.
CSED
Decision Table – Example Health Services
V.A.
CSED
Decision Tree - Example
Longer than 10 Days Within 10 Days
Over $10000
$5000 to $10000
Take 2% Discount from
Invoice TotalTake 3% Discount from
Invoice Total
Pay Full Invoice Amount
Below $5000
Pay Full Invoice Amount
V.A.
CSED
Relation of Condition & Action
V.A.
CSED
Decision Table – Example Payment
Discount
� There are various Formats of Decision Tables. Format doesn’t Change
the Usefulness of Decision Table.
V.A.
CSED
Building Decision Table - Steps
1- Determine most relevant factors to consider in making a DECISION.
2- Determine the most feasible steps or activities under varying conditions.
3- Study the Combinations of Conditions that are Possible.
4- Fill in the Table with DECISION Rules.
5- Mark Action entries with ‘X’ to signal action(s).
6- Examine Table for Redundant Rules.
V.A.
CSED
Decision Table –Payment Discount Example
Using Yes/No Format
V.A.
CSED
Checking Decision Table
� Eliminating Redundancy
� Removing Contradictions
V.A.
CSED
Common Discrepancies
V.A.
CSED
Decision Table – Discrepancies Removed
V.A.
CSED
Types of Table Entries
� Limited Entry Form
� Extended Entry Form
� Mixed Entry Form
� ELSE Form
V.A.
CSED
Decision Table – Limited Entry
V.A.
CSED
Decision Table – Extended Entry
V.A.
CSED
Decision Table – Mixed Entry
V.A.
CSED
Decision Table – Else Form
V.A.
CSED
Data Dictionary
� DATA DICTIONARY – Can be defined as a CATALOG or a
REPOSITORY of the Elements in a SYSTEM.
� To Manage details in a Large System.
� To Document the features of a System.
� To Communicate a Common Meaning for all System Elements.
� Record in DD – Data Element, Data Structure.
V.A.
CSED
Data Dictionary
V.A.
CSED
Data Dictionary
V.A.
CSED
Describing Data Elements
� Data Names
� Data Description
� Aliases
� Length
� Data Value
V.A.
CSED
Relation b/w components
V.A.
CSED
Describing Data Structures
� Sequence Relationship
� Selection Relationship
� Iteration Relationship
� Optional Relationship
V.A.
CSED
Sequence Relationship
V.A.
CSED
Selection Relationship
V.A.
CSED
Iteration Relationship
V.A.
CSED
Optional Relationship
V.A.
CSED
Notation for Structural Rel. in Data
V.A.
CSED
Data Structure for Student Data
V.A.
CSED
Data Description & Notation
V.A.
CSED
Data Flow Name
V.A.
CSED
Data Structure
V.A.
CSED
Data Element
V.A.
CSED
Process
V.A.
CSED
Structured Analysis Components
V.A.
CSED
DFD – A Tool for data flow analysis
� DFD - A Structured, Diagrammatic technique for showing the functions performed by a System & the data flowing Into, out of & within it.
Following Data-Oriented Questions about a Target System:
� What processing is done?
� What data is Needed?
� The Context Diagram (Level 0 DFD) is the Highest Level in a Data Flow Diagram and contains only One Process, representing the ENTIRE SYSTEM.
V.A.
CSED
DFD Style - Yourdon
V.A.
CSED
DFD Style - Yourdon
V.A.
CSED
DFD Style - Gane and Sarson
V.A.
CSED
DFD Style - Gane and Sarson
V.A.
CSED
Expanding Modules – while locating Thapar
University using Google maps – Step 1
V.A.
CSED
Expanding Modules – while locating Thapar
University using Google maps – Step 2
V.A.
CSED
Expanding Modules – while locating Thapar
University using Google maps – Step 3
V.A.
CSED
Expanding Modules – while locating Thapar
University using Google maps – Step 4
V.A.
CSED
Expanding Modules – while locating Thapar
University using Google maps – Step 5
V.A.
CSED
DFD – Expanding Modules
V.A.
CSED
DFD Principles
� A System can be decomposed into Subsystems and Subsystems can be
decomposed into Lower Level Subsystems and so on.
� Each Subsystem represents a Process or Activity in which data is
processed.
� At the Lowest Level, Processes can no longer be decomposed.
� Just as a System must have Input and Output, so a Process must have
Input and Output.
� Data Enters the System from the Environment, Data Flows between
Processes within the System and Data is produced as Output from the
System.
V.A.
CSED
Rules for constructing DFD
V.A.
CSED
DFD Example – A Restaurant
V.A.
CSED
DFD Example - A Restaurant
V.A.
CSED
DFD Level 0 (A Restaurant)
V.A.
CSED
DFD Level 1 (A Restaurant)
V.A.
CSED
Division of Main Program in Modules
V.A.
CSED
Example – DFD Construction
V.A.
CSED
Example – DFD Construction (contd.)
V.A.
CSED
Presentation Graph
V.A.
CSED
Physical DFD
V.A.
CSED
Division in Modules
V.A.
CSED
Context Diagram (DFD Level -0)
V.A.
CSED
DFD Level -1
V.A.
CSED
Expanding – Invoice Approval (DFD Level -2)
V.A.
CSED
Expanding - Revise Balance Due (DFD Level -2)
V.A.
CSED
Expanding - Write Vendor Checks (DFD Level -2)
V.A.
CSED
Example – Context Diagram
V.A.
CSED
DFD Level 0
V.A.
CSED
Sequence of Logical & Physical View
V.A.
CSED
Physical & Logical DFD
� WHAT the System does - Current Physical DFD
� HOW it does it - Current Logical DFD
� WHAT it should do - Required Logical DFD
� HOW it should do it - Required Physical DFD
V.A.
CSED
1st Level DFD – Account Payable Processing
V.A.
CSED
2nd Level DFD – Invoice Approval
Process
V.A.
CSED
2nd Level DFD - Maintaining Vendor
Balance (A/C Posting)
V.A.
CSED
2nd Level DFD – Vendor Payment
Processing (Cheque Writing)
V.A.
CSED
1st & 2nd Level DFD
V.A.
CSED
3rd LEVEL
DFD
V.A.
CSED
Reference List
1. System Analysis and Design Methods By Jeffrey L Whitten & Lonnie D Bentley
2. Analysis & Design of Information Systems By James A. Senn
3. System Analysis & Design By Elias M. Awad
4. Modern System Analysis & Design By Jeffrey A. Hoffer, Joey F.George & Joseph S. Valacich
5. http://yourdon.com/strucanalysis/wiki/index.php?title=Chapter_9
6. http://www.ehow.com/about_5095247_definition-data-flow-diagrams.html
etc…….
V.A.
CSED
Thnx…