Helppp!!! PLEASE!!

i want to write a program...that simulates a machine working...it gives to the client, coofee, tea and chocolate..and gives change, money put in the machine must be same price or > than the price of the product...the machine has 3 compartiments, one has products, other ingredientes and the other has the compartiments were the change and money is keeped.
I will call compartiments
C1- Product given to the client as a 4 products: Cofee 2 types..Strong Coffee without milk,coffee with milk, chocolate, tea
C2- Ingredientes : Milk, Sugar, Cofee, Tea, Chocolate, Water
C3- Money: 5 types of coins 100 of each..500 in total...euros
2�,1�,0.5�,0.2�,0.1�
Strong Cofee :1dl of water e 10g os cofee � Price 0,3�;
Cofee with milk:0,5 dl of water, 0,5 dl of Millk e 10g of cofee Price:0,4�;
Tea :(2dl of water e 20g of tea) �Price 0,4�;
Chocolate : 2dl of milk 40g of chocolate Price� 0,5�.
Total of ingredients in compartment:
water and milk (size in decilitres), both in maximimum quantaties of 5 litres;
cofee and tea and chocolate (sized in grams), all in maximum quantatie of 2Kg;
 there is a adicional ingrediente that is sugar (sized or given in grams), with maximum quantatie of 1Kg.

Listen, that's not the way it works around here.
People won't do your homework for you.
Take your time thinking about the problem.
Collect ideas on how to solve your problem using OO design.
Start coding.
Then, if you come across problems while coding, paste sample code here and ask specific questions, and chances are good you will get a lot of help really fast.
It's generally a good idea to aquire a basic level of knowledge about Java first:
http://java.sun.com/j2se/1.4.1/docs/api/
http://developer.java.sun.com/developer/onlineTraining/
or read a book on Java (I recommend Deitel & Deitel for beginners).
BTW - start small ... try printing 'Hello World!' to the screen, increase complexity little by little ...

