Question: Write a bash script (named numcomp.sh) to read three number one after the other, then print: You entered three numbers in Ascending Order: if

Write a bash script (named numcomp.sh) to read three number one after 

Write a bash script (named numcomp.sh) to read three number one after the other, then print: You entered three numbers in Ascending Order: if the three number were entered in ascending order, or You entered three numbers in Descending Order: if the three number were entered in descending order, or number1 number2 number3 number1 number2 number3 You entered three numbers in Random Order Order: number1 number2 number3 If the three number were entered in a different order than the first two. NOTE: You must enter only 3 numbers - no more than that and no less than that. Following is an example where numbers were entered in different orders. Please enter first number: 12 Please enter second number: 13 Please enter third number: 15 You entered three numbers in Ascending order: 12 13 15 Please enter first number: 54 Please enter second number: 33 Please enter third number: 22 You entered three numbers in Descending Order: 54 33 22 Please enter first number: 24 Please enter second number: 11 Please enter third number: 44 You entered numbers in random order: 24 11 44

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a bash script named numcompsh that fulfills your req... View full answer

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 Programming Questions!