Reference no: EM132214255
Candy Store sells candies. Based on the information in Table 1, draw a use case diagram AND a class diagram. If you discover while drawing the diagram that the scenario is incomplete, make up reasonable explanations to complete the story. Supply your explanations along with the diagram.
In drawing the diagrams, you can use any diagraming software, such as Microsoft Visio. If you want, you can draw the diagrams by hand on the paper
Table 1. Information for Candy Store
Name: Purchase Candies
Actor: Customer/Employee
Description: This describes the process used to purchase candies at Morehead Candy Store
Successful Completion:
1. Customer requests candies
2. Employee checks on availability of candies
3. Candies are available and customer pays
4. Customer receives candies and stock is updated
Alternative:
1. Customer requests candies
2. Employee checks on availability of candies
3. Candies are not available and customer selects alternate candies or no candies
4. Customer receives candies and stock is updated (if alternate candies selected) or customer leaves with no candies
Pre-Condition: Customer wants to purchase candies
Post-Condition: None
Assumptions: None