sys466finalexercise_20103

Upload: dexter-kamal

Post on 08-Aug-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/22/2019 SYS466FinalExercise_20103

    1/4

    SYS466 A Page 1 of 4Fall Semester 2010Final In-class Exercise

    Question 1: Sequence Diagrams

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

    Domain Class Diagram

    Part A:

    Receive stock ordered by a purchase order. There is no receiving report created; the amount of stockreceived is noted on the Purchase Order. Received stock is put into inventory.

    Scenario: Receive Stock against a PO

    Actor: PO Clerk System

    Requests to receive stock by entering a POnumber.

    Retrieves and displays the specified purchaseorder and its PO Items.

    Selects a POItem and enters quantityreceived.

    Records the amount received and adds thisquantity to the product quantity on hand.

    Repeats above step until done.

    Requests to mark the purchase ordercomplete.

    Updates the purchase order status and savesall purchase order information.

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

    PurchaseOrder

    poNum

    poStatus

    Vendor

    vendorNum

    companyName

    companyPhone

    vendorEmail0..n 1

    purchases product from

    0..n 1

    POItem

    qtyOrdered

    qtyRecvd

    1..n

    1

    1..n

    1

    contains

    Product

    prodNum

    qtyOnHand

    0..n

    1

    0..n

    1

    sells

    10..n 10..n

    records purchase of

  • 8/22/2019 SYS466FinalExercise_20103

    2/4

    SYS466 A Page 2 of 4Fall Semester 2010Final In-class Exercise

    Part B:

    Scenario: Update Purchase Order.

    Actor: PO Clerk System

    Requests to modify PO for a specific vendor Retrieves and displays all purchase orders for

    the vendor, sorted by date.Selects a Purchase order. Retrieves and displays all PO items

    Selects a PO Item and changes the quantity. Updates the displayed list of PO Items

    Requests to finish. Updates totals in the purchase order andsaves.

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

  • 8/22/2019 SYS466FinalExercise_20103

    3/4

    SYS466 A Page 3 of 4Fall Semester 2010Final In-class Exercise

    Question 2: Domain Class Diagram

    You are developing a new system for a catering company. The following scenario describes how anorder clerk will use the system to create an order for a catered event. In order for the customer toplace 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 onlineor in hard copy. The online ordering subsystem has not been developed yet so all orders have to beplaced by phone.

    The items on the menu can be ordered by quantity, size or by quantity and size. For example, acustomer could order a cheese tray for 12 or 20 people; 3 5lb lasagnas; Garden salad for 20 people; or25 chocolate chip cookies, 15 peanut butter cookies, 8 white chocolate macadamia nut cookies. Theprices could be different for each type of cookie or cookies could be priced by the dozen no matter thekind. So the clerk has to be able to enter quantity, size or both, and the system has to be able tocalculate 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 aconfirmation 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 System

    Enters the customer number in the customernumber field and requests retrieve

    Retrieves the customer information, name,address, phone number, contact number andenters it in the appropriate fields of the order

    Enters the menu item number and requestsretrieve

    Creates a new order line item for the menu itemshowing the item number and description

    Enters the quantity and size if applicable andrequests calculate item price

    Displays the quantity, size, and extended price

    Repeats the above two steps for each menu itemuntil the order is complete

    Selects calculate order total Calculates the final total of the order, includingtaxes and delivery charges, and displays the order,the order line items and the final total

    Enters date of order, method of payment, daterequired, time required and requests completeorder

    Validates all of the fieldsmarks the order completeenters an order numbersaves the order

  • 8/22/2019 SYS466FinalExercise_20103

    4/4

    SYS466 A Page 4 of 4Fall Semester 2010Final In-class Exercise

    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 addingany other conceptual classes that you feel should be included, draw a domain class diagram showing alldomain classes, associations, multiplicity - and composition and inheritance if there is any. Be surethat you include association names.