HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > CEN_114 Midterm B > problem:


14. 51136 - Class Average 2

CEN_114 Midterm B

Start: May.14.2020 at 12:00:01 AM
Finish: May.31.2020 at 11:59:59 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 10. 51095 - Normal and Trace
• 11. 51089 - Multiply a row and add i...
• 12. 50749 - Min Distance
• 13. 51124 - Easy Tiae words
• 14. 51136 - Class Average 2
• 15. 50734 - Product Info (In Srt)
• 2. 50453 - The Cubic Difference
• 3. 50346 - The Biggest Date
• 5. 50380 - Sum of the Numbers in t...
• 6. 50443 - Dajte Express
• 7. 50496 - Falling Bricks
• 8. 51123 - Mr. Li Criteria
• 9. 50529 - Row to Table

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