home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
COMPUSCI
/
PCCAI210.ZIP
/
DEMO.CAI
< prev
next >
Wrap
Text File
|
1993-12-06
|
17KB
|
689 lines
.rem
.rem -----------------PRESS CTRL-G (Go) TO RUN THIS PROGRAM---------
.rem
@OPTION ESCAPE:THATSALL
@MON(*12:ISVGA*)
@GOTO:ISNOTVGA
@LABEL:ISVGA
.screen 12
@SHELL(*caipcx cailogo.pcx 7,0,0*)
.wait 2
.locate 25,1
@LABEL:ISNOTVGA
.screen 0
.color 15,1
.cls
PC-CAI 2.10
(C)Copyright Alan C. Elliott, 1986-93
Portions (C) Microsoft Corporation 1982-87
.col 12,1
.cen(* WELCOME TO THE PC-CAI DEMO! *)
.col 7,1
This demo will use the CGA graphics capabilities of your computer. If you are
currently using an IBM monochrome monitor without graphics capabilities, some
of the graphic images will not appear in the demo.
This software is distributed under the user supported concept, and you may
copy or give it away only under the conditions outlined in the manual.
Thanks for your interest and support.
To end the demo at any time, press the Esc key.
.voice(*PCCAI*)
.locate 25,1
.pause
.screen 1
.CIR CENTER=(160, 265) radius=300 color=2
.CIR CENTER=(160, 300) radius=300 color=2
.PAINT CENTER=(170, 20) color=2 bound=2
.CIR CENTER=(150, 6) radius=5
.CIR CENTER=(160, 6) radius=5
.CIR CENTER=(170, 6) radius=5
.PSET 30, 44
.DRAW (*c1u20f7g7*)
.PAINT CENTER=(32, 28) color=1 bound=1
.PSET 230, 24
.DRAW (*c1u20f7g7*)
.PAINT CENTER=(232, 8) color=1 bound=1
.PSET 300, 44
.DRAW (*c1u20f7g7*)
.PAINT CENTER=(302, 28) color=1 bound=1
.PSET 90, 24)
.DRAW (*c1u20f7g7*)
.PAINT CENTER=(92, 8) color=1 bound=1
.locate 21,1
Here comes something new . . .
.LOAD RUNNER1,RUNNER2,RUNNER3,RUNNER4
.ANIMATE (1,100)-(250,100) STEPX=4 STEPY=0 PAUSE=1
.voice(*onesmall*)
.screen 0
.color 15,1
.CLS
I N T R O D U C I N G ...
█████ █████ █████ ███ ███
█ █ █ █ █ █ █
█ █ █ █ █ █ █
█ █ █ ████ █ █ █ █
█████ █ █ █████ █
█ █ █ █ █ █
█ █████ █████ █ █ ███
PC-CAI is a Personal Computer - Computer Aided Instruction language. It is
a language specifically designed to implement the personal computer as a
tutor.
.color 15,1
.locate 24,1
.pause (*Please press ENTER to continue*)
.screen 1
.cls
.pset 1,100
.draw (*C2r320*)
.circle center=(160,100) radius=50 color=2 start=0 stop=3.14
.paint center=(160,98) color=2 bound=2
.PSET 250,150
.DRAW (*e3u30h4e2h7e4h3r2f3g4f7g2f4r6*)
.DRAW (*h4e2h7e4h3r2f3g4f7g2f4*)
.DRAW (*e4h7e4h3r2f3g4f7g4d30f3*)
.CIRCLE CENTER=(256,100) RADIUS=30 COLOR=1
.CIRCLE CENTER=(245,102) RADIUS=6 COLOR=1
.CIRCLE CENTER=(265,107) RADIUS=11 COLOR=1
.CIRCLE CENTER=(256,97) RADIUS=5 COLOR=1
.CIRCLE CENTER=(256,92) RADIUS=7 COLOR=1
.CIRCLE CENTER=(245,90) RADIUS=9 COLOR=1
.PSET 160,100
.DRAW (*c2u90*)
.PSET 160,100
.DRAW (*c2e90*)
.PSET 160,100
.DRAW (*c2h90*)
.PSET 10,160
.DRAW (*C3R310*)
.PSET 1,180
.DRAW (*C3R310*)
.PSET 20,160
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.DRAW (*g20r20e10l20r20e10*)
.pallette 0
.pallette 1
.pallette 0
.pallette 1
.pallette 0
.pallette 1
.pallette 0
.PSET 50,160
.DRAW (*c1e10r1g10h8r1f7u5*)
.PSET 200,180
.DRAW (*c1e10r1g10h8r1f7u5*)
.PSET 250,152
.DRAW (*c1e10r1g10h8r1f7u5*)
.get beetle.img
.play (*mfo3l16ap4a*)
.move (20,155)-(100,155) steps=50
.play (*mfo3l16ap4a*)
.put 100,155
.move (100,155)-(250,155) steps=50
.play (*mfo3l16ap4ap4a*)
.put 250,155
.locate 1,1
.center (*The Dawn of a New Day*)
.center (*in Computer Aided Instruction!*)
.locate 24,1
.pause (*Please press ENTER to continue*)
.rem skip this part if not VGA
@MON(*12:VGA*)
@GOTO:NONVGA
@LABEL:VGA
.screen 0
.color 15,1
.cls
.color 3
.cls
PC-CAI allows the computer to act as a teacher and tester. Instruction, such
as what you are reading now, may be displayed on the screen. The learner
reads the instructions at his or her own pace. Special effects may be added:
.COLOR 19
Color changes, and blinking text.
.color normal
.pause (*Press the ENTER key to hear some music . . .*)
.play (*mft200o2l8dggggg4.a8bbbbb4.o3l8d4dedo2bgabbaag4*)
.locate 20,30
.color reverse
LOOK! YOU HAVE COMPLETE CONTROL OVER THE TEXT
.COLOR 3
.locate 10,1
With locator instructions, notices may be placed anywhere on the screen.
Look for the LOOK! placed on the screen below this text.
.cen (*Or CENTER TEXT on the screen*)
After instruction is given, questions may be asked to reinforce the learning.
All of this is performed with an easy to use set of instructions created
specifically for this purpose.
.locate 25,1
.pause (*Please press ENTER to continue*)
.cls
Now let's see what you have learned...
@BEGIN QUESTION
.col 10
ANSWER THIS QUESTION
.col 3
@read (*What is the name of this language? *)
@try 3
@right (*PC-CAI*) nocase
.color 10
THAT'S EXACTLY CORRECT!
With PC-CAI, you can check for answers where case may or may not be
important. Also, you can check for exact answers, or answer that "sound"
right. You'll see what I mean later...
.play (*mft200l16o2cccdddeeefffgggaaabbbo3ccc*)
.locate 24,1
.pau
@wrong
.col 12
Oops, try a little harder...
I'm looking for the name of the Personal Computer-Computer Assisted
Instruction language. (Hint:PC-CAI)
With PC-CAI you can specify expected responses to questions, and use the
answer to cause the program to branch to other parts of the tutorial.
.Play (*mfp2p2p2*)
@WRONG FINAL
.col 12
The answer is PC-CAI.
.locate 24,1
.pause
@end question
.col 11
.cls
.color 15,4
.blank 2
.color 0,15
.blank 2
.color 15,4
.blank 2
.color 0,15
.blank 2
.color 15,4
.blank 2
.color 0,15
.blank 2
.color 15,4
.blank 2
.color 0,15
.blank 2
.color 15,4
.blank 2
.color 0,15
.blank 2
.color 15,4
.blank 2
.color 15,1
.locate 1,1 (* * * * * * * * * * * *)
.locate 2,1 (* *)
.locate 3,1 (* * * * * * * * * * * *)
.locate 4,1 (* *)
.locate 5,1 (* * * * * * * * * * * *)
.locate 6,1 (* *)
.locate 7,1 (* * * * * * * * * * * *)
.locate 8,1 (* *)
.locate 9,1 (* * * * * * * * * * * *)
.locate 10,1 (* *)
.locate 12,1
.CENTER (*ARE YOU GOOD AT AMERICAN HISTORY?*)
.skip 1
.COLOR 9
.CENTER (*HERE'S YOUR CHANCE TO SHOW*)
.skip 1
.COLOR 12
.CENTER (*YOUR TRUE COLORS*)
.PLAY (*T180O2L8GEC4E4G4O3C2*)
.locate 24,1
.pause
.cls
@begin question
.col 3
@read (*Who was the first president of the USA ?*)
@trys 3
@right (*washington*) keyword
.col 10
George Washington is correct!
.PLAY (*T255O1CDEFGABO2C*)
.play (*mfp1p1*)
@wrong (*lincoln*) keyword
.color 12
Lincoln was president during the Civil War
@wrong (*jefferson*)
.col 12
Thomas Jefferson was an early president, and he was the author of
the Declaration of Independence.
@wrong
.color 25
HINT:
.color 11
The capitol of the United States was named after him.
.PAUSE (*Press ENTER to continue.*)
@wrong final
.col 3
The answer is GEORGE WASHINGTON.
@end question
.locate 24,1
.pau(*Please press ENTER*)
.screen 1
.cls
.pcx testpcx.pcx 0,0
.locate 1,1
.CEN(* DISPLAY PCX PAINTBRUSH TYPE GRAPHICS *)
.locate 25,1 (* *)
.locate 25,1
.pause (* Press Enter*)
.locate 25,1 (* *)
.locate 1,1
.cen (* COMBINE PCX GRAPHICS AND PC-CAI IMAGES *)
.LOAD RUNNER1,RUNNER2,RUNNER3,RUNNER4
.ANIMATE (30,10