subject
Engineering, 03.05.2021 18:30 abecobos37

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: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
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
Shafts are machine elements that are used to a) carry axial loads b) direct shear loads c) transmit power d) rotate at constant speed e) none of the above circular and square shafts subjected to the same torque under the same circum behave a) the same way b) almost the same way
Answers: 2
question
Engineering, 04.07.2019 18:20
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
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 of a matrix...
Questions
question
Mathematics, 20.09.2020 05:01
question
Computers and Technology, 20.09.2020 05:01
question
English, 20.09.2020 05:01
question
History, 20.09.2020 05:01
question
Mathematics, 20.09.2020 05:01
Questions on the website: 13722362