Create an Activity Diagram for the following problem: Select a chocolate, a chips pack and a coke bottle from a vending machine. If the item is available in the machine, add the item to the cart and...


Create an Activity Diagram for the following problem:<br>Select a chocolate, a chips pack and a coke bottle from a vending<br>machine. If the item is available in the machine, add the item to the<br>cart and add the price of the item to total_price. Else, skip that item<br>and add only available items . Pay the total amount of the cart using<br>bills and return the change and exit the transaction.<br>Also answer one of the two below questions for the above example:<br>(a) What classes will you need in a class diagram? How will you<br>connect these classes with implement and inheritance arrows and<br>aggregate and association relationships? Draw a class diagram with<br>the classes you came up with.<br>OR<br>(b) Draw a sequence diagram for the high level operations (you may<br>ignore minor details).<br>

Extracted text: Create an Activity Diagram for the following problem: Select a chocolate, a chips pack and a coke bottle from a vending machine. If the item is available in the machine, add the item to the cart and add the price of the item to total_price. Else, skip that item and add only available items . Pay the total amount of the cart using bills and return the change and exit the transaction. Also answer one of the two below questions for the above example: (a) What classes will you need in a class diagram? How will you connect these classes with implement and inheritance arrows and aggregate and association relationships? Draw a class diagram with the classes you came up with. OR (b) Draw a sequence diagram for the high level operations (you may ignore minor details).

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here