ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > Epoka Science Olympiad 2016 > задача:


6-5. 50943 - Word Game

Epoka Science Olympiad 2016

Старт: 11.апр.2016 в 14:07:57
Финиш: 24.апр.2016 в 05:00:00
Турнир завершён!
• Турнирная таблица

Задачи турнира

• 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...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

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