24
1. Retail Store Context Diagram Retail Store Level-0 Diagram 5 Produce Management Reports 2 Update Goods Sold File 3 Update Inventory File 1 Transform Customer Purchase 4 Update Sales Total File D3 Sales Total File D2 Inventory File D1 Goods Sold File Customer Receipt Store Manager Management Report Goods Sold Inventory Data Sales Data Formatted Goods Sold Amount Formatted Inventory Amount Formatted Sales Total Amount Goods Sold Amounts Inventory Amounts Sales Totals 0 Point of Sale System Store Manager Customer Receipt Payment Management Report Payment

Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

  • Upload
    ty

  • View
    105

  • Download
    0

Embed Size (px)

DESCRIPTION

Excellent

Citation preview

Page 1: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

1. Retail Store Context Diagram Retail Store Level-0 Diagram

5

Produce Management

Reports

2

Update Goods Sold File

3

Update Inventory

File

1

Transform Customer Purchase

4

Update Sales Total

File

D3 Sales Total File D2 Inventory File D1 Goods Sold File

Customer

Receipt

Store

Manager Management Report

Goods Sold InventoryData

Sales Data

Formatted Goods Sold

Amount

Formatted Inventory Amount

Formatted Sales Total

Amount

Goods Sold Amounts

Inventory Amounts Sales Totals

0

Point of Sale

System

Store

Manager

Customer

Receipt

Payment

Management Report

Payment

Page 2: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

2. Cap and Gown Context Diagram Cap and Gown Level-0 Diagram

0

Order Entry

System

Shipping

Student

Order Information

Receipt

Cap and GownInformation

1

Validate

Order

2

Finalize Order

3

Update Inventory

File

D1 Inventory File

Student

Receipt

Valid Order Information

Inventory Data

Order Information

Cap and GownInformation

Shipping

Formatted Inventory Data

Inventory Status

Page 3: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

4. Cap and Gown Level-1 Diagram 9. Hiring System Context Diagram

2.1

Generate Receipt

D2 Goods Sold File

Receipt

InventoryData

Valid Order Information

Goods Sold Data

Receipt 2.2

Log Goods Sold Data

2.3

Generate

Information for Shipping

Validate Order Update Inventory File

Validate Order Shipping

Engineering

Manager

Applicant

Interview Schedule

Job Description Nondisclosure Form

0

Hiring System

Interview Evaluation

Hiring Decision Letter

Completed Nondisclosure Form

Application

Application

Cap and Gown Information

Page 4: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

Hiring System Level-0 Diagram

10. Help Desk Context Diagram

Job Description

2

Receive Job

Description

4

Evaluate and Hire

3

Choose for

Interview 6

Create Employee

Record

5

Purge Year-old

Applications

D2 Job Descriptions

D3 Employees

Engineering

Manager

Applicant

Application 1

Receive Application

Valid Application

D1 Applications

Purge Notice

Applications for Interview

Year-old Applications

Applications Related to Job Description Interview Schedule

Application Hiring Decision

New Employee Data

Relevant JobDescription

Interview Evaluation

Hiring Decision Letter

Nondisclosure Form

Completed Nondisclosure Form

0

Help Desk

System

Other Unit

Client

Nature of Call

New Problem Data

Non-Help Desk Call

Call Report # or Other Data

Inquiry on Nature of Call

Call

Interim Problem Status

Final Call Resolution

Accepted Job Description

Rejected Applications

Page 5: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

Help Desk Level-0 Diagram Level-0 Diagram

Open Call Information

5

Determine Problem Status

D2 Call Report File

Other Unit

Client Inquiry on Nature of Call 1

Receive Call

Help Desk Call Information

First Call Information

Closed Call Problem Resolution

Previous Call Information

Call Information

Non-Help Desk Call Information

Call Report Information

Final Call Resolution

New Problem Data

2

Determine Direction

of Call

4

Create Call

Report

D1 Call Queue

D1 Call Queue

7

Record New

Information

8

Research Problem

9

Close Call

Report

Closed Call Indication

New Information on Problem

Call Report

Problem Data

New Problem Data

Interim Problem Status

Problem Information

Call

Call Report # or Other Data

Help Desk Call Information

Open Call Information

3

Determine if First

Call

6

Transfer Call

Inquiry on Nature of Call

Nature of Call

Page 6: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

11. Hospital Pharmacy Context Diagram Hospital Pharmacy Level-0 Diagram

0

Hospital

Pharmacy System

Store

Manager

Doctor

Unfilled Order Info

Patient Number and Drug Type, Amount & Cost

Drug Label Info Prescription

