Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape09a_acorn_eu_1990_march.wav » MATHS1

MATHS1

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape09a_acorn_eu_1990_march.wav
Filename: MATHS1
Read OK:
File size: 07B3 bytes
Load address: 2000
Exec address: 1900
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
   10REM Maths Mania
   20REM By Robin Dunmow
   30REM (c) Electron User
   40 
   50REPEAT
   60RESTORE
   70MODE 4
   80PROCcls
   90VDU 23;8202;0;0;0;19,0,4;0;
  100PROCbig("Maths Test!",2)
  110PROCbig("Choose one of these:",6)
  120FOR W%=1 TO 4
  130READ A$
  140PROCbig(STR$(W%)+". "+A$,8+(W%*3))
  150NEXT
  160PROCbig("Press 1-4.",24)
  170REPEAT
  180S=GET-48
  190UNTIL S>0 AND S<5
  200RESTORE
  210FOR B=1 TO S
  220READ W$
  230NEXT
  240PROCcls
  250PROCbig(W$,1)
  260PROCbig("Select Difficulty (1-9)",4)
  270PROCbig("1 is Easy, 9 is hard.",7)
  280REPEAT
  290D=GET-48
  300UNTIL D>0 AND D<10
  310C=0
  320FOR Q=1 TO 10
  330PROCcls
  340PROCbig(W$,1)
  350PROCbig("Question no."+STR$(Q),4)
  360IF S<4 PROCa ELSE PROCd
  370INPUT'''" Your answer "P
  380PROCS
  390NEXT
  400PROCcls
  410RESTORE
  420FOR Z=0 TO C+4
  430READ A$
  440NEXT
  450PROCbig(W$,1)
  460PROCbig("You scored "+STR$(C)+" out of 10.",4)
  470PROCbig("Which is "+A$,8)
  480PROCbig("Play again?",20)
  490REPEAT A=GET
  500UNTIL A=89 OR A=78
  510UNTIL A=78
  520PRINT'''
  530END
  540 
  550DEF PROCa
  560RESTORE 840
  570FOR M=1TO S
  580READ A$
  590NEXT
  600A=RND(10*D*D)
  610B=RND(10*D*D)
  620IF S<4 PROCbig("What is "+STR$(A)+A$+STR$(B)+" ?",10):IF S=1 AN=A+B ELSE IF S=2 AN=A-B ELSE AN=A*B
  630ENDPROC
  640 
  650DEF PROCd
  660A=RND(10*D*D)
  670B=RND(3*D*D)
  680W=RND(2)
  690PROCbig(STR$(A)+" divided by "+STR$(B),10)
  700IF W=1 AN=A MOD B:PROCbig("What is the remainder?",13) ELSE IF W=2 AN=A DIV B:PROCbig("How many times does it divide?",13)
  710ENDPROC
  720 
  730DEF PROCS
  740IF AN=P PROCbig(STR$(P)+" is correct!!",18):C=C+1:FOR A%=0 TO 200 STEP 20:SOUND 1,-15,A%,2:NEXT ELSE PROCbig("Wrong!! The answer was "+STR$(AN)+".",18):SOUND 0,-15,4,10:SOUND 0,-15,5,10
  750PROCbig("Score so far:",21)
  760PROCbig("Correct :"+STR$(C)+" Wrong :"+STR$(Q-C),24)
  770PROCbig("Press space to continue.",27)
  780REPEAT
  790UNTIL GET=32
  800PROCcls
  810ENDPROC
  820 
  830DATA Addition.      ,Subtraction.   ,Multiplication.,Division.      ,Pathetic.,Useless.,Awful.,Very bad.,Bad.,Reasonable.,Okay.,Good.,Very Good.,Excellent.,Brilliant!
  840DATA" plus "," minus "," times "
  850 
  860DEF PROCbig(A$,Y%)
  870X%=(39-LENA$)/2
  880VDU 31,X%,Y%
  890FOR I%=1 TO LEN A$
  900?&90=ASC(MID$(A$,I%,1))
  910A%=10
  920X%=&90
  930Y%=0
  940CALL &FFF1
  950FOR J%=0TO 1
  960VDU 23,255
  970FOR K%=2 TO 9
  980VDU ?(&90+4*J%+K%DIV2)
  990NEXT
 1000VDU 255,10,8
 1010NEXT
 1020VDU 11,11,9
 1030NEXT
 1040ENDPROC
 1050 
 1060DEF PROCcls
 1070CLS
 1080DRAW 0,1023
 1090DRAW 1278,1023
 1100DRAW 1278,0
 1110DRAW 0,0
 1120ENDPROC

