Write a Java program that asks
jsamk
Question
-
Write a Java program that asks the users to enter a m × n matrix of integers, m and n being the number of rows and columns, respectively. The program stores this matrix into a two-dimensional m × n array.
Then, write a class with the following three methods:
− Method 1 accepts the m × n array as its argument, performs its transpose, and returns the transposed n × m array;
-
− Method 2 accepts the jth column of the array as its argument, and returns the maximum of the column elements;
-
− Method 3 accepts the ith row of the array as its argument, and returns the average of the row elements.
Details
Purchase An Answer Below