//Charlotte Davies-Kiernan CS1A Chapter 3 P 148 #22
//
/******************************************************************************
*
* Display a Word Game
* ____________________________________________________________________________
* This program takes what the user enters and displays a story with those
* words incoporated into it.
* ___________________________________________________________________________
* INPUT
* name // user's choice of name
* age // user's choice of age
* cityName // user's choice of city
* college // user's choice of college
* profession // user's choice of profession
* animal // user's choice of type of animal
* petName // user's choice of pet name
*
* OUTPUT
* shortStory // story using the user's words
*****************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string name; //INPUT - name user decides to input
int age; //INPUT - age user decides to input
string cityName; //INPUT - city name user decides to input
string college; //INPUT - college user decides to input
string profession; //INPUT - profession user decides to input
string animal; //INPUT - animal type the user decides to input
string petName; //INPUT - pet name the user decides to input
//
// Collect User Input
cout << "Enter a name: ";
getline(cin,name);
cout << "Enter the name of a city: ";
getline(cin,cityName);
cout << "Enter an age: ";
cin >> age;
cin.ignore();
cout << "Enter the name of a college: ";
getline(cin,college);
cout << "Enter a profession: ";
getline(cin,profession);
cout << "Enter a type of animal: ";
getline(cin,animal);
cout << "Enter a pet name: ";
getline(cin,petName);
//
// Display the story!
cout << "\n\nHere's your story!: \n";
cout << "There once was a person named " << name << "who lived in ";
cout << cityName << ".\n";
cout << "At the age of " << age << ", " << name;
cout << "went to college at " << college << ".\n";
cout << name << "graduated and went to work as a " << profession << ".\n";
cout << "Then, " << name << "adopted a(n) " << animal << " named ";
cout << petName << ".\n";
cout << "They both lived happily ever after!\n";
return 0;
}