Solve this assignment and I have attached a previous assignment from last semest