You are on page 1of 1

ASSIGNMENT NUMBER ONE

ELEMENTS OF PROGRAMMING (CSCI 1300)

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.

3. The program will determine balance to return in correct denominations.

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.

You might also like