Re: write checks challenge
- From: "David Frank" <dave_frank@xxxxxxxxxxx>
- Date: Sun, 14 Aug 2005 09:54:19 GMT
"*** 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.
.
- References:
- write checks challenge
- From: David Frank
- Re: write checks challenge
- From: *** Russell
- Re: write checks challenge
- From: e p chandler
- Re: write checks challenge
- From: *** Russell
- write checks challenge
- Prev by Date: Jagged arrays
- Next by Date: Re: ifort to detect undefined variables?
- Previous by thread: Re: write checks challenge
- Next by thread: Re: write checks challenge
- Index(es):
Loading