Question: Create a script called guessing_game.sh which is a number guessing game with the following criteria: (a) The script should prompt the user if they want

Create a script called guessing_game.sh which is a number guessing game with the following criteria: (a) The script should prompt the user if they want to enable debug- ging (i.e. to turn on the -x bash option). (b) Generate a number between 1 and 100. (c) Prompt the user for a guess. (d) While the number isn't guessed output a message saying the number is too high or too low. (e) When the correct number is guessed a winning message is given. (f) After winning the user is prompted if they want to play again
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
