//Xinnuo Wang CS1A chapter 3 , P.148, #22
//
/*******************************************************************************
*
* Play A World Game
*-------------------------------------------------------------------------------
* This program asks the personal information and display a story.
*-------------------------------------------------------------------------------
* INPUT
* name : The user's name need to be input
* age : The user's age need to be input
* city : The city's name need to be input
* college : The college's name need to be input
* profession : The user's profession need to be input
* animal : A type of animal
* petName : The pet's name
* OUTPUT
*
*******************************************************************************/
#include <iostream>
#include <string>
using namespace std;
int main()
{
string name; //INPUT - The user's name
int age; //INPUT - The user's age
string city; //INPUT - The city's name
string colledge; //INPUT - The college's name
string profession;//INPUT - The user's profession
string animal; //INPUT - A type of animal
string petName; //INPUT - The pet's name
//
//Input Data
cout << "Enter the name" <<endl;
cin>> name ;
cout << "Enter the age " <<endl;
cin>> age;
cout << "Enter the name of the city" <<endl;
cin>> city;
cout << "Enter the college" <<endl;
cin>> colledge;
cout << "Enter the profession" <<endl;
cin.ignore();
getline(cin,profession);
cout << "Enter the type of animal" <<endl;
cin>> animal;
cout << "Enter the pet's name" <<endl;
cin>> petName;
//
//Output Result
cout <<"There once was a person named "<< name<<" who lived in "<<city<<"."<<" At the age of "<< age<<", " <<name<<" went to college at "<<colledge<<". "<< name<<" graduated and went to work as a "<<profession<<"." <<" Then, "<<name <<" adopted a(n) "<<animal<<" named "<<petName<<". They both lived happily ever after!"<< endl;
return 0;
}