Details are provided below. It is the second part from the assignment that you did last week.