Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a script name guess.sh Place the following comment after the shebang at the top of your script #l, , affirm that | am the

image text in transcribed
Create a script name guess.sh Place the following comment after the shebang at the top of your script #l, , affirm that | am the sole author of this script, it is my own original work #Date: #Version * Replace the appropriate areas with your name, date and version The script will choose a random number from 1 to 100 and ask the user to guess the number. The user enters their guess. The script determines if the answer is higher, lower or correct. If the correct answer is higher or lower than the guess inform the user (higher or lower) and let them guess again. Keep track of the number of guesses. If the answer was correct let the user know how many guesses it took to get the correct answer. Return the number of guesses as the program exit code. HINT: use the bash function $RANDOM to get a random number, use whatever resources you can find to figure out how to use $RANDOM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Numerical Analysis

Authors: Richard L. Burden, J. Douglas Faires

9th edition

538733519, 978-1133169338, 1133169333, 978-0538733519

More Books

Students also viewed these Mathematics questions