I'm practicing with arrays and I was wondering if there is something that in Ruby is called a hash, where you can basically add the name and the value to something. The reason for this question is because I'm trying to relate values from two different arrays.
For instance the following program asks for the monthly rainfall for a complete year (this example only shows 4), then it sort the inputs out and finally sums all months and show the total. The problem is that as soon as the array holding the inputs is sorted the months are no longer related to its corresponding values.
Is there a way to relate the input value array with the months arrays?