Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed
image text in transcribed
image text in transcribed
This is sample output that was given from the assignment. All the dashs and | is not necessary.
image text in transcribed
Heres my program
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions