-
-
Save rtp4jc/6f59ce7f98ae7d46817e7eb265a2203a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irritable | |
condescending | |
handsome | |
horrific | |
jittery | |
clear | |
pungent | |
impressionable | |
biting | |
icy | |
small | |
combative | |
fresh | |
drained | |
grumpy | |
convincing | |
cheerful | |
aloof | |
magnificent | |
grotesque | |
disgusted | |
frustrating | |
exhilarated | |
distraught | |
bitter | |
annoyed | |
frantic | |
nervous | |
fantastic | |
giddy | |
glorious | |
jumpy | |
soggy | |
filthy | |
lackadaisical | |
moody | |
funny | |
giddy | |
steep | |
prickly | |
charming | |
harebrained | |
abrupt | |
elegant | |
lovely | |
grieving | |
itchy | |
bulky | |
smiling | |
gritty | |
round | |
adorable | |
large | |
jolly | |
batty | |
ideal | |
hurt | |
clean | |
spotless | |
convoluted | |
antsy | |
sarcastic | |
burly | |
jealous | |
helpful | |
grumpy | |
depressed | |
apprehensive | |
shaky | |
mammoth | |
panicky | |
smug | |
bewildered | |
splendid | |
little | |
friendly | |
funny | |
plain | |
immense | |
clueless | |
obnoxious | |
colorful | |
scary | |
healthy | |
homely | |
depraved | |
greasy | |
frightened | |
defiant | |
lucky | |
odd | |
appalling | |
scattered | |
square | |
mysterious | |
flat | |
muddy | |
dangerous | |
beefy | |
comfortable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <cstdlib> | |
using namespace std; | |
const int ARRAY_SIZE = 100; | |
int value_of_string(string a); | |
void bruce_md(); | |
int count_strings_in_array(string arr[ARRAY_SIZE]); | |
void input_from_file(string file_name, string arr[ARRAY_SIZE]); | |
void menu(int time_day); | |
void find_seat(); | |
void restrictions(); | |
bool find(int ints[], int item); | |
//prototype functions | |
int main() | |
{ | |
int choice; | |
int time_day; | |
cout << "Welcome to Bruce Cafteria!\n"; | |
cout << "What time of day is it?\n"; | |
cout << "If it's breakfast time enter 1.\n"; | |
cout << "If it's lunch time, enter 2.\n"; | |
cout << "If it's dinner time, enter 3\n"; | |
cin >> time_day; | |
cin.clear(); | |
cout << "Welcome to Bruce Cafteria!\n"; | |
bool exit = false; | |
while (!exit) | |
{ | |
cout << "1-Menu!:\n"; | |
cout << "2-Find where to sit b/c I have no friends\n"; | |
cout << "3-Dietary restrictions.\n"; | |
cout << "4-Bruce MD\n"; | |
cout << "0-exit\n"; | |
cin >> choice; | |
switch(choice) | |
{ | |
case 1: | |
menu(time_day); | |
case 2: | |
find_seat(); | |
break; | |
case 3: | |
restrictions(); | |
break; | |
case 4: | |
bruce_md(); | |
break; | |
case 0: | |
exit = true; | |
break; | |
} | |
cout << "Time to eat!\n\n\n"; | |
} | |
} | |
void menu(int time_day) | |
{ | |
switch(time_day) | |
{ | |
case 1: | |
cout << "The Breakfast Menu for today is:\n"; | |
cout << "Protein: Bacon, Hamsteak, Scrambled Eggs, Fried Eggs\n"; | |
cout << "Veggies: None\n"; | |
cout << "Grains: Pancakes, Steele Oats\n"; | |
cout << "or the Vegetarian Option\n"; | |
break; | |
case 2: | |
cout << "The Lunch Menu for today is:\n"; | |
cout << "Protein: Rotisserie Chicken, Sandwich, Fried Catfish, Tuna Noodles"; | |
cout << "\nVeggies: Swiss Chard, Mush, Squash, Green Beans"; | |
cout << "\nGrains: Mac & Cheese, Roll, Random"; | |
cout << "\nor the Vegetarian Option"; | |
break; | |
case 3: | |
cout << "The Dinner Menu for today is:\n"; | |
cout << "Protein: Rotisserie Chicken, Sandwich, Fried Chicken\n"; | |
cout << "\nVeggies: Swiss Chard, Mush, Mushy Squash, Burnt Mush, Green Beans" ; | |
cout << "\nGrains: Pasta, Roll"; | |
cout << "\nDessert: Bread Pudding, Cake, Jello"; | |
cout << "\nor the Vegetarian Option"; | |
break; | |
} | |
} | |
//Joanna’s function | |
void find_seat() | |
{ | |
int plan; // input for rush or leisure time choice | |
cout << "So you don't see any friends? How sad:(\n"; | |
cout << "Are you in a rush(enter 1)? Or do you have time to spare?\n"; | |
cin >> plan; | |
int choice;//input to hurried time seating choice | |
int rand_num; // for random 1-2 happen chance of crowded or empty seating area | |
if (plan == 1) | |
{ | |
cout << "Ok, so do you should probably sit near the entrance/exit.\n"; | |
cout << "Here are your options:\n"; | |
cout << "1-Wall bar(the tall seats that face the wall)\n"; | |
cout << "2-Long table close to food-disposal-and-dirty-dish-belt\n"; | |
cout << "3-Long table by drinks bar\n"; | |
cout << "4-Small tall table by food-disposal-and-dirty-dish-belt\n"; | |
cout << "Please make a choice:\n"; | |
cin >> choice; | |
if(choice == 1) { | |
cout << "Enjoy staring at the wall! What a wonderful view.\n"; | |
} | |
else if(choice == 2) | |
{ | |
rand_num = rand() % 2 +1; | |
if (rand_num == 1) | |
cout << "Yeah! You get the whole long table to yo self!\n"; | |
else | |
{ | |
cout << "Oh. ok... there is only one seat available,\n"; | |
cout << "and it's between two huge, loud, groups of people... Bon appetit!\n"; | |
} | |
} | |
else if (choice==3) | |
cout << "Sweet! Near the drinks! Smart choice!\n"; | |
else if (choice==4) | |
cout << "Cool, cool. This makes for a quick get-away when you are done eating.\n"; | |
else | |
cout << "Wow! For not picking a valid place you get to eat on the floor...\n"; | |
} | |
//______________________________________________________________________________________ | |
else if (plan = 2) | |
{ | |
char ans; //input to q-do you want a window seat? | |
cout << "Alrighty! Do you want a window seat? type y/n\n"; | |
cin >> ans; | |
if (ans='y') | |
{ | |
cout << "Window seat choices!:\n"; | |
cout << "1-Tall table by drinks\n"; | |
cout << "2-Bar seats in secondary room facing the window towards music hall\n"; | |
cout << "3-Booth in last room\n"; | |
cout << "Where will it be?:\n"; | |
cin >> choice; | |
if(choice=1) | |
cout << "Wonderful! The window brings in lots of light, and it's pleasant view.\n"; | |
else if(choice=2) | |
cout << "Nice! The view is great, and there is an outlet to charge your phone!\n"; | |
else if(choice=3) | |
{ | |
rand_num = rand() % 2 +1; | |
if (rand_num = 1) | |
cout << "Yeah! You get the booth to yo self!\n"; | |
else | |
{ | |
cout << "Oh. ok... the booths are all partially full...\n"; | |
cout << "Well! Time to make things interesting and get to know some new people!\n"; | |
} | |
} | |
else | |
cout << "Dude. Ya just got yourself a lovely spot on the floor.\n"; | |
} | |
else if (ans = 'n') { | |
cout << "Choose which area to sit in!\n"; | |
cout << "1-Main Room\n"; | |
cout << "2-Secondary room"; | |
cout << "3-Really far back room\n"; | |
cout << "Enter your selection!:\n"; | |
cin >> choice; | |
if (choice=1) | |
cout << "Awesomeness! You're prepared to keep refilling your plate to eat dat good Bruce food!\n"; | |
else if(choice=2) | |
cout << "This room is slightly less noisy... good for an enjoyable meal.\n"; | |
else if(choice=3) | |
cout << "Okey, guess you want to be as close to McConnel as possible?\n"; | |
else | |
cout << "Yeah! you just get to sit on the floor!"; | |
} | |
else | |
cout << "Well, well, well, we have ourselves a rebel who now gets to sit on the floor.\n"; | |
} | |
else | |
cout << "Ok... You get to eat on the floor today.\n"; | |
} | |
void bruce_md() { | |
//List of symptoms | |
string symptoms[ARRAY_SIZE]; | |
//List of adjectives for disease names | |
string adjectives[ARRAY_SIZE]; | |
//List of scary looking latin roots for disease names | |
string roots[ARRAY_SIZE]; | |
//file that all of the symptoms should be stored in | |
const string SYMPTOMS_FILE = "symptoms.BMD"; | |
//file that all of the adjectives should be stored in | |
const string ADJECTIVES_FILE = "adjectives.BMD"; | |
//file that all roots are stored in | |
const string ROOTS_FILE = "roots.BMD"; | |
//Load all files into respective arrays | |
input_from_file(SYMPTOMS_FILE, symptoms); | |
input_from_file(ADJECTIVES_FILE, adjectives); | |
input_from_file(ROOTS_FILE, roots); | |
//input string frm the user | |
string input; | |
//string of disease | |
string disease_string; | |
//Value of the string | |
int selector_value; | |
cout << "Enter the food item you are worried about: "; | |
cin >> input; | |
selector_value = value_of_string(input); | |
//cout << "The value of that item is: " << selector_value << endl; | |
//Contructing the disease string | |
string adj; | |
string root; | |
int strings_in_adjectives = count_strings_in_array(adjectives); | |
int strings_in_roots = count_strings_in_array(roots); | |
int strings_in_symptoms = 33; | |
int adjective_selection = selector_value % strings_in_adjectives; | |
int root_selection = selector_value % strings_in_roots; | |
//cout << strings_in_adjectives << " " << strings_in_roots << endl; | |
disease_string = adjectives[adjective_selection] + " " + roots[root_selection]; | |
cout << "The disease that you could contract from " << input << " at bruce is " << disease_string << "entitis" << endl; | |
cout << "The symptoms include: " << endl; | |
cout << "\t" << symptoms[value_of_string(adjectives[adjective_selection]) % strings_in_symptoms] << endl; | |
cout << "\t" << symptoms[value_of_string(roots[root_selection]) % strings_in_symptoms] << endl; | |
cout << "\t" << symptoms[value_of_string(adjectives[adjective_selection - 1]) % strings_in_symptoms] << endl; | |
} | |
int value_of_string(string a) { | |
int out = 0; | |
for (int i = 0; i < a.size(); i++) { | |
out += a[i]; | |
} | |
return out; | |
} | |
int count_strings_in_array(string arr[ARRAY_SIZE]) { | |
for (int i = 0; i <= ARRAY_SIZE; i++) { | |
if (arr[i] == "") { | |
return i; | |
} else { | |
return ARRAY_SIZE; | |
} | |
} | |
} | |
void input_from_file(string file_name, string arr[ARRAY_SIZE]) { | |
int i = 0; | |
string line; | |
ifstream file(file_name.c_str()); | |
if (file.is_open()) { | |
while ( getline(file,line)) { | |
arr[i] = line; | |
i++; | |
} | |
file.close(); | |
} else { | |
cout << "unable to open file\n"; | |
} | |
} | |
void restrictions() | |
{ | |
bool valid=false,valid2=false,finished=false; | |
int input; | |
char charinput; | |
int choices[4]; | |
int count=0; | |
do { | |
cout << "What are your dietary restriction(s)?\n"; | |
cout << "1. Vegan" << endl; | |
cout << "2. Vegetarian" << endl; | |
cout << "3. Allergie conflicts" << endl; | |
cout << "Enter a number for your selection and press Enter: "; | |
cin >> input; | |
valid = !cin.fail(); | |
if (!valid) { | |
cin.clear(); | |
cin.ignore(1000, '\n'); | |
cout << "Please enter a whole number" << endl; | |
} | |
else if (input < 1 || input > 3) | |
cout << "Please enter a number between 1 and 3" << endl; | |
else { | |
choices[count] = input; | |
count++; | |
cin.clear(); | |
cin.ignore(1000,'\n'); | |
do { | |
cout << "Are there any more restrictions?(y/n) " << endl; | |
cin >> charinput; | |
valid2 = !cin.fail(); | |
if(cin.fail()) | |
cout << "fail"; | |
if (!valid2 || !(charinput != 'y' || charinput != 'Y' || charinput != 'n' || charinput != 'N')) | |
{ | |
cout << "Please enter 'y' or 'n' to either contiue adding restrictions or not" << endl; | |
cin.clear(); | |
cin.ignore(1000, '\n'); | |
} | |
else if (charinput == 'n' || charinput == 'N') | |
finished = true; | |
} while (!valid2 || !(charinput != 'y' || charinput != 'Y' || charinput != 'n' || charinput != 'N')); | |
} | |
} while (!finished || !valid || input < 1 || input > 3); | |
if(find(choices,1)) | |
{ | |
cout << "Since you are vegan, it might be a better idea to go to Maple,\nas Bruce is less orinted towards vegans.\nHowever, there is a vegetarian bar that you could consider"<<endl; | |
} | |
if(find(choices,2)) | |
{ | |
cout << "Because you are vegetarian, you could consider the vegetarian bar,\nbut there are still many vegetarian options in the main lines"<<endl; | |
} | |
if(find(choices,3)) | |
{ | |
cout << "Because you are allergic to certain types of food,\nwe unfortunately cannot tell you all the food that might conflict with your immune system"<<endl; | |
cout << "However, we have a list of possible conflicts that could interest you: "<<endl; | |
cout << "\n\tIf you are allergic to peanuts, don't eat the following:"<<endl; | |
cout << "\t\tChili\n"; | |
cout << "\t\tEgg Rolls\n"; | |
cout << "\t\tHot Sauce\n"; | |
cout << "\t\tPesto\n"; | |
cout << "\t\tGravy\n"; | |
cout << "\t\tSalad Dressing\n"; | |
cout << "\n\tIf you are lactose intolerant, don't eat the following:"<<endl; | |
cout << "\t\tBaked Goods\n"; | |
cout << "\t\tLuncheon Meat\n"; | |
cout << "\t\tIce Cream\n"; | |
cout << "\t\tMilk\n"; | |
cout << "\n\tIf you are alergic to gluten, don't eat the following:"<<endl; | |
cout << "\t\tBreaded Chicken\n"; | |
cout << "\t\tSometimes the Rotisserie Chicken\n"; | |
cout << "\t\tIce Cream\n"; | |
} | |
return; | |
} | |
bool find(int ints[], int item) | |
{ | |
for(int x=0; x<4; x++) | |
{ | |
if(ints[x]==item) | |
return true; | |
} | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ambul | |
caust | |
cephal | |
domin | |
intro | |
ject | |
memor | |
nephr | |
phag | |
phyll | |
poly | |
port | |
sess | |
sect | |
therm | |
xer | |
xanth | |
voc | |
vid | |
vis | |
vince | |
vit | |
thaum | |
techno | |
tact | |
ten | |
tin | |
super | |
scrib | |
scop | |
scend | |
sci | |
scler | |
rub | |
rhin | |
radic | |
radio | |
ram | |
morph | |
miss | |
mon | |
migr | |
milli | |
loqu | |
lip | |
lingu | |
liber | |
form | |
fore | |
fract | |
frag | |
fug | |
fus | |
gram | |
gon | |
gran | |
graph | |
diseasedict | |
domin | |
don | |
at | |
counter | |
cranio | |
cosm | |
corp | |
cogn | |
contra | |
cranio | |
cruc | |
crypto | |
cummul | |
cycl | |
de | |
heli | |
hemi | |
herbi | |
hepa | |
hept | |
herbi | |
hetero | |
hex | |
histo | |
lcat | |
later | |
leuk | |
leuc | |
ma | |
medi | |
mega | |
melan | |
migr | |
mis | |
mob | |
miss | |
necr | |
neo | |
mort | |
mot | |
mit | |
min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abdominal pain | |
Pelvic pain: Male | |
Foot swelling or leg swelling | |
Constipation | |
Joint pain or muscle pain | |
Neck pain | |
Earache | |
Chest pain | |
Skin rashes | |
Headaches | |
Vision problems | |
Sore throat | |
Cough | |
Numbness or tingling in hands | |
Hip pain | |
Urinary problems | |
Knee pain | |
Nasal congestion | |
Fever | |
Decreased hearing | |
Eye discomfort and redness | |
Shoulder pain | |
Heart palpitations | |
Low back pain | |
Dizziness | |
Shortness of breath | |
Foot pain or ankle pain | |
Wheezing | |
Diarrhea | |
Nausea or vomiting | |
Blood in stool | |
Pelvic pain: Female | |
Difficulty swallowing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment