Weekend Prorgraming Challenge – Week #70 Math with words


math

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.

2 Comments (+add yours?)

  1. Kkc
    Nov 28, 2014 @ 21:27:31

    + plus
    – minus
    * times
    but what is the name for / ?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: