Professional Documents
Culture Documents
Assignment Number One
Assignment Number One
Write a Vending Machine program which simulates the sales of some predetermined products of
your own choice (FIVE products is sufficient).
1. The program will display names of your choice products and the prices and indication
whether the product is still available or sold out.
2. The program allows users to select a product and enter amount of payment in terms of coins
or notes.
4. The program will update the number of each product left in the machine and displays the
“SOLD OUT” message if quantity is zero.
5. The program will display the accumulated amounts of sales of the day after there are no
more orders.
6. Programs should conform to Java programming style and conventions and must have
adequately documentation.