Re: write checks challenge




"*** Russell" <richard.russell@xxxxxxxxxxx> wrote in message
news:1123762351.867982.174480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> While $2535 could indeed be written as "twenty five hundred thirty
> five," without causing ambiguity, an algorithm to automate the writing
> would not have to follow this, as long as what is written is completely
> unambiguous, for the reason you note. Actually, if I were writing the
> check, I would write "Two Thousand Five Hundred Thirty Five..."
>

My 1st crack at this did write "twenty-five hundred thirty-five"
however my 2nd (and final?) solution:
http://home.earthlink.net/~dave_gemini/strings.f90
does not.

> Now, if you were to write an algorithm that parsed the written form
> back into a value, all sorts of weird things would have to be
> considered for the sake of completeness. I do wonder if
> check-processing procedures take a crack at deciphering written amounts
> (words and numbers) and compare resulting values for consistency.
> Perhaps someone from the banking industry could comment.
>

I see it as about same degree of difficulty, but I'm probably wrong.


.


Loading