Crown a Winner (Quiz Scorer)
After the per-student lines, print winner: name (the first student with the top score) and average: A with two decimals.
Input: Key, n, then student lines.
Output: Student lines, then winner: and average:.
Difficulty: Medium. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Only replace the winner on a strictly greater score.