Question
C++ Program: Write a program that makes a management system of the classic bingo game. The bingo card must be randomly generated every time. Here
C++ Program: Write a program that makes a management system of the classic bingo game.
The bingo card must 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
Your program should include two classes called Class person and Class Bingo and two header files
You must write a program that applies a BINGO management scheme for this task. You should be able to create/delete person accounts from the management system, assign/remove BINGO cards to each player, show a card layout, mark cards, and declare BINGOs.
Besides these limitations, each cell in the grid is distinctive. The grid's central cell is commonly considered a Free cell and therefore has no designated value; we may assign it the value of 0.
- You have to have a system that creates and deletes a persons account, make and remove bingo cards to each player, display the layout of a card, mark the card, and declare if someone got a bingo
- Cards need to be shown as an integer that is the source for the series of random numbers which generated the cards values
- The numbers have to randomly generate every time the code is compiled
- The person has to be able to test the program by entering the numbers on the bingo card to determine if they are winners or not.
- 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)
- As applied in the random library, use the minstd rand0 generator. You must #include
to use this random number generator and construct an instance of the generator as follows: - Your code needs to include the following commands:
- exit exits the program.
- load
- parses the subject matter of the file if they were entered from the command line - display person
displays a list of the persons cards - display displays a list of the persons and their cards
- display card
- display the required card - new game clears each card of their current markings.
- mark
- mark the given cell for every card being managed and check for a bingo | - add person
- add a new person to the game - add card
to - add the given card to the specified person. Report a failure if the card is duplicated - remove person
- remove the specific person. - remove card
- remove the specific card
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