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
Get step-by-step solutions from verified subject matter experts
