Code for assignments in CS201 - Programming in C++