Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the language of code should be JAVA. also, assume the first name to be JOHN, last name to be KING , and panther number to
the language of code should be JAVA. also, assume the first name to be JOHN, last name to be KING , and panther number to be 8900. please and thank you.
Write a program, YourLastName Test1A.java: . o In main method: Print out your first name, last name and last 4 digits of your panther number Create 2-D array, say m: Assuming the last digit of your panther number is N, set N+4, as the row size of array m Ask the user to input column size for array m from the keyboard (use scanner) Fill all array elements as double numbers in the range of (4.0, 14.0) by using of Random object Create another 2-D array, say double[][]m2={{1,1,1},{3,4,7},{1,4,1}}; Pass the above array m and m2, to call the following two methods MaxCol(m); MaxCol(m2); System.out.println (the average of array m is:" + returnAvg3(m)); System.out.println (the average of array m2 is: " + return Avg3(m2)); Print out the largest column sum, and the average of first three rows of array m and m2 In MaxCol(double[][] array) method, find and print the Largest column sum in the array In returnAvg3(double[][] array) method, find the average of elements in first three rows in the array and return this average valueStep 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