Question: C# Program help, I am having problems trying to do this project and am really confused about how it is supposed to work. I do

C# Program help, I am having problems trying to do this project and am really confused about how it is supposed to work. I do not want the exact answer using the same matrix size and operations I have been given but I want to understand how to do this problem. Because of this, I will make up matrices that are of different lengths and do different operations then what is listed in the project. If you could write a sample program that would function similar to what I will describe so I can understand what I am supposed to do.

For this project, I have two files with matrices in them called MatrixOne and MatrixTwo.These files are text files that hold square matrices where the first value specifies the number of rows and the number of columns in the input matrix. After this data, the remaining content of the files is the data in row-major order. For example, the first value is the number of rows and columns such as "4" yields a 4-by-4 matrix. You should use the first value in the files as the size of the square matrix

Here are the matrices I made: C# Program help, I am having problems trying to do this project and the file would look like this "4 2 4 -2 -1 -4 0 1 3 -3 5 6 7 8 9 10 11" within the MatrixOne.txt file

Thus this file would read "4 4 2 4 -2 -1 -4 0 1 3 -3 5 6 7 8 9 10 11"

and am really confused about how it is supposed to work. I and the file would look like this "4 7 12 1 14 2 13 8 11 16 3 10 5 9 6 15 4" within the MatrixTwo.txt file

Thus this file would read "4 4 7 12 1 14 2 13 8 11 16 3 10 5 9 6 15 4"

After reading the two matrices using any data structure of your choosing:

Write MatrixOne to a plain text file called "testfile.outA" and write this result to stdout

Repeat this process with MatrixTwo but call this file "testfile.outB" thus also write this result to stdout

Using the matrices above 6A-5B and then write to a file called "testfile.calc" thus also write this result to stdout

Finally, transpose vector B and write it to a file called "testfile.transpose" thus also write this result to stdout

Since I changed the numbers, the sizes of the matrices, and the operations I need to do from the project I would like to see how you would do this project and then I can see how to apply these concepts to my own project. Thank you for any possible help!!

A= 2, 4, -2, -1 -4,0, 1,3 -3,5,6,7 8, 9, 10, 11 B= 7, 12, 1, 14 2, 13, 8, 11 16, 3, 10,5 9,6, 15,4

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!