Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a java program in which I have to create a bingo board according to the requirements and do it. There are the method

This is a java program in which I have to create a bingo board according to the requirements and do it. There are the method that need to be created to do this. Listed on the paper. image text in transcribed
image text in transcribed
Overview: The standard Bingo card is a 5 by 5 table containing integers between 1 and 75, with a free spot at the center that contains 0. The first columan in the table contains only integers between 1 and 15, the second column numbers are all between 16 and 30, the third are 31 to 45, the fourth 46-60, and the fifth 61-75. There are no duplicate numbers on a Bingo card. There are about 15 4 12 11 possible arrangements of the numbers on a bingo card Before the game starts, each playver is given a Bingo card. The game also has a "caller", who issues a list of all the integers between 1 quare, is always maris called, players mark the appropriate squares on their cards. The middle square, the free square, is always marked game is the first person whose Bingo card has one of the following winning conditions: . All five spots in a column are marked . All five spots in a row are marked .All the spots in either of the two diagonals are marked The four corner squares are all marked BIN G O 14 20 32 52 71 10 27 42 55 64 7 23 P 58 69 You can read the Wikipedia page on Bingo. Objectives: . Reinforce the concept of object-oriented programming . Gain experience of working with two-dimensional arrays 1128 34 56 72 15 25 33 536 Instructioas: Part I: Implement the following methods public elass Bingo private intii card- new int[5] 15]: intl) calls new int(76): // just ignore calls(0]i int way; // 1 for horizontal 2 for vertical3 for diagonal public void makeCalls)// create an array with the numbers from 1-75 public void shuffie()//ealls public void makeCard()/o duplicates and card [3] [3] public void printCalls0// public void printCard)// Print out the card with the word Bingo and public boolean done() //check horizontally, vertically, and diagon public String getLetter (int num)/ is num aB,I,N, G, or o public void markCard(int n) //after the number is c is a free space. Set it to 0. numbers evonly spaced al called, if found, replace it with a 0 public void how) // was the BINGO horizontal, vertical, or diagonal public void play) // Keep calling numbers until you get a BINCO. Tell the number of

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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

What is a bottleneck, and why do network managers care about them?

Answered: 1 week ago