home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpmug
/
cpmug037.ark
/
WHOLE.BAS
< prev
next >
Wrap
BASIC Source File
|
1984-04-29
|
2KB
|
91 lines
%INCLUDE HEADER
REM *******************WHOLE*************************
REM SIMPLE EQUATIONS WITH WHOLE NUMBERS
DRILL.NAME$="Simple Equations with While Numbers"
PRINT
B=3
DEF FNT(X) = X - INT(X/100)*100 + INT(X/100) * 60
P=9
D=4
PRINT
PRINT "OK, ";N$;". Let's practice finding some missing numbers"
PRINT "in some simple equations white are composed of whole numbers."
PRINT "I'll give you a problem, you give me the answer, and I'll"
PRINT "check to see if your answer is correct."
PRINT
C=0
N=0
I=0
240 GOSUB 650
GOSUB 960
IF A$ <> "C" THEN 300
C=C + 1
I = I + 1
GOTO 380
300 I = 0
PRINT " TRY AGAIN."
GOSUB 960
IF A$ = "C" THEN GOTO 380
PRINT " TRY ONE MORE TIME."
GOSUB 960
IF A$="C" THEN GOTO 380
PRINT " THE ANSWER IS ";A
380 IF I > P * C/N THEN 1000.2
IF N < 7 THEN GOTO 240
IF C/N >= .7 THEN GOTO 240
IF D = 1 THEN GOTO 240
D = D - 1
IF C/N >= .5 THEN GOTO 240
D = 1
GOTO 240
PRINT
IF C <> N THEN GOTO 1000.2
D = D + 1
650 PRINT
N = N + 1
670 R = FNR(4)
R3 = FNR(2)
R1 = FNR(10^((D + 2)/3))
A = FNR(10^((D + 2)/3))
IF R < 3 THEN GOTO 840
IF R = 4 THEN GOTO 780
IF R3 = 2 THEN GOTO 760
PRINT " ",R1;"* ? =";R1 * A;
GOTO 950
760 PRINT " ","? *";R1;"=";R1 * A;
GOTO 950
780 IF R3=2 THEN 810
PRINT " ",R1*A;"/ ? =";R1;
GOTO 950
810 PRINT " ","? /";R1;"=";A;
A=R1 * A
GOTO 950
840 IF R = 2 THEN GOTO 900
IF R3 = 2 THEN GOTO 880
PRINT " ",R1;"+ ? =";R1 + A;
GOTO 950
880 PRINT " ","? +";R1;"=";R1 + A;
GOTO 950
900 IF R3 = 2 THEN 930
PRINT " ",R1+A;"- ? =";R1;
GOTO 950
930 PRINT " ","? -";R1;"=";A;
A = R1 + A
950 RETURN
960 PRINT " WHAT IS";
INPUT X$
RANDOMIZE
IF X$="QUIT" THEN GOTO 1000.2
X=VAL(X$)
IF X <> A THEN GOTO 1010
A$ = "C"
RETURN
1010 PRINT "NOT CORRECT. ";
I=0
A$ = "I"
RETURN
%INCLUDE GRADE
END