CSCI 311: Object-Oriented Analysis and Design – Midterm Exam

KEY TO MIDTERM

Dr. Melody Stapleton                                                           Spring 2001

Problem 1) (40 points)  Note – The assumption is made in this answer that a single trip can load shipments from multiple warehouses, thus the cardinalities on the participate association between Warehouse and Trip.  It is OK to assume that a single Trip would involve only one Warehouse, also.

It is also OK to assume that a given Shipment goes to a single or multiple Stores.

 

 


2) (10 points – 5 points each)  Below are some sample use cases that one might give to answer this question:

 

a) use case – load shipment(s) at warehouse

     actor – warehouse loading dock worker

     use case description – shipment(s) is/are assigned to a trip and once the truck comes up to the loading dock this actor loads the shipment(s) on the truck, assigning to it the trip number, truck number, and the destination(s) for the shipment.

 

b) use case – receive shipment(s) at a store

     actor – store employee

     use case description – the store employee unloads the truck , receiving the shipment(s), updates the inventory with the material received including shipment numbers and truck information.

 

3) (30 points – 15 each subpart) booking a car for repairs use case

a)      scenario name – successfully booking a car for repairs wherein the car was not previously reserved for rental during the dates that it is scheduled for repairs

scenario decription – The San Francisco Servicing Department requests that a car with the VIN# 12345 be repaired.  The car availability is queried for a pickup date of 3-14-01 and a return date of 3-15-01.  The system returns that the car is not reserved during those dates.  The Servicing Department books the car for servicing.  The system confirms the booking.

b)      sequence diagram for this scenario:

 

 

4) (20 points) University Facilities question: