Hi I have developed a few simple quizzes to test students on the keywords for different topics I teach. I would now like to be able to store each students last 5 scores in the quiz to show progress. I teach 4 different classes and would like to keep each classes scores separate if possible. I am fairly new to Python and don't necessarily want the code to do this, just some possible ideas to get me on the right track. The simpler the better.
Revision Quiz Score System Advice Needed
Collapse
X
-
A simple text file will work just fine with one line per student per grade. Use a comma or some sequence to separate the fields. Each record would contain class, date, student ID or name, and the score. If you only want 5 scores, then you would also run the file through a filter that would only keep the latest 5 class, date, student ID records. You can store all of the classes in one file or output a separate file for each class, which would be faster if the files are huge but if you are expecting a thousand or so records it doesn't make much difference. Reading and writing file tutorial http://www.freenetpages.co.uk/hp/ala...d/tutfiles.htm -
Thanks for the advice and link!A simple text file will work just fine with one line per student per grade. Use a comma or some sequence to separate the fields. Each record would contain class, date, student ID or name, and the score. If you only want 5 scores, then you would also run the file through a filter that would only keep the latest 5 class, date, student ID records. You can store all of the classes in one file or output a separate file for each class, which would be faster if the files are huge but if you are expecting a thousand or so records it doesn't make much difference. Reading and writing file tutorial http://www.freenetpages.co.uk/hp/ala...d/tutfiles.htmComment
Comment