Array Review Worksheet
You should be able to do the following:
- Build a class called ArrayTest with a main method.
- Create an integer array with room for 100 items.
- Populate the array by creating a Scanner that reads from a file mydata.txt
- Print the items in the array, one to a line with their index.
- Compute and print the total of the array items.
- Compute and print the average value in the array.
- Compute and print the smallest value in the array.
- Sort the array.
- Count and display the number of items in the array that are negative.
- Create a 2-dimensional array with an initializer list. The array should look like this:
1 2 3 4
5 6 7 8
9 10 11 12
- Print the array in rectangular form.
- Print the average of each row.
- Prin the average of each column.