Word
Game
1.
Write a program that plays a word game with the user. The program should
ask the user to enter the following:
•
His or her name
•
His or her age
•
The name of a city
•
The name of a college
•
Profession
•
Type of animal
•
Pet name
After the user has entered these items,
the program should display the following story, inserting the user’s input into
the appropriate locations:
There once was a person named name
who lived in city. At the age of age he went to
college at college. After graduation he started to work as a profession.
Then, he adopted a(n) TypeofAnimal named PetName.
They both lived happily ever after!
Sample Input1:
|
Andi
15
Tirana
TOI
Doctor
cat
Kitty
|
Sample Output1:
|
There once
was a person named Andi who lived in Tirana. At
the age of 15 he went to college at TOI. After
graduation he started to work as a doctor. Then, he adopted
a(n) cat named kitty. They both lived happily
ever after!
|
Для отправки решений необходимо