[Back to GSN Home Page] [Back to Message Index]

Global SchoolNet - Automated Message Archive

Re: LOGO-L> home row typing...




Ed Wall (ewall@wis.com)
Sat, 9 Sep 1995 18:50:21 -0900

>All,
>This is the first year that I am teaching an advanced computer class in my
>Junior High School. My principal wants me to teach touch typing.
>All the students have completed my 7th grade computer class which is 80 %
>Logo using LogoWriter.
>I am looking for ideas of how to write a logo program that will randomly
>generate letters from the home row keys that the students can then type. The
>program writes a letter then the student types the same letter.
>
>Trying to be cogative in my roteness.
>
>de Walt Smith

Here is a little program that does all the characters. It run okay under
LogoPlus on the Apple II. Some words probably should be specified for porting.

1. gprint prints on the graphics screen
2, rc? checks to see if a character is in buffer
3. gcursor positions the graphic print cursor

to type
penup
cs
ht
randomize
make "x random 39
make "y 0
make "c (random 26) + 65
gcursor :x :y
gprint char :c
getchar
type
end

to getchar
if rc? then (make "cw readcharacter) else incy
if ((ascii :cw) = :c) then stop
if :y = 20 then stop
getchar
end

to incy
gcursor :x :y
gprint char 32
make "y :y + 1
gcursor :x :y
gprint char :c
end

If only the home row keys are wanted, one could replace the random selection
of a character by a sequence of ifs, e.g.

make "idx random 10
if idx = 0 then make "c 65
if idx = 1 then make "c 83
if idx = 2 then make "c 68
if idx = 3 then make "c 70
if idx = 4 then make "c 71
if idx = 5 then make "c 72
if idx = 6 then make "c 74
if idx = 7 then make "c 75
if idx = 8 then make "c 76
if idx = 9 then make "c 59

Ed Wall

---------------------------------------------------------------
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.