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

Разделы > Unsorted > задача:


50943 - Word Game

Задачи раздела

• 50821 - Derivative of an array
• 50808 - Total Distance Traveled
• 50817 - The Knight Move
• 50537 - esreveR Triangle
• 50402 - Hello World!
• 503013 - DNA
• 50966 - TVSH
• 50970 - Marbles
• 50943 - Word Game
• 51106 - Polar Bear
• 50942 - Win or Lose
• 50971 - Belote Game
• 50886 - Even or Odd
• 50894 - ASCII Codes
• 50897 - Prime Number
• 50901 - Sum of Cubes-1
• 50907 - Second Largest

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

Если у вас есть предложения или пожелания по работе 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