CEN110_ECE Practice Exam 2 |
Start: June.01.2017 at 10:30:37 AM
Finish: June.01.2017 at 11:25:37 AM
The contest is finished!
• Contest scoreboard
|
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 1
Question: Given a student information: Name, Surname, Department, Quiz grade, Homework grade, Project grade, Midterm grade and Final exam grade, Show students whose average is grater then or equal to class average.
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) and department. Then in following n lines you will be given: Student name, surname, department, quiz grade, homework grade, project grade, midterm grade and Final exam grade.
Output specification: Show name, surname, department and average (with two digits after the floating point) of the students whose average is grater then or equal to the class average for the required department. If there is no student with the average grater then class average in that department show "0".
Sample Input I
4 ECE Dhurata Roberts BINF 52 17 60 20 4 Erind Bello ECE 85 85 49 19 3 Astrit Caushi CE 12 41 26 63 0 Asjan Glover CEN 25 3 15 25 32
|
Sample Output I
Erind Bello ECE 40.80
|
Sample Input II
4 ECE John Kamami CE 71 14 24 35 20 Selime Leshi BINF 18 87 8 47 34 Nexhip Dashballa BINF 90 2 19 20 33 Nexhip Dashballa ECE 15 2 56 36 22
|
Sample Output II
0
|
Sample Input I Explanation
Average of students:
Dhurata Roberts BINF 28.35 Erind Bello ECE 40.80 Astrit Caushi CE 28.90 Asjan Glover CEN 21.45
Class Average is: 29.88
There is only one student from ECE department with average grater than or equal to class average. Для отправки решений необходимо выполнить вход.
|