Question: C Language: Your program will run and generate 25 random numbers between 1 to 100 (no repeats). The game can be between two users or
C Language:
Your program will run and generate 25 random numbers between 1 to 100 (no repeats). The game can be between two users or between you and computer.
Both the players will get two guesses each time. Every correct guess will be counted as 1 correct answer and will be displayed on the screen in the board.
The player having more number of correct guesses will be a winner.
The game will continue until the board is completely revealed.
. Steps:
In this assignment, you will create a simple Number Guessing game designed for two players (may be two separate players or one player against the computer). You will need to create arrays and functions to complete this program.
1.The first screen should ask the user for his name, print a welcome message, and displays an empty 5x5 board. But this 5x5 board has the values in it internally.
2.Now the program should ask the number of players (1 or 2)
3.If one, ask one name and second is computer and if 2 ask two names
4.For playing against computer, you are asked for two guesses and every correct guess is shown on the board.
5.Now 2 guesses for computer would be taken and shown on the screen
6.Once the entire board is revealed, based on the number of correct guesses, the winner must be announced.

.

Velcose To the Gane! Please Enter your nase hansher right Shanshert The Rules are staple: You cet two chances to guess a nusber andif you tet t right. it will replace the 0 on the board and increase your points The computer atso gets tvo chances Once all the natbers are cuessed, the player vith sore points vins Nov Let s Ptay
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
