Wrote code for task #4 - tested and it seems to work
Merge branch 'master' of https://github.com/spatterson1551/Comp340_Program2
Whoops, forgot to actually include task4.c in last commit