Modern Systems Analysis and Design Fourth Edition Chapter

  • Slides: 34
Download presentation
Modern Systems Analysis and Design Fourth Edition Chapter 8 Structuring System Logical Requirements (process

Modern Systems Analysis and Design Fourth Edition Chapter 8 Structuring System Logical Requirements (process description)

Learning Objectives ü ü ü Use structured English as a tool for representing steps

Learning Objectives ü ü ü Use structured English as a tool for representing steps in logical processes in data flow diagrams. Use decision tables and decision trees to represent logical choice in conditional statements. Select among structured English, decision tables, and decision trees.

Logic Modeling n n n Data flow diagrams do not show the logic inside

Logic Modeling n n n Data flow diagrams do not show the logic inside the processes. Logic modeling involves representing internal structure and functionality of processes depicted on a DFD. Logic modeling can also be used to show when processes on a DFD occur.

Logic Modeling Deliverables and Outcomes n n n Structured English Decision Tables Decision Trees

Logic Modeling Deliverables and Outcomes n n n Structured English Decision Tables Decision Trees State-transition diagrams Sequence diagrams Activity diagrams

Modeling Logic with Structured English n n Modified form of English used to specify

Modeling Logic with Structured English n n Modified form of English used to specify the logic of information processes Uses a subset of English n n Action verbs Noun phrases No adjectives or adverbs No specific standards

Structured English is used here to describe input and output.

Structured English is used here to describe input and output.

Structured English is used here to describe arithmetic operations.

Structured English is used here to describe arithmetic operations.

Structured English is used here to describe repetition.

Structured English is used here to describe repetition.

Structured English is used here to describe decisions.

Structured English is used here to describe decisions.

Structured English is used here to describe invoking other processes.

Structured English is used here to describe invoking other processes.

Modeling Logic with Decision Tables n n n A matrix representation of the logic

Modeling Logic with Decision Tables n n n A matrix representation of the logic of a decision Specifies the possible conditions and the resulting actions Best used for complicated decision logic

Parts of a Decision Table 3 Condition stubs 1. Lists condition relevant to decision

Parts of a Decision Table 3 Condition stubs 1. Lists condition relevant to decision § Action stubs 2. Actions that result from a given set of conditions § Rules 3. Specify which actions are to be followed for a given set of conditions § n Indifferent Condition n Condition whose value does not affect which action is taken for two or more rules

Procedure for Creating Decision Tables n n n Name the condition and values each

Procedure for Creating Decision Tables n n n Name the condition and values each condition can assume Name all possible actions that can occur List all rules Define the actions for each rule Simplify the table

Decision Table Note: for salaried employees the action stub chosen will always be the

Decision Table Note: for salaried employees the action stub chosen will always be the same…therefore hours worked is an indifferent condition

Reduced Decision Table Because of indifferent condition, the complete decision table can be reduced

Reduced Decision Table Because of indifferent condition, the complete decision table can be reduced to one with fewer rules

Modeling Logic with Decision Trees n n n A graphical representation of a decision

Modeling Logic with Decision Trees n n n A graphical representation of a decision situation Decision situation points are connected together by arcs and terminate in ovals Main components n n n Decision points represented by nodes Actions represented by ovals Particular choices from a decision point represented by arcs

Modeling Logic with Decision (. Trees (cont n n n Read from left to

Modeling Logic with Decision (. Trees (cont n n n Read from left to right Each node corresponds to a numbered choice on a legend All possible actions are listed on the far right

Decision tree representation of salary decision

Decision tree representation of salary decision

Alternative decision tree representation of salary decision

Alternative decision tree representation of salary decision

Deciding Among Structured English, Decision Tables, and Decision Trees Criteria Structured English Decision Tables

Deciding Among Structured English, Decision Tables, and Decision Trees Criteria Structured English Decision Tables Decision Trees Determining Conditions and Actions Second Best Third Best Transforming Conditions and Actions into Sequence Best Third Best Checking Consistency and Completeness Third Best

Deciding Between Decision Tables and Decision Trees Criteria Decision Tables Decision Trees Portraying complex

Deciding Between Decision Tables and Decision Trees Criteria Decision Tables Decision Trees Portraying complex logic Best Worst Portraying simple rules Worst Best Making decisions Worst Best More compact Best Worst Easier to manipulate Best Worst

Summary n In this chapter you learned how to: ü ü ü Use structured

Summary n In this chapter you learned how to: ü ü ü Use structured English as a tool for representing steps in logical processes in data flow diagrams. Use decision tables and decision trees to represent logical choice in conditional statements. Select among structured English, decision tables, and decision trees.