Two-Dimensional Array - IBM 5110 Basic Introduction

Table of Contents

Advertisement

c
C'I
C
~'
y
After you enter the statements and run the program, the display
screen shows:
i"lCJNTH
. ...!(.:iNUt", r:Y
FEBPU(')F~Y
f"l('~I~:CH
(,:,PRIL
t"lAY
"..1
t.! f"' !
E
. .JUI...Y
~3E
PTEiviBE R
UCTUBER
r···~DVEriBE I~
DECEt1BE P
i='iVG TEM P
31
0:1.
./ :I.
Two-Dimensional Array
"r
I::'
'.::a
I
'.J
? l
:::~;
. (I
I.~ •
n
3.0
::.:? •
0
j
.... ,
r:.
"il
~':..
I
I
2.9
1
I
(?
::? .
q.
Now we'll do the same thing with the two-dimensional array W. This
time we'll use MAT READ Wand MAT PRINT FLP, W statements
instead of using loops to assign the weather data and print it. If your
system does not have a printer, skip this program because the output
exceeds the limits of the screen:
(~UTO
o
0 lOR E h T H I
~~
P P
0
C) F:
ti
(.j
I<
E [ P
~~:;
D () T (, I
j\~
(:',
? Ii
I
i"'l (:-,
P
p (,
--Y'
o
I]
::.?
0 D
J
h
1. .. ..1 (
:1.:2 . . :3 )
OO::~:.O
!"j(lT
F~E(~,D
1: ' - 1
o
0
I.j.
0 D
ti
T (:)
1.., : : . : , : :
n
!
:::j
I
~::.;
..
:;:.::
..
:.' : :):1.
!
? . :l.
!
: ;
!
::5
~:5
!
:3 , .' q .. ' 1+ .-:/
!
Lj. • ::::; .. ~:.j
!
{;.
0
! :::::;
I
o
O~~.iO
D(,:,Tt)
.f:, ... • f.;.I.j ...
::?, (/
1"/ " )'I.:.j!:?
I
U) Btl
1 . .:.) . . (?, ".:':1..,
2, )'"
:I.
(I ..
15?!
::?
I
(.~)
o
(I
6 0 D
(i
T (, :l:\..' q. (.
!
:I. •
i~}
}
:I.
:::.~
. . :3"? . .
~::
I
q.
o
0
-I:.'
0 P PIt···.! T
1...1
~~;
:r.
r, !
GOO B 0
!
F
I...
P
o
0
no:
ftl
0
NTH
(,
'v'
[i
'r
E h P
P (\ I,···!
Ft·!
L L
F D R
:I.
r:))'
0090 MAT PRINT FLP . . W
ii
1 0 0
~:;
T D P
Arrays
105
c
C'I
C
~'
y
After you enter the statements and run the program, the display
screen shows:
i"lCJNTH
. ...!(.:iNUt", r:Y
FEBPU(')F~Y
f"l('~I~:CH
(,:,PRIL
t"lAY
"..1
t.! f"' !
E
. .JUI...Y
~3E
PTEiviBE R
UCTUBER
r···~DVEriBE I~
DECEt1BE P
i='iVG TEM P
31
0:1.
./ :I.
Two-Dimensional Array
"r
I::'
'.::a
I
'.J
? l
:::~;
. (I
I.~ •
n
3.0
::.:? •
0
j
.... ,
r:.
"il
~':..
I
I
2.9
1
I
(?
::? .
q.
Now we'll do the same thing with the two-dimensional array W. This
time we'll use MAT READ Wand MAT PRINT FLP, W statements
instead of using loops to assign the weather data and print it. If your
system does not have a printer, skip this program because the output
exceeds the limits of the screen:
(~UTO
o
0 lOR E h T H I
~~
P P
0
C) F:
ti
(.j
I<
E [ P
~~:;
D () T (, I
j\~
(:',
? Ii
I
i"'l (:-,
P
p (,
--Y'
o
I]
::.?
0 D
J
h
1. .. ..1 (
:1.:2 . . :3 )
OO::~:.O
!"j(lT
F~E(~,D
1: ' - 1
o
0
I.j.
0 D
ti
T (:)
1.., : : . : , : :
n
!
:::j
I
~::.;
..
:;:.::
..
:.' : :):1.
!
? . :l.
!
: ;
!
::5
~:5
!
:3 , .' q .. ' 1+ .-:/
!
Lj. • ::::; .. ~:.j
!
{;.
0
! :::::;
I
o
O~~.iO
D(,:,Tt)
.f:, ... • f.;.I.j ...
::?, (/
1"/ " )'I.:.j!:?
I
U) Btl
1 . .:.) . . (?, ".:':1..,
2, )'"
:I.
(I ..
15?!
::?
I
(.~)
o
(I
6 0 D
(i
T (, :l:\..' q. (.
!
:I. •
i~}
}
:I.
:::.~
. . :3"? . .
~::
I
q.
o
0
-I:.'
0 P PIt···.! T
1...1
~~;
:r.
r, !
GOO B 0
!
F
I...
P
o
0
no:
ftl
0
NTH
(,
'v'
[i
'r
E h P
P (\ I,···!
Ft·!
L L
F D R
:I.
r:))'
0090 MAT PRINT FLP . . W
ii
1 0 0
~:;
T D P
Arrays
105

Advertisement

Table of Contents
loading

Table of Contents