Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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+7, 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 (7.0 , 17.0) by using of Random object

  • Create another 2-D array, say double[][]md={{1,1,1},{2,0,1},{4,7,4}};

  • 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 largest 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 last 3 rows in the array and return this average value

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago