Question: ( 2 ) Write a program that reads in a 2 - dimensional array ( matrix ) with n rows and m columns where n

(2) Write a program that reads in a 2-dimensional array (matrix) with n rows and m columns where n and m are user-given and for each column it computes its average.
E.g., for the matrix
123
456
383
the average of 1st column is 3.333333, of 2nd column is 5.0, and of 3rd column is 4.0.
 (2) Write a program that reads in a 2-dimensional array (matrix)

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!