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
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
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
Mathematics, 09.04.2021 03:30
question
Mathematics, 09.04.2021 03:30
question
History, 09.04.2021 03:30
question
History, 09.04.2021 03:30
question
Mathematics, 09.04.2021 03:30
question
Mathematics, 09.04.2021 03:30
Questions on the website: 13722360