1
0
Fork 0
pr3-sose2026-fork/haskell/08-statistics
Sebastian Steger c8a5cfa4d5 statistics stub 2025-08-20 15:40:18 +02:00
..
README.md statistics stub 2025-08-20 15:40:18 +02:00
data.csv statistics stub 2025-08-20 15:40:18 +02:00
statistics.hs statistics stub 2025-08-20 15:40:18 +02:00

README.md

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.