Question: To complete the overall task, perform the steps listed below. After cach step is complete and tested, create a comilt with your changes. push cominit
To complete the overall task, perform the steps listed below. After cach step is complete and tested, create a comilt with your changes. push cominit s as you wish, just remember the push saves all the comnlt s to the mighty Github cloud. Your comnits message must include which task you completed.
If you don't make it through all of a step or don't complete all steps, leave heaw comments for partial credit considerations.
Create a bash seript named coll. Output a random number between and
Seript should run when roll OR bash roll is typed on command line. Think about permissions.
Output should say: You rolled a where : is the randomly generated number.
Change seript to prompt the user for a number. If the number is less than output an error message. Output a random number between and the user's number.
Change seript to take an argument from the command line instead of prompting the user. If no argument is passed, output an error message. Output a random number between and the argument passed.
Script should run when. roll : is typed on command line, where is a number
Change seript to also check if the given argument is greater than If no argument was given, prompt user for a number, and check that it was greater than Output a random number between and the number.
Change the script to prompt the user for a valid number if the argument was not provided or was not greater than Prompting continues until a number greater than is given. Output a random number between and the valid number.
Change seript to take two arguments from the command line. The first argument will indicate number of dice to roll. The second will indicate how many sides of the dice. If there are less than or more than two arguments, or if the arguments are not greater than one, prompt the user for valid values for number of dice and number of side. Output a random number between and the number of sides for each die.
Script should run when roll :: is typed on command line.
Output should say: Die rolled : Die rolled a where are two randomly generated numbers, one for each die.
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
