Part 1 of Programming Assignment(HW1)