Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java: Word calculator

Name: Anonymous 2010-09-24 5:00

I've made a word calculator in java, it works like this:
you enter: fourteen thousand two hundred and six multiplied by twenty seven thousand eight hundred and nine.
answer: 395,054,654.
It works for input numbers up to 999,999.

I would like to know what you think what input would screw it up.
It doesn't do more than one calculation at a time.
It works for entering in numbers in decimal form.

Name: Anonymous 2010-09-24 10:38

I would like to know what you think what input would screw it up.
How does it handle negative numbers; the input "negative zero;"
excessive use of "and" or lack of "and;" disorganized numbers - "ten hundred and seven," "ninety thousand ninety-nine hundred nine nine;" fractions as numbers (when fractions are not supported)?
What kind of precision does it handle and what kind can it handle up to?
How do misspelled words, actual numeric input, and characters the parser does not recognize affect the processing?
Divide by zero?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List