3. School Grades Java Script LAB Associative Arrays
Здравейте,
Имам проблем със задача от лаба 3.School Grades? Judge ми дава грешка и не знам къде ми е проблема.
Много благодаря!
Условие:
3.School Grades
Write a function to store students with all of their grades. If a student appears more than once, add the new grades. At the end print the students sorted by average grade. The input comes as array of strings.
Example
Input |
Output |
['Lilly 4 6 6 5', 'Tim 5 6', 'Tammy 2 4 3', 'Tim 6 6'] |
Tammy: 2, 4, 3 Lilly: 4, 6, 6, 5 Tim: 5, 6, 6, 6 |