Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Needs to be C + + ( 1 ) Write a program that accepts a 2 - dimensional array ( matrix ) with n rows
Needs to be C
Write a program that accepts a dimensional array matrix with rows and columns, where and are usergiven
and prints out its transpose ie every row in the original matrix becomes a column in the transpose matrix For example, if the given matrix is
table
the transpose will be
table
Write a program that reads in a dimensional array matrix with rows and columns where and are usergiven and for each column it computes its average.
Eg for the matrix
the average of column is of column is and of column is
Write a program using nested loops that asks the user to enter a value for the number of rows to display. It should then display that many rows of and $ with
one in the first row, two in the second row, and so on However, the last in each row should be aligned preceded by as many $ as necessary
A sample run would look like this:
Enter number of rows:
Then the and $ should appear like this:
table$$$$
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started