Question: What is the program solution in C++'s Visual Studio Code system that will help me get the result required in this program assignment? *Note the
What is the program solution in C++'s Visual Studio Code system that will help me get the result required in this program assignment?
*Note the commands have to be ./transpose matrix.txt. and ./transpose wierd.txt
They cannot be matrix.txt and wierd.txt by themselves. Also, I did make the the text files required.

Transpose The transpose of a matrix flips it about its primary diagonal as seen in the image to the right. Notice the dimensions of the matrix are also reversed. That is, the original matrix was 3 rows x 2 columns, while the transposed matrix is 2 rows x 3 columns. Write a program to read an integer matrix from standard input and print its transpose to standard out. Suppose matrix.txt contains the following: 57 1 2 3 7 6 5 2 2 7 6 5 9 56 763 65 64 3 4 8 1 2 1 1 3 4 2 2 8 7 9 Running your program should print the transpose of the matrix, including its new size, as shown below. $ ./transpose matrix.txt 75 1 2 7 3 3 276 44 36 382 7 5 6 1 2 6 9 5 28 5 5 6 1 7 64 19 You do not need to worry about formatting the matrix into columns, just print one space between each number in the new row. For example, the following output is formatted correctly. $ ./transpose weird.txt 22 999999999 - 123456789 The largest matrix you must to support is 20 x 20. It is okay to have a larger array than you need as long as you know how much of it you are using. You could use either a 2-dimensional array or a 1-dimensional array with some "fancy" indexing. It might be easiest to start by just reading the matrix and writing it back out "as is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
