1.5
PRINT
"HHOSE
POEMS
HERE
THE
TALK
OF
THE
LAND.
"
RUN
I
HEARD
OF
A
POET
NAMED
SAM
HHOSE
POEMS
HERE
THE
TALK
OF
THE
LAND.
I
MET
HIM
ONE
DAV
..
AND
TO
MV
DISMAV
..
The computer automatically inserted line 15 between lines 10 and
20.
Write another line:
38
PRINT
"HIS
BRAINS
HERE
SILICON-SAND.
"
RUN
LIST
The RUN and
LIST
commands cause all four lines of PRINT instruc-
tions to appear
on
the screen.
ERROR MESSAGE: COMPUTER TALK FOR
"I DON'T UNDERSTAND"
PRINT simply tells the computer to print whatever
is
inside quotation
marks
on
the screen. The computer doesn't care what words or symbols
are inside the quotation marks; the words
don't
need to
be
spelled cor-
rectly or make sense.
Tryout
the instructions below:
48
PRINT
"AVE
SAV
HVE.:
U
SAV
BI.
"
RUN
Even
when the quotation marks enclose a nonsense sentence containing
misspelled words, the computer does what it is told to do. However,
try
misspelling PRINT
as
shown below and see what happens:
58
PRIMT
"I
SAV
HI;
YOU
SAV
BVE
. "
The computer sends you
an
Error message. The computer checks up
on
only those instructions that are outside the quotation marks
because those instructions are intended for the computer.
Instructions
that are inside the quotation marks are intended for you, so the com-
puter copies them
exactly. Move to a blank line but do not clear the
screen.
Run
the program to see what happens.
Error message
17
appears at line
50,
the line
in
which you intentionally
misspelled PRINT.
Error message
17
is called the
"syntax
error."
It
indicates that the instructions were undecipherable to the computer.
(For a
complete listing of Error messages, see Appendix D.)
There are
several ways to correct
an
Error message. The easiest solu-
tion
is
to move the cursor to the line that contains the typing error.
Place the cursor
on
the offending M
in
PRIMT and change it to
N.
37