Complete the Programming Assignment #2

coding for assignment 2 completed here.