Add a block of code to the inverse routine in the language of your choice that will inform the user.

Add a block of code to the inverse routine in the language of your choice that will inform the user when a matrix is singular.  Write a program that reads and writes a file with a nonsingular matrix; finds its inverse, and writes the results. Use this program to solve Problem B.7. (Hint: Place the reading, writing, and inversing code in separate subroutines/functions/procedures to be called from the main program. Provide a way to identify each matrix in the output file.)