Must use C language to create a BINGO game Criteria: 1. bingo array must be a 2D array of 5x5 2.Generate unique random number for each column and row of the bingo card 3. Create a function to fill the bingo card with random numbers. Each column has its own range. Column B is between 1-15, column I between 16-30, column N between 31-45, column G between 46-60, and column O between 61-75. Total unique random numbers generate are 75. 4. Write a function to print the bingo card 5. Write a function to pick a number that has not already been chosen. You will need to use a 1D array to keep track of which numbers between 1 and 75 have been used so that you don’t pick numbers that have already been called. If you randomly pick a number that was already

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 23PE
icon
Related questions
Question

Must use C language to create a BINGO game

Criteria:

1. bingo array must be a 2D array of 5x5

2.Generate unique random number for each column and row of the bingo card

3. Create a function to fill the bingo card with random numbers. Each column has its own range. Column B is between 1-15,

column I between 16-30, column N between 31-45, column G between 46-60, and column O between 61-75. Total unique random numbers generate are 75.

4. Write a function to print the bingo card

5. Write a function to pick a number that has not already been chosen. You will need to use a 1D array to keep track of which numbers between 1 and 75 have been used so that you don’t pick numbers that have already been called. If you randomly pick a number that was already called, then pick another. Continue this process until you find a number that has not been previously called. Print the number to the screen along with its corresponding letter. This function should return that value.

6. Write a function to determine if a called number exists in the player’s bingo card. Pass the bingo array and the number to the function. Loop over the array (nested for loops) and, if the number is found in the bingo array, then change the value to 0 to “mark” it. If the number is found, then this function should return true; otherwise, return false.

7. Write a function to check for a completed row. A completed row is a row in the bingo array that has 0 for every value (we “marked” our bingo numbers by changing the existing value to zero to indicate that the called number matches one in our bingo card). This function should check every row in the bingo array and return whether or not it found a completed row.

8. Write a function to check for a completed column. A completed column is a column in the bingo array that has 0 for every value (we “marked” our bingo numbers by changing the existing value to zero to indicate that the called number matches one in our bingo card). This function should check every column in the bingo array and return whether or not it found a completed column.

Add prototypes for the functions at the top of the program.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning