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

Сборники > Фёдор Меньшиков. Тренировки > задача:


115. 50425 - Calculating Weekly Pay

Гость
• Вопросы к жюри (2)

Задачи сборника

• 023. 50437 - Age Labeling
• 026. 50399 - Mobile Base Station
• 040. 50335 - Five Math Operators
• 045. 50462 - Class Average (3 Gra...
• 074. 50396 - Cinema Tickets - 1
• 080. 50248 - Power of two
• 090. 50456 - nth Digit of a Number
• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly...
• 120. 50426 - Calculating Sales
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50316 - Population Bar Chart
• 50336 - Buying Carpets
• 50295 - Weighted Average
• 003. 50358 - Series of Odd Numbers
• 005. 50297 - Divisible By Five

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

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

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

Calculating Weekly Pay

Mr. Berberi is an accountant in a sales company. He records employees monthly sales in a file. Every employee received a total salary of $200 plus 6% of their monthly sales. Write a program that reads the name, surname and monthly sales information of n employees and then shows the employee who has received the greatest salary and the employee who has received the lowest salary. If more than one employee have the same min or max salary, show the last one.

Input specification
You will be given a number (n) at the beginning. Then n lines of employee information. Every live first contain name and surname of employee followed by decimal number that represent the monthly sales of that employee.

Output specification
Show name, surname and the floating point salary of the employee who has the greatest salary and name, surname and the floating point salary of the employee who has the lowest salary. The salary must have 2 digits precision after the floating point and cant be more than 1000000.

 Sample Input I   
5
Arben Hoxha 1389
Artur Dardani 1000
Klevis Shehu 56094
Alban Mehmeti 100000
Ervin Murataj 340
 Sample Output I   
Alban Mehmeti 6200.00
Ervin Murataj 220.40


Для отправки решений необходимо выполнить вход.

www.contester.ru