Programming assignment 2

attempt1