Question: Using Java 2. You will also need a 55 2D array of Booleans called markers. 3. Assign random numbers to board within the constraints described

Using JavaUsing Java 2. You will also need a 55 2D array of

Booleans called "markers". 3. Assign random numbers to board within the constraints

2. You will also need a 55 2D array of Booleans called "markers". 3. Assign random numbers to board within the constraints described below: The first column must only have numbers between 1 and 15 . The second column must only have numbers between 16 and 30 . The third column must only have numbers between 31 and 45 . The fourth column must only have numbers between 46 and 60 . The fifth column must only have numbers between 61 and 75 . You may NOT have any duplicate numbers! You can keep track of this in a 1D array of Booleans like how you will track the draw. 4. You will create a single array of Booleans that is the size of 75 called "drawn". 5. The main game loop will proceed as follows: Find a random number between 1 and 75 . Make sure that it has not been drawn (drawn is false at that index) While the random number has been drawn, keep finding a new random number. Set the appropriate element in drawn to true and print out the random number. 6. See if the board 2D array has the random number drawn. If it does, set markers at the same row and column to true. Print the board, but print a "\#" on any number that has been drawn. When you get to the number that was just drawn, print an "O" (that way we can see what changed). Do not print the board if it did not have a random number. 7. Determine if there is a Bingo. If you have five in a row. If you have five in a column Or if you have Diagonals. 8. (OPTIONAL RULES) If you wish you may have a bingo for all four corners and the center. You may make the center a "free" space if you wish. 9. The game will play until there is a Bingo, I should be able to scroll up and see the progress of the game. 10. At the end you will print how many turns it took to get Bingo. Example Output Random number drawn: 12 Rnadom number drawn: 35

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!