Sunteți pe pagina 1din 4

SYS466 A Fall Semester 2010 Final In-class Exercise

Page 1 of 4

Question 1: Sequence Diagrams This question deals with processing a Purchase Order: creating it; updating it; receiving stock against a Purchase Order. You are given the Domain Class diagram. You are to draw both the systems level and the object level sequence diagrams for the Update Purchase Order. You are to draw a system-level and an object-level sequence diagram for Receive Stock against Purchase Order.

Domain Class Diagram

PurchaseOrder poNum poStatus 1 contains 1..n

purchases product from 0..n 1

Vendor vendorNum companyName companyPhone vendorEmail 1 sells 0..n Product prodNum qtyOnHand

POItem records purchase of qtyOrdered qtyRecvd 0..n 1

Part A: Receive stock ordered by a purchase order. There is no receiving report created; the amount of stock received is noted on the Purchase Order. Received stock is put into inventory. Scenario: Receive Stock against a PO Actor: PO Clerk Requests to receive stock by entering a PO number. Selects a POItem and enters quantity received. Repeats above step until done. Requests to mark the purchase order complete.

System Retrieves and displays the specified purchase order and its PO Items. Records the amount received and adds this quantity to the product quantity on hand. Updates the purchase order status and saves all purchase order information.

Draw System-Level and an Object-Level Sequence Diagram.

SYS466 A Fall Semester 2010 Final In-class Exercise

Page 2 of 4

Part B: Scenario: Update Purchase Order. Actor: PO Clerk Requests to modify PO for a specific vendor Selects a Purchase order. Selects a PO Item and changes the quantity. Requests to finish. System Retrieves and displays all purchase orders for the vendor, sorted by date. Retrieves and displays all PO items Updates the displayed list of PO Items Updates totals in the purchase order and saves.

Draw System-Level and an Object-Level Sequence Diagram.

SYS466 A Fall Semester 2010 Final In-class Exercise

Page 3 of 4

Question 2: Domain Class Diagram You are developing a new system for a catering company. The following scenario describes how an order clerk will use the system to create an order for a catered event. In order for the customer to place the order with the order clerk, they must have a copy of the catering menu so that they can give the order clerk the item number for each food item they want to order. This menu is available online or in hard copy. The online ordering subsystem has not been developed yet so all orders have to be placed by phone. The items on the menu can be ordered by quantity, size or by quantity and size. For example, a customer could order a cheese tray for 12 or 20 people; 3 5lb lasagnas; Garden salad for 20 people; or 25 chocolate chip cookies, 15 peanut butter cookies, 8 white chocolate macadamia nut cookies. The prices could be different for each type of cookie or cookies could be priced by the dozen no matter the kind. So the clerk has to be able to enter quantity, size or both, and the system has to be able to calculate the correct extended price for each item. When the order is finalized, the order clerk will print a copy and send it to the customer with a confirmation letter giving the details of the order for the clients records. Preconditions: The customer has a copy of the menu. The system is displaying the order screen. Actor Enters the customer number in the customer number field and requests retrieve Enters the menu item number and requests retrieve Enters the quantity and size if applicable and requests calculate item price Repeats the above two steps for each menu item until the order is complete Selects calculate order total Enters date of order, method of payment, date required, time required and requests complete order System Retrieves the customer information, name, address, phone number, contact number and enters it in the appropriate fields of the order Creates a new order line item for the menu item showing the item number and description Displays the quantity, size, and extended price

Calculates the final total of the order, including taxes and delivery charges, and displays the order, the order line items and the final total Validates all of the fields marks the order complete enters an order number saves the order

SYS466 A Fall Semester 2010 Final In-class Exercise

Page 4 of 4

Part A: Classes and Attributes (10 marks) From the data in the Create Order for a catered event scenario above, fill in this table. Classes/Attributes identified: Class Attributes of class

Part B: Domain Class Diagram (15 marks) Using the classes and attributes from the classes and attributes that you identified above and adding any other conceptual classes that you feel should be included, draw a domain class diagram showing all domain classes, associations, multiplicity - and composition and inheritance if there is any. Be sure that you include association names.

S-ar putea să vă placă și