forked from steger/pr3-sose2026
816 B
816 B
Assignment - Statistics
The file 08-statistics/data.csv contains random data of students. It consists of the following columns:
- first name
- last name
- study subject
The rest of the columns -- and that number may vary -- contain points for different tasks. The first row is a header.
Your task is to Write a program that reads a filename from standard input. The corresponding csv-file shall be parsed and then the following statistics shall be computed and printed to standard output:
- the best student, i.e. the student with the most accumulated points (name and points shall be printed)
- the average points of all rows for each subject (subject and average points shall be printed in ascending order)
Implement your solution in the file 08-statistics/statistics.hs and upload the file to moodle.