90
CHAPTER
5 Program
Library
Line Nos. 180 -
220
..
. Assigns ranking to data sorted according
to
sequence
of
scores.
Correspondence
of
array variables will
be
as
shown
below in relation
to
a person
of
ranking A
Examinees' Nos. Scores Ranking
DC
1,A
)~
0(2,A
l~D<3,A)
Line Nos.
300
-
360
. . . Displays sorted data in the order
of
ranking, exam-
inee's No. and score.
Execution example:
Operation
Display
sc1
r
tin
·
=i
1
t·~o
1
~j
:::
-t
'35
.-,
..:..
t·~
0 1
0
6
~
:::o
.-,
..:..
r·jo
1
03
-t
:::o
4
f·~
-
!
!
-
1
Ci
c:
I
·-
-t
60
4
f·~
-
!_
'
1 0
-,
..:..
-t
6[1
4
i·io
1 0 4
-t
60
-;
I
f
·
~
c
I
1
[1
1
-t
40
,-
,
::i
f
·
~
0
1 0
-;
I
-t
2[1
'
-
j
'
'
EF
-
: ...
• Since the sorted data remain in array D (1, 1)
~
D (3, C), they can be used in
a different program.