Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A square matrix, that is, one having the samenumber of rows and columns, A matri

ID: 3613210 • Letter: A

Question

A square matrix, that is, one having the samenumber of rows and columns, A matrix is called a "diagonal" matrixif its only nonzero elements are on the the diagonal. It is called"upper triangular" if all elements below the diagonal are 0, and"lower triangular" if all elements above the diagonal are 0. It is"symmetric" if element i,j is equal to element j,i and "skewsymmetric" if element i,j = -element j,i.

Write a function that accepts a matrix of floats and itsdimensions, checks to see if it is square and returns an integerwith the proper value according to the following chart:

0 not square
1 diagonal
2 upper triangular
3 lower triangular
4 symmetric
5 skew symmetric
6 none of the above

The chart also includes precedence; that is, a diagonal matrix isalso upper triangular, lower triangular, symmetric and skewsymmetric, but the most important property is that it is diagonalso return 1. The zero matrix should be considereddiagonal.
A square matrix, that is, one having the samenumber of rows and columns, A matrix is called a "diagonal" matrixif its only nonzero elements are on the the diagonal. It is called"upper triangular" if all elements below the diagonal are 0, and"lower triangular" if all elements above the diagonal are 0. It is"symmetric" if element i,j is equal to element j,i and "skewsymmetric" if element i,j = -element j,i.

Write a function that accepts a matrix of floats and itsdimensions, checks to see if it is square and returns an integerwith the proper value according to the following chart:

0 not square
1 diagonal
2 upper triangular
3 lower triangular
4 symmetric
5 skew symmetric
6 none of the above

The chart also includes precedence; that is, a diagonal matrix isalso upper triangular, lower triangular, symmetric and skewsymmetric, but the most important property is that it is diagonalso return 1. The zero matrix should be considereddiagonal.

Explanation / Answer

please rate - thanks #include using namespace std; void input(float[][100],int,int); int check(float[][100],int,int); int main() { int rows,cols,value=0,i,j; string type[7]={"not square","diagonal","upper triangular","lowertriangular",              "symmetric","skew symmetric","none of theabove"};   float a[100][100]; coutrows; coutcols; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote