Create a java program that reads elements (randomly from 0 – 9) of a 2-dimensional array (5x5) using the Random Class then perform the following: 1) Output the array elements 2) Output the sum of each...


Create a java program that reads elements (randomly from 0 – 9) of a 2-dimensional array (5x5) using the Random Class then perform the following: 1) Output the array elements

2) Output the sum of each row.

3) Output the sum of each column.

4) Output the sum of all the elements.

5) Output the sum of prime numbers in the array

6) Output the sum of the elements in the main diagonal.

7) Output the sum of the elements below the diagonal.

8) Output the sum of the elements above diagonal.

9) Output the sum of odd numbers below the diagonal.

10) Output the sum of even numbers above the diagonal



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here