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, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 19:10
What is a monomer? how do they form a ploymer from the view point of chemical bonding?
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
question
History, 22.05.2021 01:00
question
Mathematics, 22.05.2021 01:00
question
Mathematics, 22.05.2021 01:00
question
Geography, 22.05.2021 01:00
question
Mathematics, 22.05.2021 01:00
question
Mathematics, 22.05.2021 01:00
question
Mathematics, 22.05.2021 01:00
question
Mathematics, 22.05.2021 01:00
Questions on the website: 13722362