Question: Write a program in C: You will play the guessing game a total of 5 times in a row. Each round a new number must
Write a program in C:
- You will play the guessing game a total of 5 times in a row.
- Each round a new number must be randomly generated generate a number from 1 to 10.
- The user will guess the number.
- If the number is correct, then the game ends.
- If the number is wrong, then a hint should be provided whether the correct number is higher or lower.
- Each time a user guesses, you should increment how many guesses the user has made for the round.
- When the user guesses the correct answer, output that they have finished.
- Then either start a new game, or if 5 rounds have been played then output the summary of how many guesses the user made over 5 games.
- You should use an 'array' data structure to store the number of guesses made each round.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
