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

Разделы > Linear Data Structures: Arrays > задача:


51136 - Class Average 2

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

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

• 51009 - Sum of the nth row
• ECE - Question 1
• CEN - Question 1
• 51107 - Factorial
• Reflektimi i pikes
• 50972 - Division
• Question 1
• 51135 - Class Average 1
• 51136 - Class Average 2
• 51094 - Passing the course
• 51130 - Permutation of Everything
• 51069 - Last Digit of a Fibonacci Nu...
• 51073 - Campus Tours for High Sch...
• 51148 - Circles
• 51123 - Mr. Li Criteria
• 51124 - Easy Tiae words
• 51145 - Graduation Exam

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

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

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

Class Average 2

Question: Given a student information: Name, Surname, Quiz grade, Homework grade, Project grade, Midterm grade and Final exam grade, Show students whose average is grater then or equal to class average in ascending order.

Student average is calculated using this formula: 15% of quiz +15% of homework + 20% of project + 25% of midterm + 25% of final exam.

Input specification: In the first line you will be given a number of students n (1<=n<=250). Then in following n lines you will be given: Student name, surname, quiz grade, homework grade, project grade, midterm grade and Final exam grade.

Output specification: Show name, surname, and average (with two digits after the floating point) of the students whose average is grater then or equal to the class average in ascending order. 

Sample Input I 

10
Skender Davidson 63 66 43 51 90
Pauline Pierce 15 80 85 70 68
Ylber Dervishll 18 80 91 63 70
Megan Godolja 50 84 95 61 62
Renato Haskurti 86 60 65 65 68
Eugerta Hasa 52 90 84 35 90
Arlind Harper 95 26 35 83 68
Fjorentina Rrapaj 49 27 68 87 60
Erion Sinka 3 9 13 98 91
Gentjana Myers 73 21 35 99 62

Sample Output I

Pauline Pierce 65.75
Ylber Dervishll 66.15
Renato Haskurti 68.15
Eugerta Hasa 69.35
Megan Godolja 69.85

 

Sample Input I Explanation

Average of students:

Skender Davidson 63.20
Pauline Pierce 65.75
Ylber Dervishll 66.15
Megan Godolja 69.85
Renato Haskurti 68.15
Eugerta Hasa 69.35
Arlind Harper 62.90
Fjorentina Rrapaj 61.75
Erion Sinka 51.65
Gentjana Myers 61.35

Averages of students in ascending order:

Erion Sinka 51.65
Gentjana Myers 61.35
Fjorentina Rrapaj 61.75
Arlind Harper 62.90
Skender Davidson 63.20
Pauline Pierce 65.75
Ylber Dervishll 66.15
Renato Haskurti 68.15
Eugerta Hasa 69.35
Megan Godolja 69.85

Class Average:  64.01

So, student with the average grater then or equal to calss average are:

Pauline Pierce 65.75
Ylber Dervishll 66.15
Renato Haskurti 68.15
Eugerta Hasa 69.35
Megan Godolja 69.85

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

www.contester.ru