Use Weekas1.txt file and load an 8 by 8 integer array. Create the following functions:
This function should return the row number with greatest number of 1’s in the array.
This function should return the col number with greatest number of 1’s in the array.
This function should return the total number of 1’s in the array.
This function should print the array in the following format.
1 1 1 0 1 0 1 0
0 0 0 1 0 1 1 0
1 1 0 0 0 0 1 0
1 1 1 0 1 0 1 0
0 0 0 1 0 1 1 0
1 1 0 0 0 0 1 0
1 1 1 0 1 0 1 0
0 0 0 1 0 1 1 0
This function should print out the which rows have a even number of 1’s and odd numbers 1’s.
Example:
Row 1 even
Row 2 odd
this is the txt file. That's the numbers in this file. i am copying and pasting the numbers from file.
0
1
0
1
1
1
0
1
0
0
1
0
1
0
1
0
0
0
0
0
1
1
1
1
0
0
1
1
0
1
0
0
1
1
0
1
1
1
0
1
0
0
1
1
0
0
0
1
1
1
0
1
1
0
0
0
0
1
0
1
1
1
0
0
Need help with how to find the total, even, and odd as well as help with the main function.