title: Finding the highest, lowest, total, average and median from an array in Ruby
body: <p>I am creating a boxplot generator in Ruby, and I need to calculate some things.</p>
  
  <p>Let's say I have this array:</p>
  
  <pre><code>arr = [1, 5, 7, 2, 53, 65, 24]
  </code></pre>
  
  <p>How can I find the lowest value (1), highest value (65), total (157), average (22.43) and median (7) from the above array?</p>
  
  <p>Thanks</p>