HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Epoka Science Olympiad 2016 > problem:


6-5. 50943 - Word Game

Epoka Science Olympiad 2016

Start: Apr.11.2016 at 02:07:57 PM
Finish: Apr.24.2016 at 05:00:00 AM
The contest is finished!
• Contest scoreboard

Contest problems

• 11-P2. 50907 - Second Largest
• 11-P3. 50908 - Buy 1 Get 1
• 11-P4. 50909 - Gold Coins
• 11-P5. 50910 - Flipping Coins
• 6-1. 50937 - Calculate the Average
• 6-2. 50938 - Translate Score into Gr...
• 6-3. 50975 - Cinema Tickets
• 6-4. 50942 - Win or Lose
• 6-5. 50943 - Word Game
• 6-P1. 50881 - Exchange the Values
• 6-P3. 50883 - Win or Lose
• 6-P4. 50884 - Area and Perimeter Of...
• 6-P5. 50885 - Calculate the Average
• 7-1. 50945 - Bigger or Smaller
• 7-2. 50946 - Area of Rectangle
• 7-3. 50947 - Calculate the Average
• 7-4. 50948 - Translate Score into Gr...

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

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!

 

Äëÿ îòïðàâêè ðåøåíèé íåîáõîäèìî âûïîëíèòü âõîä.

www.contester.ru