Question: In java thanks Detailed Instructions: Write a program which does the following: - Ask the user for the dimensions of a 2D Arrays. Requires 2

In java thanks

In java thanks Detailed Instructions: Write a program which does the following:

Detailed Instructions: Write a program which does the following: - Ask the user for the dimensions of a 2D Arrays. Requires 2 integers for rows and columns. Minimum should be 5 , maximum should be 10. - NOTE: Dimensions cannot be negative and you must enforce this and size using proper error checking with loops. - Generate a 2D array and populate it with random integers from 100 to 999 inclusive. - Once the array has been created display the following results: - Display the array in table format. (Print the 2D array). Make sure to print it with all the rows and columns neatly aligned. - Calculate and display the sum and average of the entire array. - Determine how many concentric rings the table contains and print that out number. - Print out the contents of just the outside ring on a separate line. This has changed from the original assignment - The elements should be ordered from the top right corner of the outside ring going clockwise. - Print out how many elements are in the outside ring. - Calculate and display the sum and average of the outside ring. - Write separate methods for each calculation. ex: public static double findAverage(int testArray[]]]) or public static void printArray( int []] myArr) Partial sample output of a 6-column 5-row array: The 'outside ring' that should be printed out is indicated in green (for demo purposes only, your program will not show that graphic, just the table). Here is a sample output of what an ideal solution would look like: Enter an integer between 5 and 10 inclusive for number of Columns: 7 Enter an integer between 5 and 10 inclusive for number of Rows: 5 Generating random int array with 7 columns and 5 rows 721559308954802524447732418390494748150259196712252746785807636235662331229911969562860619221314285293770 The number of rings in the array =3 Sum of all array elements =18901 Average of all array elements =540.02856 Number of elements in outer ring =20 Outer ring elements listed going clockwise: 221314285293770619229807196390802954308559721524494712636911 Sum of outer ring elements =10745 Average of outer ring elements =537.25

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!