You will write a program that generates a two-dimensional array with 10 rows and 10 columns. You will need to fill the array with random numbers that can be zeros or ones.
• You will create a method isOdd that checks the number of ones in each row and each column.
• isOdd will be used to check if the total number in each row is odd.
• isOdd will then be used to check if the total number of ones in each column is odd.
• If the total number of ones in each row and each column is odd, the program must print "It is odd".
• Otherwise, the program will print "It is not odd".
• Call the method isOdd from the main method in order to test your program.
• Here is a sample execution:
1 0 1 1 1 1 1 0 0 0
0 1 0 1 0 0 1 1 1 1
0 1 1 0 0 0 1 0 1 1
0 1 1 0 0 0 0 1 0 1
1 0 1 1 0 1 1 0 1 1
0 1 0 0 1 0 0 1 0 1
1 0 0 0 1 0 1 1 0 0
1 1 0 0 0 0 0 1 1 0
0 0 0 0 0 1 1 0 0 1
1 1 0 0 1 1 0 0 1 1
It is not odd