//Faith Tjia CSC5 Chapter 3, P. 148, #22
//
/*******************************************************************************
* WORD GAME
* ______________________________________________________________________________
* This program will play a word game with the user, it will ask the user for
* their name, their age, a city, a college, a profession, an animal, and a
* pet's name, then will provide a story.
* ______________________________________________________________________________
* INPUT
* name: name of user
* age: age of user
* cty: name of a city
* clg: name of a college
* prof: a profession
* ani: a type of animal
* pet: a pet's name
*
* OUTPUT
* Story: There once was a person named NAME who lived in CITY.
* At the age of AGE, NAME went to college at COLLEGE.
* NAME graduated and went to work as a PROFESSION.
* Then, NAME adopted a(n) ANIMAL named PETNAME.
* They both lived happily ever after!
*
*******************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string name; //INPUT - name of user
string age; //INPUT - age of user
string cty; //INPUT - name of a city
string clg; //INPUT - name of a college
string prof; //INPUT - a proffesion
string ani; //INPUT - a type of animal
string pet; //INPUT - a pet's name
//
// Initialize Program Variables
cout << "Enter your name: ";
cin >> name;
cout << name << endl;
cout << "Enter your age: ";
cin >> age;
cout << age << endl;
cout << "Enter the name of a city: ";
cin >> cty;
cout << cty << endl;
cout << "Enter the name of a college: ";
cin >> clg;
cout << clg << endl;
cout << "Enter the name of a profession: ";
cin >> prof;
cout << prof << endl;
cout << "Enter a type of animal: ";
cin >> ani;
cout << ani << endl;
cout << "Enter a pet's name: ";
cin >> pet;
cout << pet << endl;
//
// Display The Story
cout << "There once was a person named " << name << " who lived in " << cty
<< "." << endl;
cout << "At the age of " << age << ", " << endl;
cout << name << " went to college at " << clg << ". " << endl;
cout << name << " graduated and went to work as a " << prof << ". " << endl;
cout << "Then, " << name << endl;
cout << "adopted a( n) " << ani << " named " << pet << "."
<< endl;
cout << "They both lived happily ever after!" << endl;
return 0;
}