HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


115. 50425 - Calculating Weekly Pay

Guest
• Review clarifications (2)

Volume problems

• 072. 50473 - Counting Circles Positions
• 074. 50396 - Cinema Tickets - 1
• 075. 50363 - Class GPA Average
• 080. 50248 - Power of two
• 085. 50333 - Series of Squares
• 090. 50456 - nth Digit of a Number
• 095. 50651 - Largest power of two
• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly...
• 118. 50514 - Bookkeeping
• 120. 50426 - Calculating Sales
• 125. 50484 - Number Of Letters
• 130. 50440 - Call Center
• 132. 50504 - School contest
• 135. 50392 - How much space
• 136. 50443 - Dajte Express
• 140. 50655 - Divisibility by 9

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