#include <iostream>
#include <Windows.h>
usingnamespace std;
int main()
{
SetConsoleTitle("Cola Machine");
cout << "Welcome to this cola machine.\n""We have a few beverages you can choose from.\n""1 = Cola, 2 = Sprite, 3 = Fanta, 4 = Water, 5 = Chocolate milk.\n" << endl;
int userChoise;
cin >> userChoise;
switch (userChoise)
{
case 1:
cout << "You chose the Cola.";
break;
case 2:
cout << "You chose the Spirte.";
break;
case 3:
cout << "You chose the Fanta.";
break;
case 4:
cout << "You chose the Water.";
break;
case 5:
cout << "You chose the Chocolate milk";
break;
default :
cout << "Error. choice was not valid, here is your money back.";
break;
}
cin.get();
return 0;
}