Home / Expert Answers / Computer Science / please-draw-a-domain-model-class-diagram-no-code-required-nbsp-to-buy-candy-convenie-pa307

(Solved): *****Please draw a domain model class diagram, no code required********   To buy candy convenie ...



*****Please draw a domain model class diagram, no code required********

 

To buy candy conveniently, is from a candy machine. A new candy machine is bought for the gym, but it is not working properly. The candy machine has four dispensers to hold and release items sold by the candy machine and a cash register. The machine sells four products — candies, chips, gum, and cookies — each of which is stored in a separate dispenser. You have been asked to analyze the above information, assist with the automation of the candy machine so that it can be put into operation.

The program should do the following:

• Show the customer the different products sold by the candy machine

• Let the customer make the selection

• Show the customer the cost of the item selected

• Accept money from the customer

• Return change

• Release the item, that is, make the sale

2.2 Use the above scenario to draw a domain model class diagram. It is expected from you to add/derive at least one attribute for each class. Try to be original when assigning names.



We have an Answer from Expert

View Expert Answer

Expert Answer


ANSWER: In this program 1) switch case is used for the selection of the item by taking proper input from the user 2) purchase method involes the definiton of the what amount should be deposited for the particular item inputed by the user 3) cashregis
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe