Question: 3. You will be implementing the High / Low Guessing Game, in which the user tries to guess a randomly selected number between 1 and

 3. You will be implementing the High / Low Guessing Game,

3. You will be implementing the High / Low Guessing Game, in which the user tries to guess a randomly selected number between 1 and 100 (inclusive). After each guess, your script should tell the user if the guess is too high or two low until the user guesses the number. Your script should check that the user has entered a valid in- teger. Make use of the $RANDOM variable to obtain a random number. Name your script [username] -game_lab11.sh replacing [username] with your username (i.e., jagraves21_game_lab11.sh) Your completed script should have the following behavior: $ ./jagraves21_game_lab11.sh Enter your guess (1-100]: 10a '10 a' is not an integer. Enter your guess [1 - 100]: 50 Your guess is too low. Enter your guess (1-100]: 75 Your guess is too high. Enter your guess (1-100]: 62 Your guess is too low. Enter your guess [1 - 100]: 68 Your guess is too low. Enter your guess [1 100]: 71 Correct! It took you 6 guesses

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!