I have limited time and require this by Friday the 30th. Very simple, almost trivial.
Generate a two-dimensional array of integers of 30 rows by 30 columns that contains 900 random numbers between 0 and 9. Print out the array (well formatted) and do the following computations:
1. Calculate and print out the sum of the first row.
2. Calculate and print out the average of the main diagonal (from top-left 0,0 to bottom-right 29,29).
3. Count and print out how many zeros are found in the first column.
Now you will generate a succession of similar arrays. How many attempts does it take to have all the numbers in the main diagonal with a value of 7 or more? Stop generating arrays when you reach that goal and print out the number of attempts it took. Print out the array.