� Maths Mania
� By Robin Dunmow
� (c) Electron User
( 
2�
<�
F� 4
P�cls
Z� 23;8202;0;0;0;19,0,4;0;
d�big("Maths Test!",2)
n"�big("Choose one of these:",6)
x� W%=1 � 4
�� A$
� �big(�(W%)+". "+A$,8+(W%*3))
��
��big("Press 1-4.",24)
��
�
S=�-48
�� S>0 � S<5
��
�
� B=1 � S
�� W$
��
��cls
��big(W$,1)
%�big("Select Difficulty (1-9)",4)
#�big("1 is Easy, 9 is hard.",7)
�
"
D=�-48
,� D>0 � D<10
6C=0
@� Q=1 � 10
J�cls
T�big(W$,1)
^�big("Question no."+�(Q),4)
h� S<4 �a � �d
r�'''" Your answer "P
|�S
��
��cls
��
�� Z=0 � C+4
�� A$
��
��big(W$,1)
�,�big("You scored "+�(C)+" out of 10.",4)
��big("Which is "+A$,8)
��big("Play again?",20)
�	� A=�
�� A=89 � A=78
�
� A=78
�'''
�
 
&� �a
0
� �DHC
:� M=1� S
D� A$
N�
XA=�(10*D*D)
bB=�(10*D*D)
lT� S<4 �big("What is "+�(A)+A$+�(B)+" ?",10):� S=1 AN=A+B � � S=2 AN=A-B � AN=A*B
v�
� 
�� �d
�A=�(10*D*D)
�B=�(3*D*D)
�
W=�(2)
�%�big(�(A)+" divided by "+�(B),10)
�o� W=1 AN=A � B:�big("What is the remainder?",13) � � W=2 AN=A � B:�big("How many times does it divide?",13)
��
� 
�� �S
�� AN=P �big(�(P)+" is correct!!",18):C=C+1:� A%=0 � 200 � 20:� 1,-15,A%,2:� � �big("Wrong!! The answer was "+�(AN)+".",18):� 0,-15,4,10:� 0,-15,5,10
��big("Score so far:",21)
�/�big("Correct :"+�(C)+" Wrong :"+�(Q-C),24)
'�big("Press space to continue.",27)
�

� �=32
 �cls
*�
4 
>�� Addition.      ,Subtraction.   ,Multiplication.,Division.      ,Pathetic.,Useless.,Awful.,Very bad.,Bad.,Reasonable.,Okay.,Good.,Very Good.,Excellent.,Brilliant!
H!�" plus "," minus "," times "
R 
\� �big(A$,Y%)
fX%=(39-�A$)/2
p� 31,X%,Y%
z� I%=1 � � A$
�?&90=�(�A$,I%,1))
�	A%=10
�
X%=&90
�Y%=0
�� &FFF1
�
� J%=0� 1
�� 23,255
�� K%=2 � 9
�� ?(&90+4*J%+K%�2)
��
�� 255,10,8
��
�
� 11,11,9
�
�
 
