Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is for programming with the java language. Here is a summary of the assignment, I have made a program at the bottom. It contains
This is for programming with the java language.
Here is a summary of the assignment, I have made a program at the bottom. It contains everything we need, just need to fix the bugs and get it working.
This project is to make a bingo card and fill it up with integers from a file given and print it out in a specific order with a header. Then to have a BitSet check out what has been selected from a random variable. Then make all integers of the card array equal 0 when the random variable == card[r][c]. The mark the card, as in when ever card[r][c] == 0, print X in its place. Then check for win which sums up all diagonals, horizontals, verticals for if either of these sum up to 0 then we have a win. Lastly it sends off to another method the win message.
I have already made this program but it has a a bit of errors. I know for a fact that the first method works perfectly, the bingo1() method fills up the card1 with the file and I have it printing properly. I have the BitSet thing working but I cant get it to print all the random numbers selected... I only got it to print out one of them. The rest of the methods I have problems with. Please get my program working using only this one program. Also please no adding crazy things like hashmap, only use the imports that I have imported. Also no constructer classes, only use this one program I created.
This is the third time I posted this question. Please help as I asked... thank you.
This is sample output that was given from the assignment. All the dashs and | is not necessary.
Heres my program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started