Unfilled Order Info Response

2

Review Prescription

Order by Station

3

Fill Order

4

Generate Label

Nurses Station

Doctor

Billing Dept

Prescription

Unfilled Order Info

Unfilled Order Info Response

Order Info

Patient Number and Drug Type, Amount & Cost

Pharmacy Tech ReviewPrescriptionPrescription

Order Fill Info

1

Review & Send

Prescription to Station

Drug Label Info

Drug Label Info

Patient Info

D1 Patient File

Page 7: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

12. Contracting System Context Diagram Contracting System Level-0 Diagram

Not-in-stockReport

0

Contracting

System

Government

Agency

Government

Agency

Purchase Order

Invalid Purchase Order Info

Invoice

Shipping Bill

Government

Agency

1

Verify Purchase

Order

2

Check Inventory

3

Pull & Ship Items from Inventory

Purchase Order

Invalid Purchase Order Info

Shipping Bill Invoice

Contract Terms and Conditions

Validated PO #

Validated PO

Validated PO

Completed PO Closeout Info

Validated PO, Initial Shipping Bill & Exception Report

Shipping Bill for Exception Report Items

D2 Contracts File

D1 Contract Database

Page 8: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

13. Training Logistics System Context Diagram Training Logistics System Level-0 Diagram

Seminar & Consultant Info

Flight Reservation Info

Travel Agency

Bookings Dept No. Anticipated Registrants

Possible Travel Arrangements

Approved Travel Arrgmts

Travel Confirmation & Itinerary

Consultant

0

Training Logistics System

Availability, Cost, Mtg Space, & Location Info Requirements Potential

Meeting Site

Availability, Cost, Mtg Space, & Location Info

Sales Manager

Flight Schedules

3

Determine &Send Seminar

Materials

D1 Seminar Logistics Database

Potential

Meeting Site

Bookings

Dept

Travel

Agency

Negotiation Info

Negotiation Info

Reserve & Seating Info

Contract Agreement Info

Contract Agreement Info

Sales

Manager

Consultant Travel Info

Seminar Mtg Facil Requirements

Meeting Facility Info

Flight Reservation Info

Flight Schedules

1

Arrange for

Meeting Facilities

Availability, Cost, Mtg Space, & Location Info Requirements

Availability, Cost, Mtg Space, & Location Info

Seminar & Consultant Info

No. Anticipated Registrants

Possible Travel Arrgmts

Apprvd Travel Arrgmts

Travel Confirmation & Itinerary

Consultant

4

Gather, Box & Send

Materials to Meeting Facility

Request for Materials

Shipment Notification

Seminar Material Requirements

2

Make Consultant

Travel Arrangements

Reserve & Seating Info

Negotiation Info

Negotiation Info

Contract Agreement Info

Contract Agreement Info

Page 9: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

14.

Decision Table for Process 3.0 Generate Orders Hoosier Burger’s Inventory Control System

Conditions/ Courses of Action

Rules

1 2 Inventory level Below Minimum Order Quantity N Y Place order with Vendor X Do NOT place order with Vendor X

Decision Table for Process 4.0 Generate Payments

Hoosier Burger’s Inventory Control System

Conditions/Courses of Action Rules

1 2 3 Due Status L D N Generate Rush Payment X Generate Payment X Postpone Payment X Due status: L = Late; Date of invoice is more than 30 days before today's date. D = Due; Date of invoice is 30 days before today's date. N = Not due: Date of invoice is less than 30 days before today's date.

Page 10: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

16. Presented below is a simpler sample decision table for some aspects (exclusive of the bidding process).

Decision Table for Purchasing Personal Computers

Conditions/Courses of Action

Rules 1 2 3 4

Purchase Amount G L G L Vendor Approved Y Y N N Award Contract to Winning Vendor

X

Issue Purchase Order X X Purchase Equipment X X Award Contract to Other Approved Vendor

X

Find Another Approved Vendor

X

Purchase Amount: G = greater than $15,000.00, L = less than or equal to $15,000.00 Vendor Approved: Y = Yes; approved by Purchasing Department N = No; not approved by Purchasing Department

1

1. Is purchase greater than $15,000?2. Is the vendor approved by Purchasing Department?

Y

N2

Find another approved vendor

Y

N

Issue purchase order, purchase equipment

Award contract to other approved vendor

Y

N

Award contract to winning vendor, issue purchase order, purchase equipment

2

Page 11: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

17.

Decision Table for Electronic Keypad and Switch Sales Process

Conditions/ Courses of Action

Rules

Section <1> 2 <3>

1 2 3 4 5 6 7 Customer–annual–purchases >$100,00 Y N - - - - -

Purchase within rep region - - Y Y N - -

Shared Sale - - N Y - - -

Rep–sales => rep–sales–goal - - - - - Y N

Subtract 10% from purchase–amount 1

Add purchase–amount to customer–annual–purchases 2 2 2

Add purchase–amount to rep–sales 3 3 3

Add 10% of purchase–amount to rep–commission 4

Add 8% of purchase–amount to rep–commission 4

Add 2% of purchase–amount to rep–commission 4

Add 5% of purchase–amount to rep–commission 5

Sales Process Decision Tree

1. Is sale in home region? 2. Is sale shared? 3. Is Rep-sales => Rep-sales-goal?

2

Y

N

Y

N

Pay 13% commission

Pay 8% commission

Y

N

Pay 15% commission

Pay 10% commission

Y

N

Pay 7% commission

Pay 2% commission

2

1

3

3

3

Page 12: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

18.

Decision Table for Tenure Review Process

Conditions/ Courses of Action

Rules 1 2 3 4

Length of Service S N S N Special Permission Y Y N N Go up for Tenure X X X Postpone Tenure Review X Length of Service: S = sufficient; at least six years of service. N = not sufficient: fewer than six years of service. Special Permission: Y = yes; special permission of come up for tenure review. N = no; no special permission.

Tenure Review Decision Tree

1. Appropriate length of service? Sufficient (S) or not sufficient (N). 2. Special permission to come up for tenure?

1

S

N

Y

N

Go up for tenure

Go up for tenure

2

Y

N

Go up for tenure

Postpone tenure review

2

Page 13: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

19.

Decision Table for Microcomputer HW/SW Upgrade Conditions/ Courses of Action

Rules

1 2 3 4 5 6 7 8 User Status L L H M O L H M O Special Approvals S S S S U U U U Standard Complement X X X Upgrade Complement X X X Mobile Complement X X User Status: L = light; H = heavy; M = moderate; O = mobile Special Approvals: S = standard; approval for standard complement U = upgrade; approval for upgrade complement

Microcomputer Upgrade Decision Tree

1

1. What is the user’s status? Light (L), heavy (H), moderate (M), or mobile (O).2. What special approvals do they have? Standard (S) or upgrade (U).

2

S

U

Standard complement

Standard complement

2

S

U

Upgrade complement

Upgrade complement

2

S

U

Standard complement

Upgrade complement

2

S

U

S

U

Mobile complement

Mobile complement

Page 14: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

20 a.

Decision Table for Courses based on work Hours

Conditions/ Courses of Action

Rules

1 2

Hours worked <=10 Y N

Take 1 Major class plus 1 elective X

Take 2 Major classes plus 1 elective X

20b.

Decision Table for Class Registration

Conditions/Courses of Action Rules

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Able to Register for Physics and Physics Lab

Y N Y N Y N Y N Y N Y N Y N Y N

Able to Register For English Comp Y Y N N Y Y N N Y Y N N Y Y N N Able to Register For COBOL Y Y Y Y N N N N Y Y Y Y N N N N Able to Register For Music Appreciation

Y Y Y Y Y Y Y Y N N N N N N N N

Register for P, PL, EC, C & MA X Register for P, PL, EC, C & 1 R X Register for P, PL, EC, MA, and 1 R X Register for P, PL, EC, & 2 R X Register for P, PLO, C, MA and 1 R X Register for P, PL, C, & 2 R X Register for P, PL, MA & 2 R X Register for P, PL, and 3 R X Register for EC, C, MA & 2R X Register for EC, C, & 3 R X Register for EC, MA & 3 R X Register for EC & 4 R X Register for C, MA & 3 R X Register for C and 4 R X Register for MA and 4 R X Register for RR X R = Replacement Class (es)

Page 15: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

21.

Decision Table for Graduate Program Application Conditions/ Courses of Action

Rules

1 2 3 4 5 6 7 8

MBA Y Y Y Y

MS MIS Y Y Y Y

Southeast region - location Y Y N N Y Y N N

Top 10 school Y Y N N Y Y

At least 1 well known faculty member Y Y

Scholarship awarded Y N Y N Y N Y N

Financial Aid awarded N Y N Y N Y N Y

Apply to this Graduate School X X X X X X X X

Graduate Program Decision Tree

1

2

3

3 4

4

5

6

5

6

7

7

6

6

7

7

Apply

Apply

Do Not Apply

Apply

Apply

Apply

Do Not Apply

Apply

Do Not Apply

Do Not Apply

Apply

Apply

Do Not Apply

Do Not Apply

Do Not Apply

