Presentation is loading. Please wait.

Presentation is loading. Please wait.

MBI 630: Class 6 Logic Modeling 9/7/2015. Class 6: Logic Modeling Logic Modeling Broadway Entertainment Co. Inc., Case –Group Discussion (Handout) –Logic.

Similar presentations


Presentation on theme: "MBI 630: Class 6 Logic Modeling 9/7/2015. Class 6: Logic Modeling Logic Modeling Broadway Entertainment Co. Inc., Case –Group Discussion (Handout) –Logic."— Presentation transcript:

1 MBI 630: Class 6 Logic Modeling 9/7/2015

2 Class 6: Logic Modeling Logic Modeling Broadway Entertainment Co. Inc., Case –Group Discussion (Handout) –Logic Modeling

3 Logic Modeling 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 6.3

4 Logic Modeling Structured English If conditions Case statements Loop Decision Tables Decision Trees

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

6 Modeling Logic with Structured English Similar to programming language –If conditions –Case statements 6.6

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

8 Modeling Logic with Decision Tables Consists of three parts –Condition stubs Lists condition relevant to decision –Action stubs Actions that result from a given set of conditions –Rules Specify which actions are to be followed for a given set of conditions 6.8

9 Modeling Logic with Decision Tables Indifferent Condition –Condition whose value does not affect which action is taken for two or more rules Standard procedure for creating decision tables –Name the condition and values each condition can assume –Name all possible actions that can occur –List all rules (combination of rules) –Define the actions for each rule –Simplify the table 6.9

10 Figure 7-18 Complete decision table for payroll system example 6.10

11 Modeling Logic with Decision Trees A graphical representation of a decision situation Decision situation points are connected together by arcs and terminate in ovals Two main components –Decision points represented by nodes –Actions represented by ovals 6.11

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

13 Figure 2 Decision tree representation of the decision logic in the decision tables in Figures 8-4 and 8-5, with only two choices per decision point 6.13

14 Example: “Favorite Picks” BEC Case (see p. 263) 1.Outline the logic a)Normal Procedure b)Selection/Decision c)If something is wrong, what the system should do? 2.Select IF/WHILE/CASE statements 3.Create Structured English 4.Translate into Decision Tree (or table)

15 Outline of Logic Employee logs in the system (enter username and password) –If failed, go back to start Search the product (enter text search) –If no match, go back to select product –If multiple match, show the list of products Select Product Input comments about the favorite pick Saves the input to a database Employee logs out

16 Structured English Process 8.0: Enter/Update Favorite Picks (Structured English) DO ENTER Employee number and password BEGIN IF IF No Employee exists OR Employee number and password does not match THEN DISPLAY Message and enter new Employee number and password ELSE DISPLAY Search Text Box END IF DO ENTER text to search for BEGIN IF IF No product exists THEN DISPLAY Message and select new product ELSE DO DISPLAY Product List END IF UNTILSelect product from the List ENTER COMMENT on the pick Change pick status to active (can be viewed by all customers now) SAVE pick record UNTIL no more picks need to be entered

17 Decision Tree (Partial) 1.Employee Exists 2.Password matches the data for the Employee Number 1 Display “Password does not match with the data”; Exit Option or Start Again 2 Display “Employee number was not found”; Exit Option or Start Again Display Search box No Yes No


Download ppt "MBI 630: Class 6 Logic Modeling 9/7/2015. Class 6: Logic Modeling Logic Modeling Broadway Entertainment Co. Inc., Case –Group Discussion (Handout) –Logic."

Similar presentations


Ads by Google