Question: Class Exercise: The Vending Machine The Vending Machine has a display, an alphanumeric keypad, a coin insertion slot, and an item dispenser. The display shows
Class Exercise: The Vending Machine The Vending Machine has a display, an alphanumeric keypad, a coin insertion slot, and an item dispenser. The display shows the vending items like chocolates, candies, potato chips, Coke, sprite, etc. Each type of item has a price and a label consisting of a letter A, B, C, ... and a digit 1, 2, ... A customer inserts coins through the coin slot. Each time a coin is inserted an LCD displays the total amount. The customer can press a letter and a digit to enter his selection after enough coins have been inserted. If the total amount is greater than or equals to the item selected, the vending machine dispenses the item and returns the change to the customer. A customer can change his mind and request that the coins be returned by pressing the return button.
Class Exercise
Identify the concepts that exist in the application domain.
Classify the concepts in terms of
classes
attributes of classes
relationships between the classes
inheritance
aggregation and
association
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
