Math Drill M

Developer(s): Rod Gowen
Date: 1983
Type: Program
Platform(s): ZX81, TS 1000, TS 2068
Tags: Education

A multiplication drill. It shows a problem such as 9 TIMES 16 and waits for the answer. A right answer gets GREAT ***** SUPER and a new problem; a wrong one gets NOPE, SORRY, TRY AGAIN and the same problem again. Each answer stays on screen for a few seconds.

Rod Gowen wrote it, with Math Drill A and S, as one of his first programs after reading the ZX81 manual, to help his daughters with their maths, and it fits a 1K ZX81. The zip has the 1983 ZX81 version (with SLOW in line 6) and the 1991 reprint for the TS2068, which drops SLOW, adds two REM lines and draws the first number from 1 to 22 instead of 1 to 20. Both are as printed.

Published in The Plotter November 1983 (ZX/TS P and R: Auto-run Programs, Math Drill), and printed again in August 1991 (Old Programs).

Image Gallery

Source Code

   5 REM "MATH DRILL M"
   6 SLOW
   7 PRINT "MULTIPICATION DRILL"
   8 PRINT
  10 LET X=INT (RND*20)+1
  20 LET Y=INT (RND*20)+1
  40 PRINT AT 10,0;X;"  TIMES  ";Y;;"=",;"ANSWER?"
  70 INPUT Z
  80 PRINT AT 10,15;,Z;"      "
  82 PAUSE 200
  85 CLS
  90 IF Z=X*Y THEN PRINT AT 5,0;"GREAT  *****  SUPER";,,,;"NEXT?"
  95 IF Z=X*Y THEN GOTO 10
 110 IF Z<>X*Y THEN PRINT AT 5,0;"NOPE, SORRY,",,,, "TRY AGAIN"
 115 PRINT
 120 IF Z<>X*Y THEN GOTO 40
 130 CLS

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