Revision Quiz Score System Advice Needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dcallanit
    New Member
    • Feb 2015
    • 2

    Revision Quiz Score System Advice Needed

    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.
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    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

    Comment

    • dcallanit
      New Member
      • Feb 2015
      • 2

      #3
      Originally posted by dwblas
      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!

      Comment

      Working...