Tuesday, December 1, 2009

Lab test 3 for Section 006

Write a program to implement a simple selling machine.

Each instance of the selling machine can hold 10 items using ArrayList. Partial program is given and you need to finish all the methods. You can add new items to the selling machine and get items from it if there is one. You need to implement a method to save the selling record (date & item name) to a file. You can use the Exception class for exception handling.

In this lab test, we only consider one type of the items, the Drink class. Code is given.

Please check your email box for the codes.

No comments: