help me

Write a program that presents the user w/ a choice of your 5
favorite beverages(Coke,Water,Sprite,...,whatever).Then allow
the user to choose a beverage by entering the numbers 1­-5.The
program should then wait for the payment,and show the change on
screen.
Example
1. Coca Cola, $1.6
2. Sprite, $1.6
3. Fanta, $1.6
4. Lemonade, $2.5
5. Water, $2.0
Choose your drink: 2
Please enter your payment:5
Take your drink!!!
Change: $3.40
Your 2 posts so far belong in the beginners forum. You should probably check out the sticky at the top of that forum that says "Welcome -- read before posting!" where you might find helpful advice like:

Use meaningful, specific subject headers
The subject header is your golden opportunity to attract qualified experts' attention. Don't waste it on babble like 'Please help me' Don't try to impress us with the depth of your anguish; use the space for a super-concise problem description instead.


And:
Don't post homework questions
Programmers are good at spotting homework questions; most of us have done them ourselves. Those questions are for you to work out, so that you will learn from the experience. It is OK to ask for hints, but not for entire solutions.
Topic archived. No new replies allowed.