Writing Programs - Casio FX-730P Owner's Manual

Table of Contents

Advertisement

52
4-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
2
+
9 lx
+
125 by inputting the value of x.
1 0
I N PUT''
x
= ''
,
X
20 Y=2*Xt2+91*X+125
30 PR I NT''y
=''
;Y
40 GOTO 10
50 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+91 *
X
+
1
2 5 ).
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
~ITJ.
The symbol
"WRT" should
appear in the upper part of the display
.
BUZZER
Blinks_J
Symbol
indicating
the
r"WRT" mode.
DEG
WRT
Status of
the
program areas
Remaining capacity of
the
free
area.
I
r:
s
2
a
The program must be written only
when
in the WRT mode as shown above.
The large characters
"F (11 2 3 4
5
6 7 ::: '3"
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 8 to 8
after
pressing
§1
.
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
Pl
,
P8 and
P9.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents