Question: Write a Java Application that will initialize an array of any size or dimension and a. Print out the values of the array in the

Write a Java Application that will initialize an array of any size or dimension and

a. Print out the values of the array in the defined row and column.

b. Determine the average value of all the elements in an array of numbers.

Example: Declaration/Initialization:

int[][] array1 = { {1,2,3}, {4,5,6} };

int[][] array2 = { {1,2}, {3}, {4,5,6} };[student's note: These arrays have to be randomly generated row and column size using integers between 1 and 5, for elements use random elements bewtween 1 and 10.] Also inlcude UML activity and UML Class diagrams.

Sample Output:

Values in array1 by row are:

1 2 3

4 5 6 The average value of array1 is: 3.5

Values in array2 by row are: 1 2

3

4 5 6

The average value of array1 is: 3.5

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!