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
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