Question: ( Collaboration and Class Diagrans ) ( a ) Draw a Collaboration diagram for the Written Use Case description of a Purchase Hem process in

(Collaboration and Class Diagrans)
(a) Draw a Collaboration diagram for the Written Use Case description of a Purchase Hem process in an electric appliances store, as provided below:
Use Case Title:
Primary Actor:
Level:
Stakeholders:
Preconditions:
Guarantee:
Guarantee:
Main success scenario:
Customer selects an item
Shop Assistant checks stock for the item selected and determines the price.
If the item is on sale, a discount is calculated.
Tax is calculated.
Total amount due is calculated.
Shop Assistant informs customer of the Total Price
Customer confirms purchase decision, provides Credit card.
Customer's Credit card is charged with the amount due
Inventory levels are adjusted (decremented) with the purchase made.
Shop Assistant provides receipt to Customer, the sale is completed.
Extensions:
2a) The item is mavailable --Inform the Customer
8a) Credit card will not accept charge - Clerk asks Customer for alternative to complete the sale process.
Hint:
Use only the Main Success scenario to draw the diagram.
The Customer Actor interacts with the system through a-Shop Assistant Boundary object.
Also, consider one Control object (e.g. Store Control), and two Entity objects:
Inventory, containing available items' data, and :CustomercreditCard containing Customer's Credit Card data).
Consider all calculations to be performed by the Store Control object on itself.
(b) Convert the Collaboration Diagram you have prepared in the previous task (a) into an Analysis Class Diagram. Hint:
Consider that all messages presented on the Collaboration diagram become responsibilities of the receiver object class (i.e., they become methods of that class).
Also, consider that each Item instance of the Inventory class has a unique identifier Item No, and attributes like Title (Item Name), Description, and Price.
The unique identifier of the Customer Credit Card class is Card Nionber, and attributes are Card Holder Name, Expiration date, and CVV.
( Collaboration and Class Diagrans ) ( a ) Draw a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!