Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you explain how to set an id to a card and add a card to a user? Please, I can't fail this assignment. For

Can you explain how to set an id to a card and add a card to a user? Please, I can't fail this assignment.

For this assignment you must write a program that implements aBINGO management system.The management system should be able to create/delete player accounts, assign/removeBINGO cards to each player, display the layout of a card, markcards, 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 contains only the values 1 to 15, column Is values range from 16 to 30, column Ns values range from 31 to 45, column Gs values range from 46 to 60, and column Os values range from 61 to 75. In addition to these restrictions, every cell in the gridis unique (no duplicated values). The central cell of the grid is usually considereda free cell and thus has no assigned value we can assign it the value of 0 for ease of notation.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 shouldimplement a text-based interface capable of handling the following commands:exit exits the programload-parses the contents of the file as if they were entered from the command linedisplayuser displays a list of the users cardsdisplay displays a list of the users and their cardsdisplay 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.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.Note: is an integer between 1 and 75. is the integer id for the card; how this works is described belowis a single word

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_2

Step: 3

blur-text-image_3

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago