This is the code submission for Programming Assignment 2