mbi 630: class 6 logic modeling 9/7/2015. class 6: logic modeling logic modeling broadway...

17
MBI 630: Class 6 Logic Modeling 08/28/22

Upload: marsha-chapman

Post on 26-Dec-2015

217 views

Category:

Documents


3 download

TRANSCRIPT

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

MBI 630: Class 6Logic Modeling

04/19/23

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

Class 6: Logic Modeling

• Logic Modeling

• Broadway Entertainment Co. Inc., Case– Group Discussion (Handout)– Logic Modeling

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

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.36.3

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

Logic Modeling

• Structured English If conditions Case statements Loop

• Decision Tables

• Decision Trees

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

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.56.5

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

Modeling Logic with Structured English

• Similar to programming language– If conditions– Case statements

6.66.6

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

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.76.7

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

Modeling Logic withDecision 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.86.8

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

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.96.9

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

Figure 7-18Complete decision table for payroll system example

6.106.10

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

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.116.11

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

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.126.12

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

Figure 2Decision 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.136.13

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

Example: “Favorite Picks”BEC Case (see p. 263)

1. Outline the logica) 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)

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

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

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

Structured EnglishProcess 8.0: Enter/Update Favorite Picks (Structured English)DO

ENTER Employee number and passwordBEGIN 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 BoxEND IF

DO ENTER text to search forBEGIN IF

IF No product existsTHEN DISPLAY Message and select new product

ELSE DO DISPLAY Product ListEND IF

UNTIL Select product from the ListENTER COMMENT on the pickChange pick status to active (can be viewed by all customers now)SAVE pick record

UNTIL no more picks need to be entered

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

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 Yes

No