@sorted_array = (-150, -5, -1, 0, 0, 2, 3, 4, 7, 8, 50) The percentage of "@sorted_array[0]" is 1%. The result will be: @final_array[0]=1 The percentage of "@sorted_array[-1]" is 100%. The result will be: @final_array[2]=100 The percentage of "@sorted_array[3]" is 75%. The result will be: @final_array[3]=75;@final_array[5]=75