Programming Assignment 2 submitted for grade

this is the code of assignment 2