Not being a child, I originally stopped reading at
   todayno 2014 9 2014

because that sentence did not make sense to me. And once that happens,
code ceases to be interesting for me.

I also must admit to being baffled by the later requirements.

That said, age=: - would work for your stated problem and for some
people's birthdays (including mine). Actually, without some way of
checking the results, I doubt many children could distinguish between
that solution and a correct solution.

Anyways, I'm going to confess puzzlement at your approach.

Thanks,

-- 
Raul



On Sat, Sep 20, 2014 at 11:54 AM, Linda Alvord <[email protected]> wrote:
> We are talking children here.
>
> Onyadot. emiTetaDot, ffiDst, onyadot, emiTetaDot, emitetad,  sepyt and
> eriuqer  are all denied!
>
> How about using +, -, *, ?, %: and that sort of thing.
>
> I must admit you did get  the right answer!
>
> You can also get a second chance.
>
> Cheers,  Linda
>
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Joe Bogner
> Sent: Saturday, September 20, 2014 9:10 AM
> To: [email protected]
> Subject: Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2
>
> solution...
>
>
>
>
>
>
> 1
> 2
> 3
> 4
> 5
>
>
> lightly obfuscated for someone who doesn't want the solution
>
>
> solution1=: 0 : 0
>
> )2 2 2002 onyadot emiTetaDot( ffiDst )02 9 4102 onyadot emiTetaDot(
>
> 'emitetad/sepyt' eriuqer
>
> )
>
>
>
> to run:
>
>
> 0!:1 |. solution1
>
>
>
> solution2 =: 0 : 0
>
> )2 2 2002( ffiDst )02 9 4102(
>
> 'emitetad/sepyt' eriuqer
>
> )
>
>
> 0!:1 |. solution2
>
>
>
> note: both take advantage of a addon. solution1 uses todayno just because
> it was stated in the problem but solution2 is what I'd really use
>
>
>
> On Sat, Sep 20, 2014 at 4:54 AM, Linda Alvord <[email protected]>
> wrote:
>
>> Using the verb  todayno  which provides the number of days since the
>> beginning of 1800,  write what you need to find the age today of a
>> groundhog
>> born on 2002 2 2.
>>
>>
>>
>>    todayno 2014 9 2014
>>
>> 80418
>>
>>
>>
>>    2014 9 20 age 2002 2 2
>>
>> 12 7 18
>>
>>
>>
>> His age is 12 years, 7 months and 18 days.  Use simple J.  Check that your
>> solution provides a correct answer for you birthday.
>>
>>
>>
>> Have a pleasant weekend.
>>
>>
>>
>> Linda
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to