$
� �cls
.�
8� 0,1023
B� 1278,1023
L� 1278,0
V	� 0,0
`�
�
00000000  0d 00 0a 11 f4 20 4d 61  74 68 73 20 4d 61 6e 69  |..... Maths Mani|
00000010  61 0d 00 14 15 f4 20 42  79 20 52 6f 62 69 6e 20  |a..... By Robin |
00000020  44 75 6e 6d 6f 77 0d 00  1e 17 f4 20 28 63 29 20  |Dunmow..... (c) |
00000030  45 6c 65 63 74 72 6f 6e  20 55 73 65 72 0d 00 28  |Electron User..(|
00000040  05 20 0d 00 32 05 f5 0d  00 3c 05 f7 0d 00 46 07  |. ..2....<....F.|
00000050  eb 20 34 0d 00 50 08 f2  63 6c 73 0d 00 5a 1d ef  |. 4..P..cls..Z..|
00000060  20 32 33 3b 38 32 30 32  3b 30 3b 30 3b 30 3b 31  | 23;8202;0;0;0;1|
00000070  39 2c 30 2c 34 3b 30 3b  0d 00 64 19 f2 62 69 67  |9,0,4;0;..d..big|
00000080  28 22 4d 61 74 68 73 20  54 65 73 74 21 22 2c 32  |("Maths Test!",2|
00000090  29 0d 00 6e 22 f2 62 69  67 28 22 43 68 6f 6f 73  |)..n".big("Choos|
000000a0  65 20 6f 6e 65 20 6f 66  20 74 68 65 73 65 3a 22  |e one of these:"|
000000b0  2c 36 29 0d 00 78 0e e3  20 57 25 3d 31 20 b8 20  |,6)..x.. W%=1 . |
000000c0  34 0d 00 82 08 f3 20 41  24 0d 00 8c 20 f2 62 69  |4..... A$... .bi|
000000d0  67 28 c3 28 57 25 29 2b  22 2e 20 22 2b 41 24 2c  |g(.(W%)+". "+A$,|
000000e0  38 2b 28 57 25 2a 33 29  29 0d 00 96 05 ed 0d 00  |8+(W%*3)).......|
000000f0  a0 19 f2 62 69 67 28 22  50 72 65 73 73 20 31 2d  |...big("Press 1-|
00000100  34 2e 22 2c 32 34 29 0d  00 aa 05 f5 0d 00 b4 0a  |4.",24).........|
00000110  53 3d a5 2d 34 38 0d 00  be 0f fd 20 53 3e 30 20  |S=.-48..... S>0 |
00000120  80 20 53 3c 35 0d 00 c8  05 f7 0d 00 d2 0d e3 20  |. S<5.......... |
00000130  42 3d 31 20 b8 20 53 0d  00 dc 08 f3 20 57 24 0d  |B=1 . S..... W$.|
00000140  00 e6 05 ed 0d 00 f0 08  f2 63 6c 73 0d 00 fa 0e  |.........cls....|
00000150  f2 62 69 67 28 57 24 2c  31 29 0d 01 04 25 f2 62  |.big(W$,1)...%.b|
00000160  69 67 28 22 53 65 6c 65  63 74 20 44 69 66 66 69  |ig("Select Diffi|
00000170  63 75 6c 74 79 20 28 31  2d 39 29 22 2c 34 29 0d  |culty (1-9)",4).|
00000180  01 0e 23 f2 62 69 67 28  22 31 20 69 73 20 45 61  |..#.big("1 is Ea|
00000190  73 79 2c 20 39 20 69 73  20 68 61 72 64 2e 22 2c  |sy, 9 is hard.",|
000001a0  37 29 0d 01 18 05 f5 0d  01 22 0a 44 3d a5 2d 34  |7).......".D=.-4|
000001b0  38 0d 01 2c 10 fd 20 44  3e 30 20 80 20 44 3c 31  |8..,.. D>0 . D<1|
000001c0  30 0d 01 36 07 43 3d 30  0d 01 40 0e e3 20 51 3d  |0..6.C=0..@.. Q=|
000001d0  31 20 b8 20 31 30 0d 01  4a 08 f2 63 6c 73 0d 01  |1 . 10..J..cls..|
000001e0  54 0e f2 62 69 67 28 57  24 2c 31 29 0d 01 5e 1f  |T..big(W$,1)..^.|
000001f0  f2 62 69 67 28 22 51 75  65 73 74 69 6f 6e 20 6e  |.big("Question n|
00000200  6f 2e 22 2b c3 28 51 29  2c 34 29 0d 01 68 11 e7  |o."+.(Q),4)..h..|
00000210  20 53 3c 34 20 f2 61 20  8b 20 f2 64 0d 01 72 18  | S<4 .a . .d..r.|
00000220  e8 27 27 27 22 20 59 6f  75 72 20 61 6e 73 77 65  |.'''" Your answe|
00000230  72 20 22 50 0d 01 7c 06  f2 53 0d 01 86 05 ed 0d  |r "P..|..S......|
00000240  01 90 08 f2 63 6c 73 0d  01 9a 05 f7 0d 01 a4 0f  |....cls.........|
00000250  e3 20 5a 3d 30 20 b8 20  43 2b 34 0d 01 ae 08 f3  |. Z=0 . C+4.....|
00000260  20 41 24 0d 01 b8 05 ed  0d 01 c2 0e f2 62 69 67  | A$..........big|
00000270  28 57 24 2c 31 29 0d 01  cc 2c f2 62 69 67 28 22  |(W$,1)...,.big("|
00000280  59 6f 75 20 73 63 6f 72  65 64 20 22 2b c3 28 43  |You scored "+.(C|
00000290  29 2b 22 20 6f 75 74 20  6f 66 20 31 30 2e 22 2c  |)+" out of 10.",|
000002a0  34 29 0d 01 d6 1a f2 62  69 67 28 22 57 68 69 63  |4).....big("Whic|
000002b0  68 20 69 73 20 22 2b 41  24 2c 38 29 0d 01 e0 1a  |h is "+A$,8)....|
000002c0  f2 62 69 67 28 22 50 6c  61 79 20 61 67 61 69 6e  |.big("Play again|
000002d0  3f 22 2c 32 30 29 0d 01  ea 09 f5 20 41 3d a5 0d  |?",20)..... A=..|
000002e0  01 f4 11 fd 20 41 3d 38  39 20 84 20 41 3d 37 38  |.... A=89 . A=78|
000002f0  0d 01 fe 0a fd 20 41 3d  37 38 0d 02 08 08 f1 27  |..... A=78.....'|
00000300  27 27 0d 02 12 05 e0 0d  02 1c 05 20 0d 02 26 08  |''......... ..&.|
00000310  dd 20 f2 61 0d 02 30 0a  f7 20 8d 44 48 43 0d 02  |. .a..0.. .DHC..|
00000320  3a 0c e3 20 4d 3d 31 b8  20 53 0d 02 44 08 f3 20  |:.. M=1. S..D.. |
00000330  41 24 0d 02 4e 05 ed 0d  02 58 0f 41 3d b3 28 31  |A$..N....X.A=.(1|
00000340  30 2a 44 2a 44 29 0d 02  62 0f 42 3d b3 28 31 30  |0*D*D)..b.B=.(10|
00000350  2a 44 2a 44 29 0d 02 6c  54 e7 20 53 3c 34 20 f2  |*D*D)..lT. S<4 .|
00000360  62 69 67 28 22 57 68 61  74 20 69 73 20 22 2b c3  |big("What is "+.|
00000370  28 41 29 2b 41 24 2b c3  28 42 29 2b 22 20 3f 22  |(A)+A$+.(B)+" ?"|
00000380  2c 31 30 29 3a e7 20 53  3d 31 20 41 4e 3d 41 2b  |,10):. S=1 AN=A+|
00000390  42 20 8b 20 e7 20 53 3d  32 20 41 4e 3d 41 2d 42  |B . . S=2 AN=A-B|
000003a0  20 8b 20 41 4e 3d 41 2a  42 0d 02 76 05 e1 0d 02  | . AN=A*B..v....|
000003b0  80 05 20 0d 02 8a 08 dd  20 f2 64 0d 02 94 0f 41  |.. ..... .d....A|
000003c0  3d b3 28 31 30 2a 44 2a  44 29 0d 02 9e 0e 42 3d  |=.(10*D*D)....B=|
000003d0  b3 28 33 2a 44 2a 44 29  0d 02 a8 0a 57 3d b3 28  |.(3*D*D)....W=.(|
000003e0  32 29 0d 02 b2 25 f2 62  69 67 28 c3 28 41 29 2b  |2)...%.big(.(A)+|
000003f0  22 20 64 69 76 69 64 65  64 20 62 79 20 22 2b c3  |" divided by "+.|
00000400  28 42 29 2c 31 30 29 0d  02 bc 6f e7 20 57 3d 31  |(B),10)...o. W=1|
00000410  20 41 4e 3d 41 20 83 20  42 3a f2 62 69 67 28 22  | AN=A . B:.big("|
00000420  57 68 61 74 20 69 73 20  74 68 65 20 72 65 6d 61  |What is the rema|
00000430  69 6e 64 65 72 3f 22 2c  31 33 29 20 8b 20 e7 20  |inder?",13) . . |
00000440  57 3d 32 20 41 4e 3d 41  20 81 20 42 3a f2 62 69  |W=2 AN=A . B:.bi|
00000450  67 28 22 48 6f 77 20 6d  61 6e 79 20 74 69 6d 65  |g("How many time|
00000460  73 20 64 6f 65 73 20 69  74 20 64 69 76 69 64 65  |s does it divide|
00000470  3f 22 2c 31 33 29 0d 02  c6 05 e1 0d 02 d0 05 20  |?",13)......... |
00000480  0d 02 da 08 dd 20 f2 53  0d 02 e4 98 e7 20 41 4e  |..... .S..... AN|
00000490  3d 50 20 f2 62 69 67 28  c3 28 50 29 2b 22 20 69  |=P .big(.(P)+" i|
000004a0  73 20 63 6f 72 72 65 63  74 21 21 22 2c 31 38 29  |s correct!!",18)|
000004b0  3a 43 3d 43 2b 31 3a e3  20 41 25 3d 30 20 b8 20  |:C=C+1:. A%=0 . |
000004c0  32 30 30 20 88 20 32 30  3a d4 20 31 2c 2d 31 35  |200 . 20:. 1,-15|
000004d0  2c 41 25 2c 32 3a ed 20  8b 20 f2 62 69 67 28 22  |,A%,2:. . .big("|
000004e0  57 72 6f 6e 67 21 21 20  54 68 65 20 61 6e 73 77  |Wrong!! The answ|
000004f0  65 72 20 77 61 73 20 22  2b c3 28 41 4e 29 2b 22  |er was "+.(AN)+"|
00000500  2e 22 2c 31 38 29 3a d4  20 30 2c 2d 31 35 2c 34  |.",18):. 0,-15,4|
00000510  2c 31 30 3a d4 20 30 2c  2d 31 35 2c 35 2c 31 30  |,10:. 0,-15,5,10|
00000520  0d 02 ee 1c f2 62 69 67  28 22 53 63 6f 72 65 20  |.....big("Score |
00000530  73 6f 20 66 61 72 3a 22  2c 32 31 29 0d 02 f8 2f  |so far:",21).../|
00000540  f2 62 69 67 28 22 43 6f  72 72 65 63 74 20 3a 22  |.big("Correct :"|
00000550  2b c3 28 43 29 2b 22 20  57 72 6f 6e 67 20 3a 22  |+.(C)+" Wrong :"|
00000560  2b c3 28 51 2d 43 29 2c  32 34 29 0d 03 02 27 f2  |+.(Q-C),24)...'.|
00000570  62 69 67 28 22 50 72 65  73 73 20 73 70 61 63 65  |big("Press space|
00000580  20 74 6f 20 63 6f 6e 74  69 6e 75 65 2e 22 2c 32  | to continue.",2|
00000590  37 29 0d 03 0c 05 f5 0d  03 16 0a fd 20 a5 3d 33  |7).......... .=3|
000005a0  32 0d 03 20 08 f2 63 6c  73 0d 03 2a 05 e1 0d 03  |2.. ..cls..*....|
000005b0  34 05 20 0d 03 3e a7 dc  20 41 64 64 69 74 69 6f  |4. ..>.. Additio|
000005c0  6e 2e 20 20 20 20 20 20  2c 53 75 62 74 72 61 63  |n.      ,Subtrac|
000005d0  74 69 6f 6e 2e 20 20 20  2c 4d 75 6c 74 69 70 6c  |tion.   ,Multipl|
000005e0  69 63 61 74 69 6f 6e 2e  2c 44 69 76 69 73 69 6f  |ication.,Divisio|
000005f0  6e 2e 20 20 20 20 20 20  2c 50 61 74 68 65 74 69  |n.      ,Patheti|
00000600  63 2e 2c 55 73 65 6c 65  73 73 2e 2c 41 77 66 75  |c.,Useless.,Awfu|
00000610  6c 2e 2c 56 65 72 79 20  62 61 64 2e 2c 42 61 64  |l.,Very bad.,Bad|
00000620  2e 2c 52 65 61 73 6f 6e  61 62 6c 65 2e 2c 4f 6b  |.,Reasonable.,Ok|
00000630  61 79 2e 2c 47 6f 6f 64  2e 2c 56 65 72 79 20 47  |ay.,Good.,Very G|
00000640  6f 6f 64 2e 2c 45 78 63  65 6c 6c 65 6e 74 2e 2c  |ood.,Excellent.,|
00000650  42 72 69 6c 6c 69 61 6e  74 21 0d 03 48 21 dc 22  |Brilliant!..H!."|
00000660  20 70 6c 75 73 20 22 2c  22 20 6d 69 6e 75 73 20  | plus "," minus |
00000670  22 2c 22 20 74 69 6d 65  73 20 22 0d 03 52 05 20  |"," times "..R. |
00000680  0d 03 5c 11 dd 20 f2 62  69 67 28 41 24 2c 59 25  |..\.. .big(A$,Y%|
00000690  29 0d 03 66 11 58 25 3d  28 33 39 2d a9 41 24 29  |)..f.X%=(39-.A$)|
000006a0  2f 32 0d 03 70 0e ef 20  33 31 2c 58 25 2c 59 25  |/2..p.. 31,X%,Y%|
000006b0  0d 03 7a 11 e3 20 49 25  3d 31 20 b8 20 a9 20 41  |..z.. I%=1 . . A|
000006c0  24 0d 03 84 15 3f 26 39  30 3d 97 28 c1 41 24 2c  |$....?&90=.(.A$,|
000006d0  49 25 2c 31 29 29 0d 03  8e 09 41 25 3d 31 30 0d  |I%,1))....A%=10.|
000006e0  03 98 0a 58 25 3d 26 39  30 0d 03 a2 08 59 25 3d  |...X%=&90....Y%=|
000006f0  30 0d 03 ac 0b d6 20 26  46 46 46 31 0d 03 b6 0d  |0..... &FFF1....|
00000700  e3 20 4a 25 3d 30 b8 20  31 0d 03 c0 0c ef 20 32  |. J%=0. 1..... 2|
00000710  33 2c 32 35 35 0d 03 ca  0e e3 20 4b 25 3d 32 20  |3,255..... K%=2 |
00000720  b8 20 39 0d 03 d4 16 ef  20 3f 28 26 39 30 2b 34  |. 9..... ?(&90+4|
00000730  2a 4a 25 2b 4b 25 81 32  29 0d 03 de 05 ed 0d 03  |*J%+K%.2).......|
00000740  e8 0e ef 20 32 35 35 2c  31 30 2c 38 0d 03 f2 05  |... 255,10,8....|
00000750  ed 0d 03 fc 0d ef 20 31  31 2c 31 31 2c 39 0d 04  |...... 11,11,9..|
00000760  06 05 ed 0d 04 10 05 e1  0d 04 1a 05 20 0d 04 24  |............ ..$|
00000770  0a dd 20 f2 63 6c 73 0d  04 2e 05 db 0d 04 38 0c  |.. .cls.......8.|
00000780  df 20 30 2c 31 30 32 33  0d 04 42 0f df 20 31 32  |. 0,1023..B.. 12|
00000790  37 38 2c 31 30 32 33 0d  04 4c 0c df 20 31 32 37  |78,1023..L.. 127|
000007a0  38 2c 30 0d 04 56 09 df  20 30 2c 30 0d 04 60 05  |8,0..V.. 0,0..`.|
000007b0  e1 0d ff                                          |...|
000007b3
MATHS1.m0
MATHS1.m1
MATHS1.m2
MATHS1.m4
MATHS1.m5