7-9
Application
to
Tabular Calculations
• Variables Table
Variable name
Contents
A
Number
of
horizontal items in the table
B
Number
of
vertical items in
the
table
c
Control
variable for a
FOR
- NEXT loop
D
Control
variable for a
FOR
- NEXT Loop
E
For
reading
data
F
Fo
r calculating vertical
total
F(l)
-
The array for calculating horizontal
total
(Prepares number
of
vertical items
in
table.)
$
For
preparing writing data
to
the DATA BANK and for reading
space by the
READ#$.
• Program Execution Examples
Calculate the vertical and horizontal totals using the table
on
page 197.
Operation
~~IIDffi:Jllil
~
4
~
I
(Inputs number
of
horizontal items.)
3
~
(Inputs number
of
vertical items.)
5 3 2 g
~
(Inputs the value in
the
first
vertical column.)
2682~
\
-,
I.
1
·.·
1
·;
.'
'·
i
.·.
.2
.,
~
·
'---
- -
---
---
·
-·-
-
--
- -·
--
Input
data in the
2nd,
3rd and
4th
columns in sequential order. After all data are
input
, "Calculation" will be displayed. When calculation
is
over,
the
following
results will be displayed.
199