Question: For this assignment you will revisit the number guessing game in which the user picks a number, and your program tries to guess the number.




For this assignment you will revisit the number guessing game in which the user picks a number, and your program tries to guess the number. For review, a sample run of the program is printed below. In the example the user picks the value 72 for the first game, and then 25 for the second game. The user's input is in bold. Here is how the output might look (exact numbers may vary): > Think of a number between 1 and 100 Is the number 50? (h/1/c) : h Is the number 75? (h/1/c): 1 >Is the number 62? (h/1/c): h Is the number 68? (h/1/c): h Is the number 71? (h/1/c): h >Is the number 73? (h/l/c) l >Is the number 72? (h/1/c): c You picked 72? Great pick > Do you want to play again? (y): y > Think of a number Between 1 and 100 Is the number 50? (h/1/c): Is the number 25? (h/l/c) : You picked 25? Great pick 1 Do you want to play again: (y) : n Good bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
