I love using the University of Waterloo Canadian Computing Competition problems in my class. Over the years I've fine-tuned how to mark them to make life easier. Here are my strategies - hopefully you will find this useful! - I've downloaded all the test input and test output files. There is a folder per year. Files use the naming convention from the website (i.e. s1.1.in and s1.1.out would be the first test for s1). (I wrote a program to download the files automatically - saves me from manually clicking on each link).
- I redirect the input/output. In Python I simply copy and paste this code at the beginning of each student file:
 For C# I add this code:
Students hand in their files in Google Classroom - I just copy and paste their code into my tomark file underneath the code from above and run. Works like a charm!
I have thought about creating a program that can loop through the test files, run the program, compare the output to the expected output and generate a list of correct/incorrect results. Problem is I want to actually read through the code to see their thought process. Back to marking! |