Hey I need some help with file handling. I am making a math quiz. I am stuck on the last task of my work. This is the task specification. (any advice would be massively appreicanted!!)
The teacher wants to use the results from students taking these quizzes to log their performance. The
system should store the last three scores for each student. The teacher would like to be able to output
the results of the quiz for a particular class, sorted:
• in alphabetical order with each student’s highest score for the tests
• by the highest score, highest to lowest
• by the average score, highest to lowest.
Atm moment the code just saves the students score in a text file in this format
name scored : score. If the same person from the same class does the quiz multiple times I do not want all different lines of this I want it to be like this name scored : score, score, score. But only store 3. This is very confusing and I have being watching tutorials for hours but can't seem to get my head around it.