Description: Write a program that displays the classic BINGO game, displays a BINGO card (5x5 square), and tests the bingo card for a winner via 2 users Steps: 1- Ask user 1 to enter 24 numbers between 10-40 no duplicates / check for range and repetition   2- Ask user 2 to enter 24 numbers between 10-40 no duplicates / check for range and repetition   3- Using function, design 2 BINGO cards as you see below 4- Distribute the numbers onto the 2 cards with each user input with 0 in the middle 5- Display the 2 cards in 1 screen as you see below 6- Using function, generate a random number between 10-40 no duplicates / check for range and repetition  7- Using function, compare the random number with the numbers on the 2 cards 8- If the random number matches any number on each card, change the number on the card to 0 9- Using function, check for winning 5 numbers in a row or column = 0 5 numbers in a diagonal = 0 all 4 corners of the card = 0 if any of the players won, display who is the winner and exit the program if the 2 players won, display both are the winners and exit the program 10- Ask the user to Press Any Key to Continue 11- Repeat step 6-10 until no more random numbers

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
icon
Related questions
Question

Description:

Write a program that displays the classic BINGO game, displays a BINGO card (5x5 square), and tests the bingo card for a winner via 2 users

Steps:

1- Ask user 1 to enter 24 numbers between 10-40 no duplicates / check for range and repetition  

2- Ask user 2 to enter 24 numbers between 10-40 no duplicates / check for range and repetition  

3- Using function, design 2 BINGO cards as you see below

4- Distribute the numbers onto the 2 cards with each user input with 0 in the middle

5- Display the 2 cards in 1 screen as you see below

6- Using function, generate a random number between 10-40 no duplicates / check for range and repetition 

7- Using function, compare the random number with the numbers on the 2 cards

8- If the random number matches any number on each card, change the number on the card to 0

9- Using function, check for winning

5 numbers in a row or column = 0

5 numbers in a diagonal = 0

all 4 corners of the card = 0

if any of the players won, display who is the winner and exit the program

if the 2 players won, display both are the winners and exit the program

10- Ask the user to Press Any Key to Continue

11- Repeat step 6-10 until no more random numbers

by using c language.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Concept of memory addresses in pointers
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
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