I require a java virtual vending machine that accepts 200 100 50 20 10 coins. It should have 4 different chocolate flavours which can hold a maximum of 10 bars in a hopper. It does not matter what price each chocolate is, as longs as it a multiple of 5.
The coins hopper can hold a maximum of 20 cions for each value of coin.
I require a java gui that will allow a user to insert a coin or coins, get a total, select a chocolate within this value, then issue a chocolate and return the change.
The machine will propmt if choclate is out of stock or if there is no room for coins of a given denomination.
This is a problem I have come accross in a book and just cannot seem to even start. I would like this to be as simple as possible so as to understand the whole application.
2) I have a UML diagram which i will have to scan that this needs to be cast around. I can breifly describe it if anyone requires a copy, let me know.
Basicly, The classes should be Chocolate Machine, Hopper with capicity and number as instences. Them choc Hopper with chac name and choc price as instences. Coin Hopper with coin value as instence. More can be added if required.
windows and ie, all version from 98 up