Problem:
Make code which enters expression like “3525 + 133 =” and solve it. Easy right? Here is the catch is that numbers and operations are replaced by their words equivalents.
Please support numbers up to 1 000 000 and these operators + – * /
Example:
input: “three thousands five hundreds and twenty five plus one hundred and thirty three is equal to”
output: “3658”
The rules:
You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday November 30th.
On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC
You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.
Kkc
Nov 28, 2014 @ 21:27:31
+ plus
– minus
* times
but what is the name for / ?
Dylan
Nov 29, 2014 @ 11:58:59
“divided by”, usually, but “over” works as well