//This is the answer key for STEM Challenge 1 //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- //Programmer: Mikayla Scott //April 24, 2020 //Title: MadLibs Answer Key //C2 Pipeline Innovation and Curiosity Center //Wayne State University //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- int main() { //Declaring all the variables to read into //adj1 string adj1; //nationality string natl; //person string person; //noun string noun1; //adj2 string adj2; //noun2 string noun2; //adj3 string adj3; //adj4 string adj4; //pluralNoun string pluralNoun; //noun3 string noun3; //num int num; //shape string shape; //food string food; //food 2 string food2; //num2 int num2; //prompting the user //reading into the variables cout << "Please enter an adj" << endl; cin >> adj1; cout << "Please enter a nationality" << endl; cin >> natl; cout << "Please enter a person" << endl; cin >> person; cout << "Please enter a noun" << endl; cin >> noun1; cout << "Please enter an adj" << endl; cin >> adj2; cout << "Please enter a noun" << endl; cin >> noun2; cout << "Please enter an adj" << endl; cin >> adj3; cout << "Please enter an adj" << endl; cin >> adj4; cout << "Please enter a plural Noun" << endl; cin >> pluralNoun; cout << "Please enter a noun" << endl; cin >> noun3; cout << "Please enter a whole number" << endl; cin >> num; cout << "Please enter a shape" << endl; cin >> shape; cout << "Please enter a food item" << endl; cin >> food; cout << "Please enter another food item" << endl; cin >> food2; cout << "Please enter a whole number" << endl; cin >> num2; //printing madlibs to the user //practicing concatenation cout << "Pizza was invented by a " << adj1 << " " << natl << " chef named " << person << ". To make pizza, you need to take a lump of " << noun1 << ", and make a thin, round " + adj2 + " " + noun2 + ". Then you cover it with " << adj3 << " sauce, " << adj4 << " cheese, and fresh chopped " << pluralNoun << ". Next you have to bake it in a very hot " << noun3 << ". when it is done, cut into " << num << " " << shape << ". Some kids like " << food << "pizza the best, but my favorite is the "<< food2 << "pizza. If I could, I would eat pizza " << num2 << "times a day!" << endl; return 0; }