Various exercises and solutions for the final

advertisement
Various Exercises & Solutions
Note: For questions, please check your book in appropriate chapter and the back of the
chapter exercise section.
Use Case Diagram
Ch6, Case Problem Suggestions, Pine Valley Furniture, Question 1
Solution:
Customer Tracking System
DSS-Sales
Forecasting
*
*
«uses»
PVF Executives
*
«uses»
Wholesale Sales
*
*
Retailer
«uses»
*
Retail Sales
*
«uses»
*
Marketing Manager
*
Customer
«uses»
Online Sales
*
Online Customer
*
MIS-Sales Reporting
*
«uses»
*
*
Webstore
Data Model (that is, Simple Class Diagram that has only class names specified)
Ch. 7, Case: Broadway Entertainment Company, Inc., Question 4
Solution:
The following UML diagram suggests cardinality and titles for relationships between the
classes identified in BEC Figure 7-1.
Comment
Customer comments on
Employee rates
1..n
0..n
1..n
1
Item sold
Pick
1
Product
Customer elects
1
1
Sale
1
Item rented
1
Rental
0..n
Request
Sequence Diagram
Try to read the following diagram with no addition information, and make sure you
understand all the symbols and know their names:
:Customer
:Reservation Clerk
:Hotel Control
:Hotel Rooms
Request Room
Check Availability
Check Availability
Request Discount
Find Disc Availability
Find Rate
Total Bill
Display Total Cost
Confirm Requirement
Book Reservation
Adjust Availability
Charge Deposit
Issue Confirmation Nbr
:Credit Card
Activity Diagram
Ch. 9, Problems and Exercises, Question 7
Solution:
receive call
help
desk?
no
transfer call
yes
consul
avail?
no
enter queue
yes
consul answers
no
first call?
locate call report
create call report
call
resolved
?
yes
relay solution
no
transfer to original consultant
gather details
problem resolved; close report
file for further action
provide call report number
close report
Data Flow Diagram – correcting exercise
A system analyst developed the diagrams below while working on a Cap & Gown
Ordering System. Are there any errors in the diagrams? If yes, please list them line by
line in your examination booklet.
Context Diagram
EE1
Student
DF1
Place Order
DF2
Receipt
DF3
Cap & Gown Info
0
Cap & Gown
Ordering
System
DF4
Formatted
Inventory Data
Ship
Cap & Gown
D1 Inventory
P0
Level-0 DFD
Order
Cap & Gown
Info
Student
1
2
Validate
Order
Order
Finalization
Inventory Status
D1 Inventory
Receipt Shipping
3
Inventory
Data
Update
Inventory
Formatted
Inventory Data
Solution:
Context diagram:
- D1 inventory illegal – eliminate
- Place Order illegal name of DF1 – should be Order
- Shipp Cap & Gown illegal name EE2 – should be Shipping
Level-0 diagram:
- Shipp Cap & Gown data flow wrongly goes to Student – should go to Shipping
- Receipt data flow wrongly goes to Shipping – should go to Student
- Process 2 uses illegal name (noun) – should be Finalize Order
- Process 1 is black hole (no output)
- Process 2 creates outputs out of nothing (no input)
EE2
Critical Path
The table below depicts a system development project with the breakdown of tasks
code-named A through F. Fill in the blanks by specifying (a) expected tasks times, and
(b) the critical path, (c) draw PERT diagram.
a) T expected = (T optimistic + T pessimistic + 4*T realistic)/6
Task
Optimistic Pessimistic Realistic Expected
Time
Time
Time
Time
A
4
8
6
6
B
7
11
9
9
C
3
7
5
5
D
9
13
11
11
E
6
10
8
8
F
3
9
6
6
b) Paths:
ABEF = 6+9+8+6 = 29 – Critical Path
ACF = 6+5+6 = 17
ADF = 6+11+6 = 23
c) PERT diagram:
B
A
C
D
E
F
Preceding
Task
-A
A
A
B
C,D,E
Download