Calculator

Wrote the calculator program and it accepts an infinite number of values to compute. It returns a sum (computed value). Then it returns back to the main menu where it waits for user input. I did not use a loop to do this but just called my menu method. The program also exits when it receives the q command and does this via the abort("message") method.

The program works for all situations except for one. The situation where is does not work is where multiple inputs are the same: 2*2*2. The reason it does not work is because I was not able to initialise the array properly. I wanted to set the sum = value[0]. however i did not know about the each_with_index. If i did then i would have been able to receive the index array position and could have properly initialised the value array.

I was able to use the same infrastructure to solve each sub problem (addition, subtraction, multiplication, division, exponential). From here I was trying to create a single function that would handle all operations. 

I got close but ran out of time to implement this. So my progranm ended up with a method for each operation (addition etc)