Do Not Apply

Do Not Apply

Do Not Apply

N

N

N

N

N

N

N

N

N

N

N N

N

N

N

N

Y

Y

Y

Y

Y

Y Y

Y

Y Y

Y

Y Y

Y

Y

Y

Page 16: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

1. Master of MIS program? 2. MBA program? 3. Located in the southeast? 4. Top 10 program in country? 5. At least one well-known faculty member? 6. Financial Aid available? 7. Scholarship awarded? 22.

Decision Table for Loan Approval

Conditions/ Courses of Action

Rules

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Loan amount L S S S S A A A A A M M M M M M M M Loan Type C C C C C E E E E E E E E Employment income verified

Y N Y Y Y

Amount requested < cost of attendance

Y Y Y N Y Y Y Y

Educational loan amount <$35,000

Y Y Y Y N N N

Credit rating G F F P G G F P G F P G F P Account at our bank Y N Loan approved X X X X X X X X Loan denied X X X X X X X Loan to VP to be reviewed

X X

Loan amount: >$200,000 = L, <=$2000 = S, >$2000 and <$200,000 = A Loan type Education: = E, Car, Mortgage or other = C Credit rating: Good/Excellent = G, Fair = F, Poor = P

Page 17: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

1. Application loan amount < $2,000? 2. Application loan amount $2,000 and $200,000 3. Car, mortgage, or other type of loan? 4. Employment income verified? 5. Loan amount requested exceed cost of attendance? 6. Loan amount request < $35,000? 7. Credit rating good or excellent? 8. Credit rating fair? 9. Does applicant have account at bank?

1

2

3

4

5

6

7

7

7

7

8

8

9

Approve

Deny

Approve

Deny

Approve

Approve

Deny

Get add'l applic info & forward to VP

Approve

Approve

Deny

Approve

Deny

Deny

Forward to VP

8N

N

N

N

N

N

N

N

N

N

N

N

N

N

Y

Y

Y

Y

Y Y

Y Y

Y

Y

Y

Y Y

Y

Page 18: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

Appendix7A: Object-Oriented Analysis and Design Use Cases*

1. Use case diagram for the situation described in Problem and Exercise 9, page 228.

A cto r1

A cto r1

C re a te E m p lo ye e re c o rd

P u rg e Y e a r-o ld A p p lic a t io n s

E v a lu a te a n d H ire

C h o o s e fo r in te rv ie w

A p p lic a n t

E n g in e e rin g M a n a g e r

H ir in g S ys te m U s e C a s e D ia g ra m

R e c e iv e A p p lic a t io n

R e c e iv e J o b D e s c r ip tio n

Page 19: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

2. Use case diagram for the situation described in Problem and Exercise 10, page 228. Maximum Software Use Case diagram

Page 20: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

3. Use case diagram for the situation described in Problem and Exercise 11, page 231.

Actor1

Actor1

Actor1

Actor1

Actor1

Generate Label

Fill Order

Doctor

Store Manager

Hospital Pharmacy System Use Case Diagram

Review and send Rx to Station

Review Rx Order by Station

Billing Dept

Nurses Station

Pharmacy Tech

4. Use case diagram for the situation described in Problem and Exercise 12, page 231.

GSC Use Case diagram

Page 21: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

5. Use case diagram for the situation described in Problem and Exercise 13, page 231.

Page 22: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

Actor1

Actor1

Actor1

Actor1

Actor1

Gather Box and Send Materials to Facility

Determine and Send Seminar Materials

Bookings Dept

Travel Agency

Training Inc Use Case Diagram

Arrange for Meeting Facilities

Make Consultant Travel Arrangements

Consultant

Potential Meeting Site

Sales Manager

Page 23: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

6. This use case diagram for Figure 7-23 differs from the one in Figure 7-26 in that it has fewer actors,

use cases, and associations. The differences can be attributed to the fact that the diagram in Figure 7-26 covers additional processes and checking such as billing, prerequisites and special classes. All three diagrams are included for completeness.

Use Case Diagram for Class Registration from level-0 Diagram in figure 7-23

(Note: diagram drawn with Open ModelSphere Open source diagramming tool)

Page 24: Answers to Exercises Ch7 DFD Decision Table Use Case Diagram

7. Develop a use case diagram for using an ATM machine to withdraw cash.

Use case diagram for using an ATM machine to withdraw cash

(Note: diagram drawn with Open ModelSphere Open source diagramming tool)

8. Student Answers will vary. Below is an example use Case diagram to make, cancel and update a

reservation on a plane flight.

(Note: diagram drawn with Open ModelSphere Open source diagramming tool)