Calculator -- with a twist
Posted on 2000-02-29
I am trying to make a calculator that will do basic math (i.e. 7+7, 2-1,9/3,6*4,etc.). But it is a bit different from the normal calculator.
The user will input the problem in text only, like: six plus seven, four minus three, and nine divided by three.
The program needs to parse the user input, convert it to the actual equation and calculate the answer as output.
I am not sure where to begin.. Please program as much as possible and provide me the code.