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

Pages: 1-

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 5:02

WOW SO ERGONOMIC

Name: Anonymous 2010-09-24 5:06

I've made a word calculator in C

It's called wc

Name: Anonymous 2010-09-24 5:11

>>3
how many lines did you use? i hit near a thousand so far and still building to make it the perfect word calculator

Name: Anonymous 2010-09-24 5:15

Name: Anonymous 2010-09-24 5:30

(format "~R" 395,054,654), you anusbrewer.

Name: Anonymous 2010-09-24 6:46

>>5
count number of bytes in a file
795 lines, 18 includes

Oh GNU...

Name: Anonymous 2010-09-24 7:04

>>6
That's the wrong way around.

Name: Anonymous 2010-09-24 7:33

>>8
No, >>1 is the wrong way around.

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?

Name: Anonymous 2010-09-24 11:04

>>10
With (<=>)

Name: Anonymous 2010-09-24 11:09

>>5
goto mb_word_separator

Woah, what?

Name: Anonymous 2010-09-24 12:08

>>12
goto considered aewsome!

Name: Anonymous 2010-09-24 12:39

>>13
#define harmful "awesome!"

Name: c++ compiler 2010-09-24 12:49

#define ignored, mumble mumble

Name: Anonymous 2010-09-24 15:44

>>12
>>14
#define ignorance strength

Name: Anonymous 2010-09-24 18:26

>>16
#define freedom slavery
#define war peace

Name: Anonymous 2010-09-25 10:55


#define HAXUS "the great"

Name: Anonymous 2010-12-17 1:25

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2011-02-04 18:32

Name: Anonymous 2011-02-17 19:49

check 'em
Don't change these.
Name: Email:
Entire Thread Thread List