Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

First, please don't write the answer on the paper, I want to see it on the screen. -Java programming- Do not use ArrayList because I

First, please don't write the answer on the paper, I want to see it on the screen.
-Java programming-
Do not use ArrayList because I haven't taken this lesson yet, use 2D array instead.
I'm a student so please don't use an advanced codes.
Thank you!
image text in transcribed
image text in transcribed
image text in transcribed
FREE SPACE The Bingo Game BINGO This is a game of chance in which randomly selected numbers match on a scorecard with 5 squares across and 5 squares down. A fully marked 3 29 45 56 68 card or a five in a row or column wins! 1 19 43 50 72 11 25 49 61 Game Play 9 23 31 58 63 Players create bingo cards with the following specifications: The letters B,1,N, G, O are printed above the five vertical 4 27 42 54 71 columns with one letter appearing above each column. The center space is marked "Free." Each row must be randomly assigned 5 numbers with these specifications: 1 to 15 in the "B" column; BINGO 16 to 30 in the "1" column; 1 16 31 46 61 2 31 to 45 in the "N" column; 17 32 47 62 18 33 48 63 46 to 60 in the "G" column and 19 34 64 61 to 75 in the "o" column 35 21 36 51 52 Once the board(s) are constructed, a nonparticipating person calls out random numbers between 1 and 75. Classically, there is a bucket of 39 numbered balls from which the leader may draw, but if those are not 25 70 available, the leader can call out random numbers with their 11 26 41 56 71 corresponding letter. Numbers and letters are called (example: B12, 651, 12 27 42 72 13 28 43 58 73 N33) and marked off on players' corresponding scorecards. 29 74 30 75 Objective Be the first player to make a BINGO of five in a row (horizontal or vertical) or a fully marked card - if you do, you win. Nm 3 4 49 5 20 50 65 6 ORRN 66 7 22 37 67 8 23 38 53 68 9 24 54 69 10 40 55 57 14 15 44 45 59 60 GIANT PRINT Programming a. Generate a 5 x 5 BINGO board of random numbers between 1 to 75. Make sure that there are no numbers repeated. Numbers are assigned to column B if it is between 1-15, column lif it is between 16-30 etc... Remember as well that you have a center space that is FREE. Write method generateCard() that returns a 5 x 5 array of non-repeating integer values with limits of 1-75. BINGO 2 23455274 7 25355061 12 29 FREE 57 67 1427415373 1330345975 b. Write method showCard() to print the randomly generated set of numbers in the form of a BINGO card. C. Write method pickRandom() that returns a random number from the list of valid numbers (1-75). Remember that once a number has been picked it cannot be picked again. BIN d. Win Conditions: - Write method blackoutBingo () that takes the card generated from generateCard() and keep track of the cards as method pickRandom() feeds random numbers until all the numbers on the cards have been completed (or marked). Write method lineBingo () that takes the card generated from generateCard() and keeps track of the cards as method pickRandom() feeds random numbers until a horizontal or vertical line is completed (or marked). or Write method diagonalBingo () that takes the card generated from generateCard () and keeps track of the cards as method pickRandom () feeds random numbers until a right diagonal or a left diagonal line is completed (or marked). Write method figureXBingo () that takes the card generated from generateCard () and keep track of the cards as method pickRandom () feeds random numbers until a figure "X" is completed (or marked). . Write method outerCornerBingo () that takes the card generated from generateCard() and keeps track of the cards as method pickRandom() feeds random numbers until all the corners of the cards are completed (or marked)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions