That's interesting. I started chipping away at it by finding the years
first. From 1800 1 1 a four year block would have 1+4*365 days or an average
of 365.25 per year. So That extra wouldn't happen until 4 years had passed.
See if you would like it better if you remove the years first. I'll see
Hi Linda,
I share your dream and sometimes the statement 'I have a dream' can change the
world. :-)
On to the weekend puzzle...
The first thing I need to figure out is whether the birthday has happened this
year or not. If it has then I can pretty easily get the number of days since
the birth
the windows zlib1.dll binary is actually copied from j701 gtk binary which
was built by Norman Drinkwater.
zlib_compress also supports an optional left argument between 0 and 9. 0 is
uncompressed, 1 is the fastest, and 9 slowest.
zlib_uncompress also supports an optional left argument which is th
The recently released zlib addon is a big plus for j64 users.
The compiled version is very effective on J text and might prove useful for
binary data as well.
The following is a worst case scenario - compressing and uncompressing a
million random numbers
t =. 100?100
ts' t -: (3!:2)
I think this question may be simpler as a starting point
What time will it be 234 minutes from 1:00pm. Use only the following
operators: +, -, *, % and numbers 0-9
Haven't tried to solve it yet
- sent from my phone
On Sep 20, 2014 12:21 PM, "Linda Alvord" wrote:
> This would not be a question
The obnoxiously technical answer to this question is there are multiple
definitions of both "year" and "day", and how long *anything* is also depends
on the length of your ruler.
That's not helpful for your exercise, I know, but it's worth bearing in mind
for this meta-debate.
-Dan
Please ex
I happen to believe in fractions and decimals. How many days in 4 years?
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Saturday, September 20, 2014 2:33 PM
To: Programming forum
Sub
I agree. But if the month is February it also depends on the year. :)
So... when you say:
"His age is 12 years, 7 months and 18 days."
Which seven months did you use?
Thanks,
--
Raul
On Sat, Sep 20, 2014 at 1:59 PM, Linda Alvord wrote:
> Last I heard it depended on the month. Linda
>
> -
Last I heard it depended on the month. Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Saturday, September 20, 2014 1:51 PM
To: Programming forum
Subject: Re: [Jprogramming] Weekend Pu
The J forum is my elementary school set of sub imjects. What you suggest is
exactly what I would hope would happen in a J classroom. All would have J.
All could experiment and exchange ideas. Hopefully they would have solutions
they believe were correct. Then they could explain their thinking to
Question: How many days long is a month?
Answer: Wrong.
--
Raul
On Sat, Sep 20, 2014 at 1:42 PM, Linda Alvord wrote:
> Not fair! I want you to hand craft yhour own solution with existing verbs
> using symbols not letter names you find here and there.
>
> It must be possible if there are alre
S all you have to do is get it to work all together to get 2002 2 2 This
is getting warmer!
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Brian Schott
Sent: Saturday, September 20, 2014 1:09 PM
To:
Not fair! I want you to hand craft yhour own solution with existing verbs
using symbols not letter names you find here and there.
It must be possible if there are already solutions. Who knows if they are
in the most recent and beautiful J? Give it a try. (It's probably better
if you don't look
Todayno comes from name_z_ '' It is quite charming. IT provides the number
of days there are between 1800 1 1 and and in this case 2014 9 20.
Tomorrow the number will increase by one.
My groundhog was born on 2002 2 2
How old is he?
Maybe this will be closer to what I should be writing. I p
Hi Linda,
If you are looking for a way to get learners to be interested in the problem,
why not use the very model of learning that we are using here?
You put a problem out to your class (forum) and see how the responses go. You
as the teacher (moderator) are free to choose the rules, knowing t
The following tells us 12 years 7 months and change.
30|1 30%~ 0 _4 +30 365#: 2002 2 2 -~&todayno 2014 9 20
12 7.6
The following tells us 18 days more.
2014 9 2 -~&todayno 2014 9 20
18
---
(B=)
>
--
For information
Hi Linda
The solution is quite simple and uses one built verb from an addon. I
posted it with the solution masked so others can try it on their own
without accidentally seeing mine
The actual solution is the result of this:
|. solution2
On Sep 20, 2014 11:54 AM, "Linda Alvord" wrote:
> We are
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 probl
This would not be a question in grade 1 but I'm thinking ahead to grades 2 -
6. They will have enough to think about as they learn English words.
The use of the word table from names_z_ has the same meaning it would in a
math class so I would use it as an "app".
I Would consider todayno as a
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
If anyone is looking for a fully fledged example of OOJ take a look at the JOD
addon. It's built from six classes and as many runtime objects as required.
Most of the techniques people have mentioned in this thread are employed in
JOD. Start with the class diagram in the PDF manual before wading
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(
'emit
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 simp
23 matches
Mail list logo