HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50425 - Calculating Weekly Pay

Guest
• Review clarifications (2)

Section problems

• 50631 - Robots
• 50251 - Symmetric matrix
• 50244 - Chessboard Pattern
• 50428 - Three Times
• 50879 - Passed or Failed
• 50387 - Passengers in the Train
• 50438 - Pattern with stars
• 50426 - Calculating Sales
• 50425 - Calculating Weekly Pay
• 50456 - nth Digit of a Number
• 50463 - Drawing a Triangle
• 50452 - Multiplication Table
• 50385 - From m to n
• 50590 - Bronze medalists
• 50604 - Viruses
• 50605 - Behind Bars
• 50614 - Numbers game

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