information systems system analysis 421 class eight

32
Information Systems System Analysis 421 Class Eight

Upload: gates

Post on 17-Jan-2016

23 views

Category:

Documents


0 download

DESCRIPTION

Information Systems System Analysis 421 Class Eight. Class Exercise. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Information Systems  System Analysis 421 Class Eight

Information Systems System Analysis 421Class Eight

Page 2: Information Systems  System Analysis 421 Class Eight

Class Exercise

– A. BadMouth Press works with several different authors who write the books it publishes. Some authors have written only one book, while others have written many; also, some books are co-author by multiple authors. BadMouth also works with multiple printers; each book, though, is printed by only one printer. An editor at BadMouth Press works with several authors at a time, editing and producing their book projects; it is the editor's job to turn over the final camera-ready copy to the printer when the manuscript has been copy edited and typeset.

Page 3: Information Systems  System Analysis 421 Class Eight

Class Exercise

BookBook ID (PK)Book Desc

AuthorAuthor ID (PK)Author Name Author Addr

EditorEditor ID (PK) Editor Name Editor Addr e

PrinterPrinter ID (PK)Printer Name

1. Identify the entities

Writes

Page 4: Information Systems  System Analysis 421 Class Eight

Class Exercise1. Review Relationships Books written by many authors Books only have one printer Editors work for multiple authors

AuthorAuthor ID (PK)Author Name Author Addr

BookBook ID (PK)Book DescPrinter ID(FK)

Author/BookAuth-book (PK)Author ID(FK)Book ID (FK)

PrinterPrinter ID (PK)Printer Name

Writes Written

Prints

Printed By

EditorEditor ID (PK) Editor Name Editor Addr

Editor/AuthorEdit-auth (PK)Editor ID(FK)Author ID (FK)

Edits

Has editing

Page 5: Information Systems  System Analysis 421 Class Eight

Class Exercise

A. SkyHigh Airlines has three major resources: airplanes, pilots, and crew members. Pilots and crew members have respective home bases, which they return at the end of an assigned flight. A flight must have at least one pilot and one or more crew members attached to an airplane. Each airplane has a maintenance base.

Page 6: Information Systems  System Analysis 421 Class Eight

Class Exercise

Main BaseMain Base ID (PK)Main Base place

Home BaseHome Base ID (PK) Home Base Place

1. Identify the entities

PilotPilot ID (PK)Pilot Name

AirplaneAirplane ID (PK)Airplane type

CrewCrew ID (PK) Crew Name Crew Addr

FlightFlight ID (PK)Flight date

Page 7: Information Systems  System Analysis 421 Class Eight

Class Exercise

PilotPilot ID (PK)Pilot NameHome Base (FK)

AirplaneAirplane ID (PK)Airplane type Main Base(FK)

CrewCrew ID (PK) Crew Name Crew AddrHome Base(FK)

FlightFlight ID (PK)Flight date

2. When there is a 1-1 relationship no association table is necessary

Home BaseHmeBaseID (PK) Home Base Place

Main BaseMain Base ID (PK)Main Base place

Resides

Resides

ResidesFlightFlight info(PK)Flight Id (FK)Crew ID (FK)Pilot ID(FK)Airplane ID (FK)

Flys

Flys

Scheduled

Planned

Page 8: Information Systems  System Analysis 421 Class Eight

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 the logic of choice in conditional statements

Select among Structured English, decision tables, and decision trees for representing processing logic

Logic modeling and Internet applications

9.89.8

Page 9: Information Systems  System Analysis 421 Class Eight

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

9.99.9

Page 10: Information Systems  System Analysis 421 Class Eight

Logic Modeling

• Deliverables and Outcomes– Structured English

– Decision Tables

– Decision Trees

– State-transition diagrams

– Sequence diagrams

– Activity diagrams

9.109.10

Page 11: Information Systems  System Analysis 421 Class Eight

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

9.119.11

Page 12: Information Systems  System Analysis 421 Class Eight

Modeling Logic with Structured English• Similar to programming language

– If conditions

– Case statements

• Figure 9-3 shows Structured English representation for Hoosier Burger

9.129.12

Page 13: Information Systems  System Analysis 421 Class Eight

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

9.139.13

Page 14: Information Systems  System Analysis 421 Class Eight

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

9.149.14

Page 15: Information Systems  System Analysis 421 Class Eight

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

– Define the actions for each rule

– Simplify the table

9.159.15

Page 16: Information Systems  System Analysis 421 Class Eight

Figure 9-4Complete decision table for payroll system example

