Bellow you will find my code. I need to modify it to determine if it is an identity matrix or not. It also needs to show the sum of the diagonal (left to right). I need to output whether it is an identity matrix and what the sum is.