Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Program: (Two-Dimension Arrays) Write a program that displays the description of the classic BINGO game, generates and displays a BINGO card (5x5 square), and

C++ Program: (Two-Dimension Arrays) Write a program that displays the description of the classic BINGO game, generates and displays a BINGO card (5x5 square), and tests the bingo card for a winner via user inputed numbers.

This is an introductory c++ class. Please do not use advanced header files like

The bingo card has to be randomly generated every time. Here are the following rules for what numbers can be generated under each column:

B column can only contain numbers between 1-15

I column can only contain numbers between 16-30

N column can only contain numbers between 31-45 (Center is Free Space so its given to the player)

G column can only contain numbers between 46-60

O column can only contain numbers between 61-75

*IMPORTANT* Make sure that the user can test for winners via all BINGO game rules (whether the user matches the numbers diagonally, vertically, or horizontally. FS is given so it should automatically be given to the player and give them a 'Bingo Winner!' if its in the row they input the numbers for)

*IMPORTANT* Please make sure the output matches the sample runs below (include all the text)

*IMPORTANT* The numbers have to randomly generate everytime the code is compiled

*IMPORTANT* The user has to be able to test the program by entering the numbers on the bingo card to determine if they are winners or not.

*IMPORTANT* Please make sure that the numbers for each column "B", "I", "N", "G", "O" follow the specific rules for their own column above. (Ex: The "O" column can only have numbers randomly generate from 61-75)

Here are sample runs:

image text in transcribed

image text in transcribed

C: CMPR121\ExamChapter8) Release Problem1.exe The classic Bingo cards contain 25 squares arranged in five vertical olumns and five side to side rows. ach space in the grid contains a numbe typical Bingo game utilizes the numbers 1 through 75. The five columns f the card are labeled 'B he center space is usually marked 'FS' or 'Free Space'. and is considered utomatically filled. The range of printed numbers that can appear on the ard 1s norma ly restricted y column , 'I''N' 'G' and '' from left to right with the 'B' column only containing numbers between 1 and 15 inclusive with the 'I' column containing only 16 through 30. with the 'N'column containing 31 through 45 with the 'G' column containing 46 through 60. and with the '0column containing 61 through 75 player wins by completing a row. column or diagonal of the called numbers 0 13 17 365065 1 23 33 60 68 16 16 FS48 63 10 20 42 54 62 12 19 39 4972 est by entering 5 unique integer numbers from 0 75 use 0 for FS : 13 1 6 10 ING0 winner

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

how can i calculate a "required levered return"?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago