Results 1 to 3 of 3
Thread: vending machine
- 09-16-2011, 08:47 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 1
- Rep Power
- 0
vending machine
Hello i am trying to do a project for extra credit and i cant find out how to do what i want
i want to somehow assign a string to have a value so when someone wants say koolaid to have a value of 42 and for it to minus that from the balance the user input say 100 so the vending machine asks to insert a coin and then says pick a drink and u say koolaid and it take the value of koolaid of 42 and minus it from 100 and the says remaining balance 52 i got most of the code but im not for sure how to assign it a value please help
- 09-16-2011, 09:25 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,619
- Rep Power
- 5
Re: vending machine
What have you tried? You might want to have a look at the following:
Java How to Program (stuck on homework? READ THIS BEFORE POSTING)
- 09-16-2011, 09:45 PM #3
Similar Threads
-
transfering the file from one machine to another machine using ftp in java
By rkraj in forum Java SoftwareReplies: 0Last Post: 02-07-2011, 01:27 PM -
32 bit machine or 64 bit machine
By Kapil Gupta in forum Advanced JavaReplies: 13Last Post: 06-24-2008, 03:29 AM -
How to get URL from network machine
By Mir in forum NetworkingReplies: 1Last Post: 04-02-2008, 12:08 AM -
Getting name/ip of a machine
By Java Tip in forum Java TipReplies: 0Last Post: 03-02-2008, 07:11 PM -
Turing machine Help please!!
By bladeb2k in forum Java AppletsReplies: 1Last Post: 08-15-2007, 09:47 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks