Question: Make a bash shell script that generates five random numbers between -17 and 17, calculates their median, and if the median is greater than 10

Make a bash shell script that generates five random numbers between -17 and 17, calculates their median, and if the median is greater than 10 then it prints "High Median" else it prints "Low Median". You can use $RANDOM to generate the random numbers. Median is the value separating the higher half from the lower half of a data sample. In this case, it's simply the number in the middle.

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