Question: Exercise 3 Write a program that allows a user to play HiLo game. User wins if he/she can guess the number between 1 and 100

 Exercise 3 Write a program that allows a user to play

Exercise 3 Write a program that allows a user to play HiLo game. User wins if he/she can guess the number between 1 and 100 within at most 6 iterations. - If s/ he guesses a number greater than the secret number. The message shown is "It is Higher than secret shown" - If s/ he guesses a number lower than the secret number. The message shown is "It is Lower than secret" 1 - If the guessed number equal to the secret number. The message shown is "Cong! you won" - If the user consumed the 6 trails without finding the secret number a message "Sorry! Try again" will be shown before termination

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!