Quickly hacked together from the sample code I gave to the tutors. They were able to interpret it to smooth out any "rough bits" (or outright errors).
Resource created Tuesday 03 November 2015, 02:55:51 PM.
website: https://www.cse.unsw.edu.au/~cs1927/15s2/labs/soln/