View the step-by-step solution to:

Help me in doing a program that presents the user w/ a choice of your 5 favorite beverages (Coke, Water, Sprite, . , whatever). Then allow the user...

Help me in doing 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 

 

Top Answer

Please find the solution below. Let me know if you have any doubt. #include <iostream> using namespace std ; int main... View the full answer

output.JPG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online