#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
int soda;
cout << "Choose a drink or 6 to quit:"; << endl;
cout << "1. Coke $1.00"; << endl;
cout << "2. Water Free"; << endl;
cout << "3. Sprite $1.25"; << endl;
cout << "4. Dr. Pepper $1.75"; << endl;
cout << "5. Lemonade $.60"; << endl;
cout << "6. Quit! \n"; << endl;
cin >> soda;
if(soda == 1)
cout << "You purchased Coke for a cost of $";
if(soda == 2)
cout << "You purchased Water for a cost of $";
if(soda == 3)
cout << "You purchased Sprite for a cost of $";
if(soda == 4)
cout << "You purchased Dr. Pepper for a cost of $";
if(soda == 5)
cout << "You purchased Lemonade for a cost of $";
if(soda == 6)
return 0;
}
i need help with this code and i'm stuck. i need wrtie a program that displays a menu and alllows them to enter a beverage by enter 1-5 while 6 to quit. i know i need a loop somewhere and this is only for one item at a time. thank you.