SC$=" WELCOME TO ANOTHER PROGRAM FROM THE CREATORS OF SUPERQUIZ. AGAIN MANY THANKS GO TO 'MANDARIN/JAWX' FOR AMOS THE "
SC$=SC$+"CREATOR. I HOPE THIS LITTLE MATHS PROGRAM "
SC$=SC$+"MAY HELP YOU TO BRUSH UP ON YOUR MENTAL ARITHMETIC. "
SC$=SC$+"< PLEASE NOTE----WHEN ANSWERING DIVISION SUM's TO MAKE IT EASIER THE PROGRAM WILL ACCEPT THREE FIGURES AFTER THE DECIMAL POINT. JUST TO SAVE YOU GETTING A HEADACHE! -PLEASE DO NOT TRY TO ADD MORE, THANK YOU->"
Repeat
If Mouse Key<>0 Then Cls 0,10,42 To 165,62 : Cls 0,10,68 To 165,87 : Goto ST
T_SCROLL
Until True=False
Procedure T_SCROLL
Shared SC$
Ink 5,0
Text 48,57,"Shieldsoft (c)"
Text 38,81,"Mental brush up!"
SC$=Mid$(SC$,2)+Left$(SC$,1)
Text 0,215,Left$(SC$,100) : Volume Rnd(8) : Play 86,0
For T=1 To 3000
Next T
End Proc
HERE:
Load Iff "Cal 1",0
Set Font 2
Ink 5,0
Text 48,57,"Shieldsoft (c)"
Text 38,81,"Mental brush up!"
ST:
Volume 50
Cls 0,1,200 To 321,250
Global Z,M,E$,D$,F$,E#,D#,F#,NUM,MPRESS,RESULT$,LM$,RM$
Reserve Zone 18
Rem********Main boxes********
'add
Set Zone 1,344,56 To 441,77
'sub
Set Zone 2,344,83 To 441,105
'div
Set Zone 3,344,110 To 441,131
'multi
Set Zone 4,344,137 To 441,158
'quit
Set Zone 5,375,191 To 413,211
'del
Set Zone 6,141,204 To 178,223
'enter
Set Zone 7,235,203 To 292,223
Rem********Numbers***********
'* 1 *
Set Zone 8,142,136 To 167,162
'* 2 *
Set Zone 9,173,136 To 198,162
'* 3 *
Set Zone 10,204,136 To 229,162
'* 4 *
Set Zone 11,235,136 To 260,162
'* 5 *
Set Zone 12,266,136 To 291,162
'* 6 *
Set Zone 13,142,167 To 167,193
'* 7 *
Set Zone 14,173,167 To 197,193
'* 8 *
Set Zone 15,204,167 To 229,193
'* 9 *
Set Zone 16,236,167 To 260,193
'* 0 *
Set Zone 17,267,167 To 291,193
'* . *
Set Zone 18,192,204 To 221,223
Do
MCOOD
If M=1 and Z=1 Then Bell 96 : Goto PLUS
If M=1 and Z=2 Then Bell 96 : Goto SUB
If M=1 and Z=3 Then Bell 96 : Goto DIV
If M=1 and Z=4 Then Bell 96 : Goto MULTI
Loop
Rem*****Addition**************
PLUS:
Set Font 2
Ink 0,30
Cls 30,216,41 To 313,62 : Cls 30,216,68 To 313,89 : Cls 30,216,95 To 313,116
Text 251,55,"Easy"
Text 239,83,"Moderate"
Text 251,110,"Hard"
Goto PLUZ
Rem*****Subtraction************
SUB:
Set Font 2
Ink 0,30
Cls 30,216,14 To 313,35 : Cls 30,216,41 To 313,62 : Cls 30,216,68 To 313,89 : Cls 30,216,95 To 313,116
Text 233,30,"Subtraction"
Text 251,55,"Easy"
Text 239,83,"Moderate"
Text 251,110,"Hard"
Goto SUBB
Rem*****Division***************
DIV:
Set Font 2
Ink 0,30
Cls 30,216,14 To 313,35 : Cls 30,216,41 To 313,62 : Cls 30,216,68 To 313,89 : Cls 30,216,95 To 313,116
Text 245,30,"Division"
Text 251,55,"Easy"
Text 239,83,"Moderate"
Text 251,110,"Hard"
Goto DIVIS
Rem****Multiplication***********
MULTI:
Set Font 2
Ink 0,30
Cls 30,216,14 To 313,35 : Cls 30,216,41 To 313,62 : Cls 30,216,68 To 313,89 : Cls 30,216,95 To 313,116
Text 228,30,"Multiplication"
Text 251,55,"Easy"
Text 239,83,"Moderate"
Text 251,110,"Hard"
Goto MULTTI
Rem****Addition*****
PLUZ:
Cls 0,10,42 To 165,62
Cls 0,10,68 To 165,87
Reset Zone 2
Reset Zone 3
Reset Zone 4
Rem****** Easy ******
Set Zone 2,344,83 To 441,105
Rem**** Advanced *****
Set Zone 3,344,110 To 441,131
Rem****** Hard ******
Set Zone 4,344,137 To 441,158
Rem****** New zones for Addition *********
Do
MCOOD
If M=1 and Z=2 Then Cls 30,217,69 To 311,88 : Cls 30,217,96 To 311,115 : Bell 96 : Goto SIMP
If M=1 and Z=3 Then Cls 30,217,42 To 311,61 : Cls 30,217,96 To 311,115 : Bell 96 : Goto MEDE
If M=1 and Z=4 Then Cls 30,217,42 To 311,61 : Cls 30,217,69 To 311,88 : Bell 96 : Goto HLP
Loop
Rem*********Addition Easy *************
SIMP:
Ink 5,0
Pen 5 : Paper 0
BIN:
A=Rnd(10) : B=Rnd(9)
If A<1 Then Goto BIN
If B<1 Then Goto BIN
LM$=Right$("0"+Mid$(Str$(A),1),2)
RM$=Right$("0"+Mid$(Str$(B),1),2)
Text 40,58,"What is "+LM$+" + "+RM$
AGAIN:
MPRESS=10
RESULT$=""
Do
MCOOD
If M=1 and Z=5 Then Bell 96 : Goto HERE
If M=1 and Z=8 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"1"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"1" : M=0 : Z=0
End If
If M=1 and Z=9 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"2"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"2" : M=0 : Z=0
End If
If M=1 and Z=10 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"3"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"3" : M=0 : Z=0
End If
If M=1 and Z=11 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"4"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"4" : M=0 : Z=0
End If
If M=1 and Z=12 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"5"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"5" : M=0 : Z=0
End If
If M=1 and Z=13 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"6"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"6" : M=0 : Z=0
End If
If M=1 and Z=14 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"7"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"7" : M=0 : Z=0
End If
If M=1 and Z=15 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"8"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"8" : M=0 : Z=0
End If
If M=1 and Z=16 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"9"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"9" : M=0 : Z=0
End If
If M=1 and Z=17 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"0"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"0" : M=0 : Z=0
End If
If M=1 and Z=6 : Boom
Text X Graphic(MPRESS)-9,Y Graphic(10),""
Wait 10 : Cls 0,10,68 To 165,87 : M=0 : Z=0 : Goto AGAIN
End If
If M=1 and Z=7 Then Bell 96 : Goto ENT
Loop
ENT:
If A+B=Val(RESULT$) Then Cls 0,10,68 To 165,87 : Text 67,82,"correct" : Wait 75 : Cls 0,10,42 To 165,62 : Cls 0,10,68 To 165,87 : Goto SIMP
If A+B<>Val(RESULT$) Then Cls 0,10,68 To 165,87 : Text 64,82,"incorrect" : Wait 75 : Cls 0,10,42 To 165,62 : Cls 0,10,68 To 165,87 : Goto SIMP
Goto AGAIN
Rem***Addition Moderate *****
MEDE:
Ink 5,0
Pen 5 : Paper 0
BINIT:
A=Rnd(25) : B=Rnd(40)
If A<5 Then Goto BINIT
If B<10 Then Goto BINIT
LM$=Right$("00"+Mid$(Str$(A),1),2)
RM$=Right$("00"+Mid$(Str$(B),1),2)
Text 37,58,"What is "+LM$+" + "+RM$
ANOTHER:
MPRESS=10
RESULT$=""
Do
MCOOD
If M=1 and Z=5 Then Bell 96 : Goto HERE
If M=1 and Z=8 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"1"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"1" : M=0 : Z=0
End If
If M=1 and Z=9 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"2"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"2" : M=0 : Z=0
End If
If M=1 and Z=10 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"3"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"3" : M=0 : Z=0
End If
If M=1 and Z=11 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"4"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"4" : M=0 : Z=0
End If
If M=1 and Z=12 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"5"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"5" : M=0 : Z=0
End If
If M=1 and Z=13 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"6"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"6" : M=0 : Z=0
End If
If M=1 and Z=14 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"7"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"7" : M=0 : Z=0
End If
If M=1 and Z=15 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"8"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"8" : M=0 : Z=0
End If
If M=1 and Z=16 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"9"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"9" : M=0 : Z=0
End If
If M=1 and Z=17 : Shoot
Text X Graphic(MPRESS),Y Graphic(10),"0"
Wait 10 : Inc MPRESS
RESULT$=RESULT$+"0" : M=0 : Z=0
End If
If M=1 and Z=6 : Boom
Text X Graphic(MPRESS)-9,Y Graphic(10),""
Wait 10 : Cls 0,10,68 To 165,87 : M=0 : Z=0 : Goto ANOTHER
End If
If M=1 and Z=7 Then Bell 96 : Goto EWT
Loop
EWT:
If A+B=Val(RESULT$) Then Cls 0,10,68 To 165,87 : Text 67,82,"correct" : Wait 75 : Cls 0,10,42 To 165,62 : Cls 0,10,68 To 165,87 : Goto MEDE
If A+B<>Val(RESULT$) Then Cls 0,10,68 To 165,87 : Text 64,82,"incorrect" : Wait 75 : Cls 0,10,42 To 165,62 : Cls 0,10,68 To 165,87 : Goto MEDE