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. Projects posted are only 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 fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.