Question: Write a program that randomly fills in 0s and 1s into an 8 X 8 checker board, prints the board, and finds the rows, columns,

Write a program that randomly fills in 0s and 1s into an 8 X 8 checker board, prints the board, and finds the rows, columns, or diagonal with all 0s or 1s. Use a 2-d array to represent the checker-board. Note: There is no object definition for this exercise. All you need to do is to write the class with a main method.

*I am using JGrasp so please make sure it is compatible *Please comment throughout code *FULL QUESTION IN IMAGES BELOW

Write a program that randomly fills in 0s and 1s into an8 X 8 checker board, prints the board, and finds the rows,

Write a program that randomly fills in 0s and 1s into an 8 x 8 checker board, prints the board, and finds the rows, columns, or diagonal with all 0s or ls. Use a 2-d array to represent the checker-board. Note: There is no object definition for this exercise. All you need to do is to write the class with a main method. Here are two sample runs of the program: Checker Board: 11 001 100 10101010 01010100 00000000 11110010 01010100 00001100 All zeros: Row 3 Column 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!