Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help writing this program in C 1. Greet the user and display instructions 2. Ask the user how many games they want to play

Need help writing this program in C
image text in transcribed
1. Greet the user and display instructions 2. Ask the user how many games they want to play 3. Get the number of games from the user 4. Get a number from the file (solution) 5. Ask the user to guess a number 6. Get the users guess (guess) 7. Check if the guess matches the solution if it is a match tell the user they have won and go to step 9. if it is not a match, give the user feedback and go to step 8. 8. Check if the user has used up the maximum number of guesses if the user has not used up the max guesses go to step 5. if the user has used up the max guesses tell the user they have lost and go to step 9. 9. Check if the number of games the user wanted to play have been played if the user has more games to play go to step 4. 10. say good bye to the user

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions