Grading Program

Author(s): Robert DeMunbrun
Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v3 n10 (Volume 3, Issue 10)
Date: October 1982
Pages: 10-11

This grading program includes 37 student names–enough to satisfy most classroom situations.

To enter the program, follow the 4-line pattern in lines 500-509. Use as many modules, incremented by 10, as you need to list all student names (up to line 880). The line after the last module must read GOTO 1300 (line 890 in this listing).

After entering the program press RUN and ENTER. You get a prompt “CLASS?” Enter the name of the class (eg.,Algebra 9). You get a prompt “Grading Period Number?” Enter the grading period eg.,1) and ENTER. It prints the grading period number and gives you another prompt “PRESS NL TO CLS AND CALL UP FIRST STUDENT NAME” Press ENTER and the first student name appears. Type each numerical grade, pressing ENTER after each entry. After the last numerical grade, enter any number greater than 100 and press ENTER. The average and letter grade appears next to the student name. (This makes use of the PRINT AT command.) Press ENTER to see the next student name. Follow the same pattern.

To exit the program before you have finished, enter a negative number following the student name and hit ENTER. Line 240 is a round-up cut-off routine. You may wish to edit this to suit your needs.

Lines 220-330 determine the grading scale. Edit this to suit your own grade scale.

   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
SYNTACTIC SUM: 23346, 8K/16K

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