Question

LABWORK

Design and Implement a Vending Machine Simulator that has functions :

  • Show Products : Display Name , Description and Price of the Products

  • Insert Coin : Allows user to Add a USD coin into the machine

allowed types are : Nickel(0.05) , Dime(0.1) , Quarter(0.25) and Dollar (1)

  • Buy: If the sufficient amount of coins are thrown into the machine , machine should dispense the cold drink , and remove it from its product inventory. If insufficient amount is entered machine should throw a VendingMachineException.

  • Quit : Ends the program.


Trodad toden

Questıon is;

Create an Activity Diagram for Buy Coke Zero operation include all possible scenarios(Insufficient coin added, no coke left on vending machine etc.) and create a Sequence/Communication diagram for Insert Coin operation.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Customer is shown the following details: NAME DESCRIPTION PRICE Order input of the item is taken by the customer Is requestedVending machine Customer Software 1. Machine asks customer to add coins and opens coin input tray 3. Coins are checked for acAny doubts, please ask as thumbs down won't solve the doubt. Thanks!

Add a comment
Know the answer?
Add Answer to:
LABWORK Design and Implement a Vending Machine Simulator that has functions : Show Products : D...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT