This is the completed 2nd programming assignment.