--- title: "Grading Program" id: 76447 type: "computer_media" slug: "grading-program" url: "http://localhost/computer_media/grading-program/" markdown_url: "http://localhost/computer_media/grading-program.md" published_at: "2026-11-11T08:02:46+00:00" modified_at: "2026-11-11T08:02:46+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/grading-program-1.png" excerpt: "A teacher's gradebook for the ZX81: enter each student's grades and get the average and letter grade." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Robert DeMunbrun" slug: "robert-demunbrun" taxonomy: "indiv" url: "http://localhost/indiv/robert-demunbrun/" genre: - name: "Education" slug: "education" taxonomy: "genre" url: "http://localhost/type/education/" media_type: "Program" programmers: - name: "Robert DeMunbrun" slug: "robert-demunbrun" taxonomy: "indiv" url: "http://localhost/indiv/robert-demunbrun/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Grading%20Program%20%281982%29%28DeMunbrun%2C%20Robert%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/grading-program-1.png" article_media: - id: 19336 title: "Grading Program" type: "article" url: "http://localhost/article/grading-program/" related_content: - id: 19351 title: "Syntax Errors" type: "article" url: "http://localhost/article/syntax-errors-5/" media_type_tags: "Education" license: false --- # Grading Program 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](https://timexsinclair.com/article/grading-program/)). ## 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 ```