Question: CS365WI A Small Test with BASH The main task of the project is to write a bash script to have a guessing game. The bash

 CS365WI A Small Test with BASH The main task of the

CS365WI A Small Test with BASH The main task of the project is to write a bash script to have a guessing game. The bash script when executed, will give the output on the terminal. It will first put out a welcoming message and request the user to guess a number (a positive integer) which the script has generated randomly. If the guessed number is bigger than the number that the script has generated, it will give out a message that "Your guess is too high so try again. If the guessed number is lower than the number that the script has generated, it will give out a message that "Your guess is too low so try again." When the user types his guess, if the number is correctly guessed, then it will congratulate the user, tel the number of attempts taken to guess correctly and halt. You must comment your bash script properly for every line of code. Name the file as CS465WI

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!