algorithmparti:programmingassignment(2)