[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> Numbers or Words?



> From:          tlbelding@htcomp.net (Tony Belding)
> Reply-to:      Tony Belding <tlbelding@htcomp.net>
> To:            Olga Tuzova <olgatu@ort.spb.ru>
> Cc:            logo-l@gsn.org
> Date:          Wed, 25 Jun 1997 07:29:37 -0600
> Organization:  Team AMIGA
> Subject:       Re: LOGO-L> Numbers or Words?


> >My proposal for a solution:
> 
> >to happy
> >ct
> >for [i 100000 999999][if happy.test :i [pr :i]]
> >end
> 
> >to happy.test :i
> >localmake "s1 0
> >localmake "s2 0
> >repeat 3 [make "s1 :s1+remainder :i 10
> >          make "i int :i/10]
> >repeat 3 [make "s2 :s2+remainder :i 10
> >          make "i int :i/10]
> >op :s1=:s2
> >end
> 
> That's about the way I would do it in C.  I think the nature of Logo
> suggests a different approach, though.  Try this...
> 
> to happy.test :i
>    op equalp (sum first :i first bf :i first bf bf :i) ~
>              (sum last :i last bl :i last bl bl :i)
> end
> 
> 
> --
>    Tony Belding
>    http://hamilton.htcomp.net/tbelding/
> 

Oh, is it really more natural? But I'd like my students to know that 
number is a number, not just a word, and it's components (digits) 
have some special qualities. And I want them to introduce to the 
position system of numeration (?) and I'm going to do it with the 
help of Logo.

Regards,
Olga.
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home