9.169.16

Page 17: Information Systems  System Analysis 421 Class Eight

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

9.179.17

Page 18: Information Systems  System Analysis 421 Class Eight

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

9.189.18

Page 19: Information Systems  System Analysis 421 Class Eight

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

9.199.19

Page 20: Information Systems  System Analysis 421 Class Eight

Deciding Among Structured English, Decision Tables and Decision Trees

BestBestThird BestChecking Consistency and Completeness

BestThird BestBestTransforming Conditions and Actions into Sequence

BestThird BestSecond BestDetermining Conditions and Actions

Decision Trees

Decision Tables

Structured English

Criteria

9.209.20

Page 21: Information Systems  System Analysis 421 Class Eight

Structure English

• Modified English

• No formal dictionary

• Just nouns and verbs (no adjectives or adverbs)

• Used for describing processing logic

• Common referred to as psuedocode but is kept simple so end users can follow

Page 22: Information Systems  System Analysis 421 Class Eight

Logic Models

• Structured English– relies on action verbs and nouns

• Decision tables

• Decision trees

Page 23: Information Systems  System Analysis 421 Class Eight

Structure English

• Build it from the DFD describing each of the DFD processes

• Only need to do for your lowest level DFDs

• Describes how the process changes the inputs to outputs

• Verify that Structured English uses the same inputs and outputs as your DFD

Page 24: Information Systems  System Analysis 421 Class Eight

Structure English

• We have salaried and hourly employee– Salary employees get paid overtime after 50 hours

– Hourly employees are paid straight pay• If they work over 40 hours they get time and a half

• If they work second shift they get a differential

• If they work third shift they get hazard pay

• If they work Sunday but did not work 40 hours for the week they get double time

• If they work Sunday and did work 40 hours they get overtime

• If they were on vacation that counts as working

• If they drive a blue car and have green eyes they get no pay

Page 25: Information Systems  System Analysis 421 Class Eight

Structure English

Payroll info Produce Absent Report

2.4

DetermineEmployeeSalary/Hourly

2.1

DetermineNumberHrs work and pay rate

2.2

CalculatePay Amount

2.3

Salarystatus Hours

worked

Salarystatus

Paycheck amount

EmployeeSalarystatus

Hoursworked

Page 26: Information Systems  System Analysis 421 Class Eight

• Process 2.1– read payroll information– until employee found– get salary status

• Process 2.2– read payroll information– until employee found– get hours worked– get pay rate

• Process 2.3– if salary status is salaried,

then pay at pay rate– else case

• worked <40 hours – do pay = rate * hours– do absence report

routine

• worked 40 hours– do pay = rate * hours

• worked >40 hours– do pay = (rate * 40)+ ((hours - 40) * rate * 1.5)

• Process 2.4– collect absence reasons– produce report– send report

Structure English

Page 27: Information Systems  System Analysis 421 Class Eight

• A matrix representation of the logic of a decision.

• Three constructs:– Condition Stubs: the part of the table that lists conditions

relevant to the decision or policy

– Action Stubs: the part of the table that lists the action results for a given set of conditions

– Rules: the part of the decision table that summarizes the set of actions to be followed

• Advantage of decision tables– Easier to understand

– Cover all conditions

– Easier to translate into computer code

– More clearly thought out

Decision Tables

Page 28: Information Systems  System Analysis 421 Class Eight

• A graphical technique that depicts decisions or choices.

• Steps in decision tables– Identify the condition and values

– Determine the maximum number of rules

– Identify the possible actions

– Enter all possible rules

– Define the action for each rule

– Verify the policy

– Simplify the decision tree

Decision Tables

Page 29: Information Systems  System Analysis 421 Class Eight

Figure 9-4Complete decision table for payroll system example

9.299.29

Page 30: Information Systems  System Analysis 421 Class Eight

Summary

• Several methods of logic modeling– Structured English

• Primarily communication technique for analysts and users

– Decision Tables• Conditions are listed in condition stubs

• Possible actions are listed in action stubs

• Rules link conditions with actions

9.309.30

Page 31: Information Systems  System Analysis 421 Class Eight

Summary

• Decision Tables– Lists all possible rules

• Decision Trees– Conditions are portrayed by decision points

– Values are represented by paths between decision points and ovals that contain actions

9.319.31

Page 32: Information Systems  System Analysis 421 Class Eight

Summary

• Comparison of Structured English, Decision Tables and Decision Trees– Most studies show that decision trees are

best for many criteria

– There is no best technique

– Analyst must be proficient in all three

9.329.32