Question: You have just finished creating a game script in nano that allows a user to try and guess a number ( fixed variable ) that
You have just finished creating a game script in nano that allows a user to try and guess a number fixed variable that you have provided.
The script looks like the following:
#binbash
mynum
while :
do
echo "Enter a number or to quit"
read num
if $numgt $mynum ; then
echo "Your number is bigger"
echo
elif $numlt $mynum ; then
echo "Your number is smaller"
echo
else
echo We picked the same number!"
echo
fi
done
Based on this script, select the correct answer to the following questions from the dropdown menus.
Which of the following scripting tools did you use to make sure the user is able to repeat the game without leaving the script and starting it again?
What is the command line in the script that sets your number to compare against the numbers provided by the user?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
