Engineering
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.

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, lowkeyqueenk
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
image
Engineering, 04.07.2019 18:20, moneywaydaedae
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
image
Engineering, 04.07.2019 19:10, Lexi5170
A)-explain briefly the importance of standards in engineering design. b)- what is patent? c)-explain the relationship between these standards: b. s. and b. s.en d)- in engineering design concepts, types of loads and how they act are important factors. explain.
Answers: 3
image
Engineering, 04.07.2019 19:10, lexie223
Acircular aluminum shaft mounted in a journal is shown. the symmetric clearance gap between the shaft and journal is filled with sae 10w-30 oil at t 30°c. the shaft is caused to turn by the attached mass and cord. develop and solve a differential equation for the angular speed of the shaft as a function of time.
Answers: 2
Do you know the correct answer?
Write a C Program to work with a matrix. Your program must ... ask a user for the size of a matrix...

Questions in other subjects: