-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolaMachine
More file actions
31 lines (28 loc) · 749 Bytes
/
Copy pathcolaMachine
File metadata and controls
31 lines (28 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Cola Machine
#include <iostream>
#include <string>
using namespace std;
void ColaMachine(){
int choice;
cout << "Thirsty, traveler? Have a beverage." << endl;
cout << "Enter the number you want." << endl;
cout << "1. Water 2. Coke 3. Nuka-Cola 4. Booty Sweat 5. Slurm" << endl;
cin >> choice;
switch(choice){
case 1:
cout << "-Clink-clink- enjoy your water. " << endl;break;
case 2:
cout << "-Clink-clink- enjoy your coke. " << endl;break;
case 3:
cout << "-Clink-clink- enjoy your Nuka-cola. " << endl;break;
case 4:
cout << "-Clink-clink- enjoy your Booty Sweat. " << endl;break;
case 5:
cout << "-Clink-clink- enjoy your Slurm. " << endl;break;
default:;
}
};
int main(){
ColaMachine();
return 0;
}