Implement a guessing game in this assignment. Here is how we play this game:

Think of a number between 1 and 100 in your mind. Then, your program should ask you minimal # of questions and determine your number based on your answers. Program's question format will be

Is it NN (lesser than, equal, greater than)

You can respond to that question in 3 ways:

< indicates that your number is less than computer's guess, = means that program guessed your number right, and > means that your number is greater than computer's guess.

Allow the user to play this game any number of times

When the user is ready to quit, output average # of guesses / game.

Implementation guidelines: Use a separate function to play the game. Invoke that function from main() repeatedly as needed.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.