Question: 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
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 an array and populate it with random integers from 100 to 999 inclusive. Once the array has been created display the following results: o 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 each ring on a separate line. The elements should be ordered from the top right corner of each ring going counter-clockwise. Calculate and display the sum and average of each ring Indicate which ring has the highest average, Indicate which ring has the lowest average. Display the max and min values in each of the rings, Write separate methods for each calculation ex: static double findAverage(int testArray203 Round results to 2 decimal places (again see system.out.print(). Parsa sample output of a 6-column 5-row array: R Problems Javadoc . Declaration Conso 100---201---102-103.184.-305 186 187...-188.100-130 111 112 113 194945 116 117 118 119-20-21-2 183 12-12-12---129 number of rings is: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
