Casio FX-730P Owner's Manual page 99

Table of Contents

Advertisement

5-1
Rearrangement of Data (Sorting)
360 END
1000 DATA 101, 40
1010 DATA 102,60
1020 DATA 103,80
1030 DATA 104,60
1040 DATA 105,60
1050 DATA 106, :30
1060 DATA 107,20
1070 DATA 108,95
• Variables
List
Variable
Role
Variable
Role
A
} Loop control
D (2, 1)
} Soo<0•
B
variables
c
Number of data
D
Used for
D (2, C)
conversion
D
(1,
1)
D (3, 1)
) R'"kiog
l
fomi•ee•'
numbers
D
(1,
C)
D (3, C)
• Program
Description
Line Nos. 20 - 40
....
Inputs number of data and declares array.
Line Nos. 50 - 80
....
Loads data in line No. 1000 and after into array.
Line Nos. 100
-
170
...
Main routine for sorting. Compares scores successive-
ly and swaps the score and the examinee's number
with line number 140 and 150 if the large and small
scores are reversed.
89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents