0

Plz hlp me , I want simple vending machine java code?

5. vending machine has n items. priced from 0.5 to 20 any currency coins .5 1 2 10 20 depending the current balance the customer has he can buy stuff inventory of the merchandises method the maintenance if the inventaroy is low if out of product inform it to customer should be able to give the balance. must have the inventory of money too

16th Jun 2017, 2:54 AM
Kushan Lasith
Kushan Lasith - avatar
2 Respuestas
+ 3
i guess u want the answer of the exercise 5 of your list, look, this program demand a lot of lines of code, idk if someone can put this here, but the logic is using money%price until u get how many coins need, and the rest are simple + and - from the inventory
16th Jun 2017, 3:10 AM
Juliano Ventola
Juliano Ventola - avatar
+ 1
yes this is tutorial question . I can't figure it my own , could I have a jdk file or text file plz, it is very help full for me
16th Jun 2017, 3:56 AM
Kushan Lasith
Kushan Lasith - avatar