EasyManuals Logo
Home>Casio>Desktop>FX-795P

Casio FX-795P User Manual

Casio FX-795P
133 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #51 background imageLoading...
Page #51 background image
88
5-1
Writing
Programs
The
example
shown
below
is
a
program
using
BASIC
in
which
the
value
of
y
is
calculated
with
the
formula
y
=
2x”
+
91x
+
125
by
inputting
the
value
of
x.
1@
INPUT*x
=”
,X
20
Y=2*Xt24+91*X+125
3@
PRINT*y=“3Y
4@
GOTO
18
5@
END
A
BASIC
program
is
a
collection
of
“lines”
with
each
line
being
composed
of
numerals
(integers
from
1
to
9999
can
be
used)
called
line
numbers
and
state-
ments
(commands
such
as
INPUT
or
formulas
such
as
Y=2%*X
t
2+9
1
X+125
).
The
program
will
also
be
executed
in
successive
order
starting
from
the
smallest
line
number.
We
will
start
now
by
inputting
the
above
program.
Press
7).
The
symbol
“WRT”
should
appear
in
the
upper
part
of
the
display.
Symbol
indicating
the
“WRT”
mode.
Remaining
capacity
of
the
free
area
BUZZER
war
°°
(Sha
a
to
Naa
a
Fabre
wees
Tet
“7S
Blinks—t
Status
of
the
program
areas
The
program
must
be
written
only
when
in
the
WRT
mode
as
shown
above.
The
large
characters
“PF
1
33456789"
indicate
the
usage
state
of
the
program
areas.
*The
computer
is
provided
with
10
program
areas
(PO
~
P9)
in
which
multiple
programs
can
be
stored
separately.
The
program
area
can
be
changed
by
press-
ing
any
number
key
from
&
to
&
after
pressing
9
.
The
blinking
number
indicates
the
program
area
currently
specified.
The
num-
bers
displayed
indicate
open
areas.
If
a
program
has
been
written,
that
area
num-
ber
changes
to
a
cursor
(_).
In
the
display
shown
below
for
example,
the
area
specified
is
PS
and
programs
are
already
written
in
areas
Pi,
P8
and
P9.
5-1
Writing
Programs
The
number
at
the
upper
right
part
of
the
display
indicates
the
remaining
capac-
ity
(number
of
bytes)
of
the
area
in
which
programs
or
data
can
be
written
(free
area).
The
free
area
will
be
15584
bytes,
when
nothing
is
written
and
these
numbers
will
decrease
each
time
a
program
or
data
is
written.
NEWAMICI
es}
This
operation
erases
the
programs
in
all
program
areas
and
variable
contents,
and
prepares
program
area
PO.
Let
us
now
write
the
previously
mentioned
program.
AeA
Ten)
pI
Kedah
CK
bs
26MEBwWRmHWSITRIK
HEI5Es)
SS)
ooh
ES
Gar
4
Yee
(=)
or]
FV
ee
AGlere3
eed
ole.
E
JUN
JCD
Jlexe
The
program
will
be
stored
with
the
above
key
operation.
Do
not
forget
to
press
the
&
key
at
the
end
of
each
line
since
the
line
will
be
stored
only
by
pressing
©«]
.
Since
one-key
input
is
also
possible
for
frequently
used
commands
such
as
INPUT
and
PRINT,
speedy
inputs
will
be
possible.
(For
example,
the
five
characters
“INPUT”
can
be
input
by
pressing]
).
COIW(PI@IGH
can
also
be
applied.)
©
Method
of
Correcting
Program
Errors
1)
When
an
error
is
found
during
input
before
@4
is
pressed:
Move
the
cursor
to
the
error
position
by
a
cursor
movement
key
(
[4]
or
&))
and
correct
the
error.
(Same
as
in
Chapter
2)
2)
When
an
error
is
found
after
storing
the
line
by
pressing
&@
:
Enter
LIST
line
No.
in
the
WRT
mode
to
display
the
contents
of
the
line
and
correct
as
in
1)
above.
fq
89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio FX-795P and is the answer not in the manual?

Casio FX-795P Specifications

General IconGeneral
BrandCasio
ModelFX-795P
CategoryDesktop
LanguageEnglish

Related product manuals