Question: write a program, yourlastname.java in main method: Create 2-d array, say m: - assuming the last digit of your panther number is N, set N+7,

write a program, yourlastname.java

in main method:

Create 2-d array, say m:

- assuming the last digit of your panther number is N, set N+7, as the row size of array m.

- ask the user to input column size for array m from the keyboard

- fill all array elements as double numbers in the range of (7.0,17.0) by using random object

create another 2-d array, say double[][]md={{1,1,1},{2,01},{474}};

Pass the above array m and mc, to call the following two methods

- MaxCol(m);

- MaxCol(md);

-System.out.println("the average of array m is: " + returnLast3RowAvg(m));

- System.out.println("the average of array md is: " + returnLast3RowAvg(md));

print out the smallest column sum, and the average of last 3 rows of array m and md

In MaxCol(double[][] array) method, find and print the largest column sum in the array

In returnLast3RowAvg (double[][] array) method, find the average of the elements in the last 3 rows in the array and return this average value.

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!