Write a program to do the following with a 2D Array IN JAVA: Create an integer array of 10 rows and 5 columns Load the array with random integers: On the first run use a range of 1-100 On the second run a range of 100 – 500 On the third run a range of your choice. Sum the elements of the array into a new array Sum the rows only also to a new array Output the array as a matrix Sort the data of the array and output the sorted data Search for a value based on the above ranges and as requested from a us
Write a
-
Create an integer array of 10 rows and 5 columns
-
Load the array with random integers:
-
On the first run use a range of 1-100
-
On the second run a range of 100 – 500
-
On the third run a range of your choice.
-
Sum the elements of the array into a new array
-
Sum the rows only also to a new array
-
Output the array as a matrix
-
Sort the data of the array and output the sorted data
-
Search for a value based on the above ranges and as requested from a user.

Write a program to do the following with a 2D Array IN JAVA:
-
Create an integer array of 10 rows and 5 columns
-
Load the array with random integers:
-
On the first run use a range of 1-100
-
On the second run a range of 100 – 500
-
On the third run a range of your choice.
-
Sum the elements of the array into a new array
-
Sum the rows only also to a new array
-
Output the array as a matrix
-
Sort the data of the array and output the sorted data
-
Search for a value based on the above ranges and as requested from a user.
Step by step
Solved in 2 steps with 2 images









