10 PRINT "ADVANCED BASIC DEMO"
20 PRINT "======================"
30 DIM SCORES(10)
40 LET TOTAL = 0
50 FOR I = 1 TO 10
60 LET SCORES(I) = INT(RND * 100) + 1
70 LET TOTAL = TOTAL + SCORES(I)
80 NEXT I
90 LET AVERAGE = TOTAL / 10
100 PRINT "Generated 10 random scores:"
110 FOR I = 1 TO 10
120 PRINT "Score "; I; ": "; SCORES(I)
130 NEXT I
140 PRINT "Total: "; TOTAL
150 PRINT "Average: "; AVERAGE
160 IF AVERAGE >= 50 THEN
170 PRINT "PASS: Average is good!"
180 ELSE
190 PRINT "FAIL: Average needs improvement"
200 END IF