subject
Engineering, 06.05.2020 05:37 kyleee1991

Write a C Program to work with a matrix. Your program must ...

ask a user for the size of a matrix to be read in where the largest allowable size is 10x10
read in the matrix entries as integers
use the given user defined function to check to see if the entered matrix is an identity matrix
int identityMatrix (int matrix[10][10], int rowM, int colM); //returns a 1 if an identity matrix 0 otherwise

print the matrix and whether or not the matrix entered is the identity matrix
loop until the user wants to quit
Note: An identity matrix is a square matrix with 1’s along the diagonal from upper left to lower right and 0’s in all other positions.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
You know the right answer?
Write a C Program to work with a matrix. Your program must ...

ask a user for the size o...
Questions