140
GOTO
10
150
X=PEEK<65376)
:
= PEEK < S5377
>
:S=PEEK(65378)
:RETURN
RUN the program. The first
prompt will
be Displayed on
the
Screen:
GET
FIRST POINT
Take the Pen and
move
to a
startpoint
on the Surface.
The
second prompt
will appear:
GET SECOND POINT
As
soon as you specify
an
endpoint,
the
length
(the
distance between
the startpoint
and endpoint) will be
displayed
on the Screen:
LENGTH IS 1*18
(or
close to it!) When
you
release pressure
on the Pen tip,
the
prompt
appears again:
GET FIRST POINT
You
can now go on and find
another
length.
What
happens is
this:
•
Line
20
goes to 150 and
gets the data.
•
Line
30 waits for Pen down.
•
Line 50 gets the first
point.
•
Line
70
waits
for Pen
up.
•
Line
80
gets
the
second points.
•
Line
90
computes the absolute value.
•
Line
100 figures
the length.
•
Line
110 rounds the
sum.
•
Line
130
waits for Pen
up.
To
measure figures
that you have drawn on X-Pad's paper
(like lines,
rectangles,
circles, etc.), use the same
procedure.
If you are measuring
the
length of objects
(credit
card, piece of
paper, etc.), follow
this procedure:
1. Place
the
object on the surface
(be
sure
to use
only
non-metal,
non-conductive items) and decide which
side
you
want
to measure.
2.
On one end of the
object,
specify the startpoint
by
gently pressing down
on
the
Pen's
tip, then lift the
Pen.
3. On the other end of the object, press the Pen
down
(endpoint), then
lift
it.
The length
of that object's
side
will be
displayed on
the Screen.
Chapter
6
Checkpoint
1.
(True/False) To measure the
length of a line,
press
down on the Pen's tip at the line's
startpoint and
endpoint with the
Pen.
2.
(True/False) Length is displayed in
millimeters.
3.
(True/False)
Only
measure the
length
of
non-conductive
items.
20