Question: Hello, this is for programming 2 with the java language. Below is my first project assignment. For this assignment we are supposed to make a
Hello, this is for programming 2 with the java language. Below is my first project assignment. For this assignment we are supposed to make a bingo game. The professor gave us a series of hints and I will try my hardest to convey them correctly. The Professor told us to use BitSet cuz in the game of bingo when a number has been selected you exclude that number from the random generator. He also told use to use the StringBuffer in order to get an X on the users bingo card to show what numbers have been selected. Um he also said to of course use the (int)(Math.random()*74+1) thingy to generate the random numbers. He says to use a while(true) loop until a winner is announced. He said that we should use return; at the end of a method instead of a break;, Im not sure why... uh he said to keep track of numbers picked and that checkforWin method is the most important method because it does all the real work and if win is found that it checks the horizontal first then vertical then diagonals and the way to do that is if any of them sum up to 0 then that is a win and to announce the winner. He also gave us the main tricks saying 1) Declare our card matrix 2)Fill it up 3)print out card 4) play the game until win found [which is where all the above stuff that I mentioned fits in I think] 5)print out card that wins, the numbers called, type of bingo win? Something like that... Please include comments if you can, at least with difficult parts, thank you so much.
So please keep the program simple utilizing what the professor asked for if possible. I thank you so very much for your help.
Ps. There is extra credit if we write the program to where it have multiple users. Like instead of just one bingo card, have two bingo cards. (No user input is in this program I dont think) again you dont have to do this, it would just be awesome. Thank you no matter what though.


Below is the sample of what the output of the program should look like. The professor said he wants the bingo card to come out in rows of five but you dont have to do the dashs and line things.

This is the StringBuffer and BitSet thingy he gave us as examples


Computer Science 205 Project #1 The BINGO! Game Due Date : Friday, September 21st, 11:59 PM 50 Points Objective The purpose of this assignment is to acquaint ourselves with processing multi-dimensional ar- rays. This program will utilize loops, external file i/o, random numbers, and methods with array parameters The Game of BINGO! Bingo is a popular game played on a 5 row by 5 column grid, called a card. There is one letter of the word B-I-N-G-O at the top of each column. In each space under each letter are randomly . under B, 1-15 under I, 16-30 under N, 31-45 . under G, 46-60 under O, 61-75. As numbers are selected, they are marked off the card. When a line of five squares, horizontal, vertical, or diagonal, is marked out, the card is a winner. A sample bingo card is shown below 12 28 31 49 66 3 | 26 | 45 | 53 | 75 10 17 33 59 67 7 19 42 55 74 46 If the numbers 3, 45, 53, 75, and 26 are picked at random, then there will be a horizontal bingo on the second row. Diagonal wins may be from top left corner down to bottom right corner or top right corner down to bottom left corner. No free space will be utilized
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
