Programming Assignment 2

Updated with my code