Programming Assignment 2

Answer.