Question
C++ Program: Write a program that makes a management system of of the classic bingo game. The bingo card must be randomly generated every time.
C++ Program: Write a program that makes a management system of 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 user and Class Bingo and two header files
Important:
- You have to have a system that creates and deletes a users 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 middle of the grid is supposed to be a free cell and there should not be a value. You can make it a value of 0.
- 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)
- Please make sure the output matches the sample runs below (include all the text)
- The numbers have to randomly generate every time the code is compiled
- 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.
- 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)
- 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 user displays a list of the users cards
- display displays a list of the users 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 user - add a new person to the game
- add card to person - add the given card to the specified person. Report a failure if the card is duplicated
- remove user - remove the specific person.
- remove card - remove the specific card
- Please note: cell is an integer, card is an integer id, user is a single word
Type or paste question here
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