This was a computing assignment. Please enjoy. Let me know if there are any glitches. You need to be quite accurate with question three.
Everything by me!