Question: For this assignment you must write a program that manages bingo.The management system should be able to create/delete player accounts, assign/remove bingo cards to each

For this assignment you must write a program that manages bingo.The management system should be able to create/delete player accounts, assign/remove bingo cards to each player, display the layout of a card, mark cards, and declare Bingos. A BINGO card is a 5 x 5 grid with columns labeled B, I, N, G, O; each cell contains a number between 1 and 75. In traditional BINGO, the numbers for each column are restricted, column B is 1-15, column I 16-30, column N 31-45, column G 46-60 column O 61-75. Every cell is unique, so there are no duplicates. The central cell is a Free Space. The game of BINGO consists of randomly generating numbers from 1 to 75,announcing them to the players, giving them time to mark their cards and declared BINGOs, then repeating the process. A player declares a BINGO if 5 marked cells form a row, column, or diagonal. The game assumes that those numbers are generated elsewhere and is only concerned with managing the cards and declaring BINGO. Because each card contains 24 separate elements of data in its 5x5 grid, cards will be represented by an integer that is the seed for the series of random numbers which generated the cards values. Your program should implement a text-based interface capable of handling the following commands:

exit exits the program

load-parses the contents of the file as if they were entered from the command line

add user -add a new user to the game

add card to -add the given card to the specified user. Report failure if the card is duplicate

remove user -remove the specified user

remove card -remove the specified card

display user displays a list of the users cards

display displays a list of the users and their cards

display card -display the specified card

new gameclears each card of their current markings

mark -mark the given cell for every card being managed and check for a BINGO .

The language is C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!