Similar Messages

  • I wanted to restore my iphone 4s from 6.1 to 6.1.1 and itunes showed me (error -1) and i cant do nothing because its stuck with the itunes logo and the cable what should i do to fix it helppp please...

    i just wanted to restore from 6.1 to 6.1.1 on my iphone 4s and itunes gave me an error -1 and know it doesnt work i dont know if the warranty from 1 year of apple can fix it or what i can do to solve the problem... as i said i just wanted to update and know im stuck with the restore logo ( the itunes logo and the cable) need some help please!!!!

    no so i dont know what happened

  • I have a iphone 3G, i updated it.. and now when i go on to itunes its saying 'The Sim Card Inserted in this phone does not seem to be supported' Helppp please?

    i updated it.. and now when i go on to itunes its saying 'The Sim Card Inserted in this phone does not seem to be supported' Helppp please

    Some indian store :/
    We get posts here, almost daily, from folks from India, who purchase locked iPhones in the US, only to find out they can't use them in India. I've always wondered what happens to those phones...

  • Ive locked my note 4, pin not working, I didnt get a prompt to retrieve by other methods..helppp please

    ive locked my note 4, pin not working, I didnt get a prompt to retrieve by other methods..helppp please

    Doesn't always happen that way. Ive seen some that just default to "we're gonna erase your phone if you get it wrong again."

  • HELPPP please, i had to refresh my computer due to a virus so lost all of my itunes music (the ones I'd uploaded by hand) they are still on my iphone5,  how can I put all the music from the iphone back onto itunes?  And why is this so difficult ??

    New to all this upload stuff so pls excuse me !  So my computer had to be refreshed, I had ripped my CD's to iTunes and also purchased some, the purchased ones are still on iTunes but all of the ones that I had ripped have gone.  I have them on my iphone 5, is there a way to put all of the music from the iphone back on to itunes?  Have tried "Googling" without success have tried a converter app but still no joy.   PLS HELP !!!

    Justine8888 wrote:
    New to all this upload stuff so pls excuse me !  So my computer had to be refreshed, I had ripped my CD's to iTunes and also purchased some, the purchased ones are still on iTunes but all of the ones that I had ripped have gone.
    Restore them from the backup of yoru computer...
      I have them on my iphone 5, is there a way to put all of the music from the iphone back on to itunes?
    See this -> Recover your iTunes library from your iPod or iOS device
    then regularly backup your computer.

  • My ipod wont TURN ON! HELPPP PLEASE!

    Okay so my ipod mini wont turn on the LCD screen wont turn on and i have been charging it for like 24 hours now. THe ipod support online is really not helpful i can't reset it because it wont turn on. Nothing is working and i really hope its not broken. HELP!

    Try these.
    iPod won't turn on.
    iPod battery doesn't charge.
    The Five Rs.
    When restoring the iPod, it's often useful to put it into disk mode first.
    Putting iPod into disk mode.

  • My ipod keeps restarting it doesnt show the apple logo just the spinning thing it does it then lets me tyoe in my password then does it again helppp please

    its jail broken too if that matters

    Try forcing it into recovery mode,  http://support.apple.com/kb/HT1808?viewlocale=en_US

  • Copy paiste delay helppp please

    HI guys has anyone had this problem i copied an 8 bar sect of the beginning of a song i was working it was vocals an music. I tried to paiste about 2 min into the song the # lined up example say bar 40 1111 but i got what sounds like a lag or skip beat. if u hadb this what was the solution.

    HI guys has anyone had this problem i copied an 8 bar sect of the beginning of a song i was working it was vocals an music. I tried to paiste about 2 min into the song the # lined up example say bar 40 1111 but i got what sounds like a lag or skip beat. if u hadb this what was the solution.

  • Please somebody help me lost audio after opened logic 9 and X at the same time helpppp

    helppp please lost audio after opened logic9 and X together can't find the solution  i only have audio in the main output of my audio interface gott a motu 828 MKII somebody help me please

    Hello all looks normal when the problem was presented simultaneously opened LPX LP9 and when you return to open a new project or the same project and I only have audio in my headphones output interface, my interface is a motu 828Mk2 the project exists and the interface looks normal in every normal output comprises all looks normal just never sounds like it had passed but never opened the two programs at the same time not to do, I use a digital mixer yamaha normal surface responds as ccontrolador all seems to work perfect but I only have audio output from the headphones even if I motu channel by channel and I assign output sound headset

  • Helpp please!

    hi, i have a verizon "blitz" and it has been working fine all day, however suddely i went to text someone and my messages go through, however i cant recieve any texts or calls... it says the wireless customer is not available....i restored my phone, and deleted unwanted messages, however its still not working, any ideas on how to helppp please?

    You may want to pull the battery for a minute while the unit is on to reset it. Or call *228 and choose option 1

  • HT204409 Wi-Fi Greyed!

    i updated my iphone 4s to the IOS6....ever since i updated my iphone i am UNABLE to access the internet/wifi!! Well i go on the wifi icon and its greyed i cant open the wifi!! I NEEEEEDD HELPPP PLEASE!!!!! ive tryed everything !! any suggestions??

    Of course I did not drop the iPhone! It is my baby
    The biggest problem is that TIM simply refused to help in any way. I wrote a letter with an explanation of the problems and we did a thorough explanation in several stores. I even spoke to the store managers over the phone to explain personally. TIM just refused over and over again!
    The phone is already back on its way to Singapore.
    I am going to file a complaint to Apple and to TIM.
    It has already cost me more than 100 dollars to get the phone back to Europe.

  • HELP!!! my phone is roaming inside my house

    HELPPP PLEASE!!! My phone says it's roaming in my house where I usually get very good service. What's happening is that my phone has 3 circles of service then a space then it says 3g with no Verizon thing. I think that it is connected to a third party service like if you were to go to mexico you know how it changes your number while you are there and there's a different carrier it says you are using well I think that's what has happened because it says my phone number is 0000001581 which Is not my number. Also when I try to make a call it says this exactly "Welcome to Verizon Wireless please hold while your call is transferred to a external operator where you should be able to connect your call with a credit card , calling card, or via collect call. PPLEASE HELP PLEASE

    Thank you for providing that information PlobusForMayor. I am checking at the area looks great for coverage. Does the phone improve once you power the phone off and back on? Try this http://vz.to/1r5fAnD to see if it restores your 3G. Please keep us posted on the outcome.
    CandiceH_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Unable to download uTorrent.

    HI,
    I've been trying to download uTorrent for mac.
    However after downloading, I double click on the file in my downloads folder but I get the warning:
    disk image not recognized.
    And hence it doesn't work. I've tried repairing disk permissions in disk utility already but it still doesn't work.
    HELPPP
    Please and thank youuu

    Pardon, I thought you were trying to open a torrent file IN uTorrent.  remove the own you downloaded, install from here http://www.utorrent.com/downloads/mac

  • When i want to install iTunes, it show that Gathering Qiucktime information...Please helppp me i need iTunes to sync my apple devices, i have 64bit windows

    When i want to install iTunes, it show that Gathering Qiucktime information...Please helppp me i need iTunes to sync my apple devices, i have 64bit windows.Thanks

    You are probably running OS 10.4 or 10.5 on a PPC Mac.  No version of  iTunes higher than 10.6.3 is available for these older Macs.  I have the same problem, and while I can still use the PPC to sync my iPod, it can't be used to sync an iPhone 4 or higher.  The only solution, as I discovered after upgrading to the iPhone 4, is to buy a newer Mac.  I was able to get a 2006 MacBook running Lion for under $300, and that has been a lifesaver.

  • My iPhone 5s was updating while charging and now it not turning on or charging or reseting please helppp!!!!!

    My iPhone 5s was updating while charging and now it not turning on or charging or reseting please helppp!!!!!

    In the U.S. $199

  • Can't restore my iphone 4, it said error number 2, please helppp !!!!, can't restore my iphone 4, it said error number 2, please helppp !!!!

    can't restore my iphone 4, it said error number 2, please helppp !!

    Hi AlessDXB,
    This article contains information on restore error 2:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694#error2
    Errors related to third-party security software
    Error 2, 4 (or -4), 6, 1000, 9006
    Follow the steps to troubleshoot security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. An incorrectly set default packet size can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or phobos.apple.com isn't blocked by a firewall or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under "Advanced steps > Rename, move, or delete the iOS software file (.ipsw)" below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.
    Take care,
    - Ari

Maybe you are looking for

  • SmoothGraphMarkers=True does not stop Graph Cursor Flicker

    I have a xy graph where the cursor labels flicker every time the graph is updated.  I have tried setting the smoothGraphMarkers=True switch in the Labview.ini file but it does not make any difference.  I have the smoothupdates graph attribute set to

  • Report for PO history

    Hi, Whether any standard report is availble to display the PO, item, qty, value, GR , value , qty, IR , value , qty ( PO history ) in a single report. Please expedite. Regards, R. Dillibabu.

  • Add custom query to standard PLD layout

    Hi Everybody, I need to change the standard Invoice PLD report, in order to include additional data that is kept in my UDO. Is it possible to define a custom query inside PLD to retrieve data from the UDO (the UDO is linked to the Invoice) and show i

  • REM process flow for food manufacturing.

    Hallo, I want to know what is the process flow in SAP REM  for food manufacturing compony? Thx Nikam.D.A

  • Regarding function module error

    hi experts,              i m using hr_infotype_operation....the syntax is like this.. loop at info_table. CALL FUNCTION 'HR_INFOTYPE_OPERATION'   EXPORTING     INFTY                  = '0015'     NUMBER                 = info_table-pernr    SUBTYPE