Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions