Question
Design and implement (in Java) a program that simulates a vending machine. Products can be purchased by inserting the correct number of coins into the
Design and implement (in Java) a program that simulates a vending machine. Products can be purchased by inserting the correct number of coins into the machine. A user selects a product from a list of available products, adds coins, and either gets the product or gets the coins returned if insufficient money was supplied or if the product is sold out. Products can be restocked and money removed by an operator..
Remaining 50% is based on the elegance of your design with respect to classes and their interactions. I'll be evaluating this based on the code itself (not asking for any other class documentation such as CRC cards, etc.), but you're more likely to arrive at a good class design if you follow the process.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started