Question: Using C programming language Write a program to take a 2 x 3 matrix with the name of A from input and write the matrix

Using C programming language
Using C programming language Write a program to take a 2 x
3 matrix with the name of A from input and write the
matrix transpose multiplied to the summation of all the elements in A"

Write a program to take a 2 x 3 matrix with the name of A from input and write the matrix transpose multiplied to the summation of all the elements in A" to a text file and also display it in the screen. You may use a TWO (2) dimensional array as a matrix. The particulars are as follows: (a) Write a function that takes a 2 x 3 matrix from the input. You may should this function to input Matrix A. (5 marks) (b) Write a function (pass by reference) to transpose A. *Note: The transpose of a matrix is simply a flipped version of the original matrix. We can transpose a matrix by switching its rows with its columns. Example: If A = (4 5 ). A= = 2 3 14 6 -E [14] 2 5 13 6 The index of rows and columns will be transposed for all the elements. E.g. The element in A[2][3] should be A[3][2] after the transpose. (c) multiply the summation of all the elements of the matrix A" to the matrix A". Therefore, each element in the matrix is multiplied by E726** A"). i=2.j=1 summation = '. = 21 1./=0 121 84 Result = 21 x 25 = 42 105 13 L63 126) (15 marks) (d) Write a function to write the Matrix A in a text file and the screen. (15 marks) Your program's output should look like the image as shown in figure 1. input a 2x3 matrix: 1 2 3 4 5 6 Matrix.txt - Notepad File Edit Format View Help 21 84 42 105 63 126 The Transpose A is: 1 4 2 5 3 6 NP 84 The result is: 21 42 105 63 126 UTF-8 100% Windows (CRLF) execution time : 2.294 s Process returned o (Oxe) Press any key to continue. Write a program to take a 2 x 3 matrix with the name of A from input and write the matrix transpose multiplied to the summation of all the elements in A" to a text file and also display it in the screen. You may use a TWO (2) dimensional array as a matrix. The particulars are as follows: (a) Write a function that takes a 2 x 3 matrix from the input. You may should this function to input Matrix A. (5 marks) (b) Write a function (pass by reference) to transpose A. *Note: The transpose of a matrix is simply a flipped version of the original matrix. We can transpose a matrix by switching its rows with its columns. Example: If A = (4 5 ). A= = 2 3 14 6 -E [14] 2 5 13 6 The index of rows and columns will be transposed for all the elements. E.g. The element in A[2][3] should be A[3][2] after the transpose. (c) multiply the summation of all the elements of the matrix A" to the matrix A". Therefore, each element in the matrix is multiplied by E726** A"). i=2.j=1 summation = '. = 21 1./=0 121 84 Result = 21 x 25 = 42 105 13 L63 126) (15 marks) (d) Write a function to write the Matrix A in a text file and the screen. (15 marks) Your program's output should look like the image as shown in figure 1. input a 2x3 matrix: 1 2 3 4 5 6 Matrix.txt - Notepad File Edit Format View Help 21 84 42 105 63 126 The Transpose A is: 1 4 2 5 3 6 NP 84 The result is: 21 42 105 63 126 UTF-8 100% Windows (CRLF) execution time : 2.294 s Process returned o (Oxe) Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!