Sharp PC-1500A Instruction Manual page 37

Hide thumbs Also See for PC-1500A:
Table of Contents

Advertisement

All
and more
about Sharp
PC-1500
at
http://www.PC-1500.info
Keystrokes:
I
SHIFT
I
c:J
(
SHl~l
I
0
I
ENtE:A
j
rn
mmmoom
wt
•"'"1c:J
mm
1
,,.•c•1
I
s.i1rr
I
C'.:J
I
st11rr
]
CD
ICNT
EA]
rn rn
mm
rn mm
1SHIFT
1
c:J
oo
CD
1
s••CEI
l sH1
Fr
l c:J
l
:u.1
FT
)
OJ
I
ENfERI
m
Lu
r
p-1oumi-s:im
1
'"''"
' c:i
m
m
1
s
..
c•1
I
SHIFT
!
c:J
I
$.J'llfT
I
CJ
ltNTEAI
rnrn
m nooo
rn
COl
•HIF•
I
c:JOCJCQJ
ITJ
l•••cel
I
SHI
FT
I
C::J
I
SHIFT!
c:J
l ••n•I
!JlJ
oo
rnru
mm m
1sHIFrl
c::JlTIrn1s
..
c•1
I
SHIFT)
c:J
I
SHIFl
I
c:J
IEKTEA
!
rn
oo mm o:o
m
m
1
••
,
..
1c:Jcoco1s ..
cc1
I
s."1r:r
I
c:J
I
~1i:1
I
O
I
f
NTEAI
rn rn m
rn
rn
m
m
1•H"'1
c::J
rn
CQJ
Notice what happens after the last
"note" is
printed; the
program ends and
the
display returns
to the prompt. This happens because there
are
no
other statements
following the
last PAUSE
.
To
"Freeze"
the
d isplay
after
the
last
note is printed, we can c hange
line
80 to
:
80
PR
INT
"
DO"
Keystrokes:
OD
rn
m
t
R
I CD
CKJ
[!JI
...
,,.1
c:J
OD
(3[)
I
SHIFT·!
c:::J
I
(NTfAI
After all,
there's
no reason
why
we can't mix PR INT
and PAUSE
statements
th rougnout our
program.
Try
this
for
yourself.
H.
INPUT
By utilizing the va rious
forms of
the
PRINT statement,
alone
or
in
co
mbination,
informatio
n
can
be
nicely
presented to
the
computer
user.
Most
of
the
ite
ms which
will
be
printed,
however.
are
the
result
of
processing
some initial
data.
This initial da.ta
is
given
to the
program
by
that
same
computer
user.
The
instruction
which
controls this
proce~s
is
the INPUT
instruction.
In
its
simplest form;
INPUT
variable·name,
the INPUT
instruction merely
prints a ?
(question
mark) and then
waits
for the user
to
type
in
the
required
information.
What is "required" depends
o
n
the
variable w
hich
appears
as part
of the INPUT
instruction.
For
example,
if
the
variable
is
nu
meric, the
user should
e
nter
a
number,
i.vhich will
be stored
irl
the
variable.
Do
you
see
a
problem
with this
form
of
the
INPUT statement?
Good.
As
some
of
you may
realize,
unless
the
user of
the
program is also the
programmer
(and probably not
even
then), he
will
not know
what
type
of
data to enter
when he
secs
th<l
question
mark. It is
up to the
programmer to keep the user
informed
at all t imes.
Do not
sale
this PDF
!!!
35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents