Java Array Math

Create a 10 x 10 two dimensional array of int data type (Remember that arrays start with 0, not 1.
– Load each index in the array with the multiplication of each (row * column) location
– Using printf display the content of each index, ALIGNED.
– Create an algorithm using a loop that will add all the values in all odd columns, and print their total aligned below the column.
– Print the addition of all values in each index in the array. This is a sum of all the elements of the array.
A Java submission must compile and run from the command line or it will earn a 0 and
will not be graded further. Do not include package statements or this will happen.

You can leave a response, or trackback from your own site.