Question: Write a program to play a numbers guessing game. The user thinks of a number between 1 and 100 and your program asks questions to

 Write a program to play a numbers guessing game. The user

Write a program to play a numbers guessing game. The user thinks of a number between 1 and 100 and your program asks questions to figure out what the number is (e.g., "Is the number you arc thinking of less than 50?"). Your program should be able to identify the number after asking no more than seven questions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!