Grading Program

Developer(s): Robert DeMunbrun
Date: 1982
Type: Program
Platform(s): ZX81, TS 1000
Tags: Education

RUN asks for the class and the grading period, then shows each student in turn. Enter the student’s grades one at a time and a number over 100 to finish; the program prints the average and the letter grade. It needs 16K.

The printed Syntactic Sum, 23346, cannot belong to this listing, which sums to 50706. Several lines jump to line 80, which does not exist; the program carries on at line 90. As printed, line 110 sends a negative grade to line 1500, which does not exist.

Published in Syntax October 1982 (Grading Program).

Related Articles

Program includes 37 student names—enough to satisfy most classroom situations.

Related Content

Image Gallery

Source Code

   1 REM GRADING PERIOD GRADE
   2 REM AVERAGE AND LETTER GRADE
   3 REM WITH STUDENT NAMES
   4 REM BY R.M.DEMUNBRUN
  10 PRINT "CLASS"
  20 INPUT C$
  25 PRINT C$
  30 PRINT
  33 PRINT "GRADING PERIOD NUMBER?"
  35 INPUT G$
  37 PRINT G$
  40 PRINT
  42 PRINT "PRESS NL TO CLS AND CALL UP 1ST STUDENT NAME"
  50 LET X=500
  53 LET N=0
  56 LET G1=0
  57 LET Z$=""
  58 INPUT Z$
  59 CLS
  70 GOTO X
  90 INPUT G
 100 IF G>100 THEN GOTO 200
 110 IF G<0 THEN GOTO 1500
 120 LET N=N+1
 130 LET G1=G1+G
 140 PRINT TAB 2;"GRADE";TAB 27;G
 150 GOTO 90
 200 LET A=G1/N
 210 LET A1=INT ((INT (100*(A+.5)))/100)
 220 IF A1<70 THEN GOTO 905
 230 IF A1<73 THEN GOTO 935
 240 IF A1<76 THEN GOTO 965
 250 IF A1<80 THEN GOTO 995
 260 IF A1<83 THEN GOTO 1025
 270 IF A1<90 THEN GOTO 1055
 280 IF A1<90 THEN GOTO 1085
 290 IF A1<92 THEN GOTO 1115
 295 IF A1<94 THEN GOTO 1145
 300 IF A1<95 THEN GOTO 1175
 310 IF A1<96 THEN GOTO 1205
 320 IF A1<98 THEN GOTO 1235
 330 IF A1<=100 THEN GOTO 1265
 500 PRINT "AKERS,J"
 503 LET X=X+10
 506 PRINT
 509 GOTO 80
 510 PRINT "ANSON,A"
 513 LET X=X+10
 515 PRINT
 519 GOTO 80
 520 PRINT "ANSON,R"
 523 LET X=X+10
 526 PRINT
 529 GOTO 80
 530 PRINT "BAKER,S"
 533 LET X=X+10
 536 PRINT
 539 GOTO 80
 890 GOTO 1300
 905 PRINT AT 0,20;A1;AT 0,30;"F"
 910 PRINT
 920 GOTO 53
 935 PRINT AT 0,20;A1;AT 0,30;"D-"
 940 PRINT
 950 GOTO 53
 965 PRINT AT 0,20;A1;AT 0,30;"D"
 970 PRINT
 980 GOTO 53
 995 PRINT AT 1,20;A1;AT 0,30;"D+"
1000 PRINT
1010 GOTO 53
1025 PRINT AT 0,20;A1;AT 0,30;"C-"
1030 PRINT
1040 GOTO 53
1055 PRINT AT 0,20;A1;AT 0,30;"C"
1060 PRINT
1070 GOTO 53
1085 PRINT AT 0,20;A1;AT 0,30;"C+"
1090 PRINT
1100 GOTO 53
1115 PRINT AT 0,20;A1;AT 0,30;"B-"
1120 PRINT
1130 GOTO 53
1145 PRINT AT 0,20;A1;AT 0,30;"B"
1150 PRINT
1160 GOTO 53
1175 PRINT AT 0,20;A1;AT 0,30;"B+"
1180 PRINT
1190 GOTO 53
1205 PRINT AT 0,20;A1,AT 0,30;"A-"
1210 PRINT
1220 GOTO 53
1235 PRINT AT 0,20;A1;AT 0,30;"A"
1240 PRINT
1250 GOTO 53
1265 PRINT AT 0,2;A1;AT 0,30;"A+"
1270 PRINT
1280 GOTO 53
1300 STOP

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.