home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / educ / pc_cai.zip / CAI.DOC < prev    next >
Text File  |  1989-01-06  |  98KB  |  2,423 lines

  1.  
  2.  
  3.           
  4.           
  5.           
  6.           
  7.           
  8.           
  9.           
  10.                                    PC-CAI 1.0
  11.           
  12.                      (c)Copyright Alan C. Elliott, 1984-1989
  13.           
  14.           
  15.           
  16.                                     TexaSoft
  17.                                   P.O. Box 1169
  18.                             Cedar Hill, Texas  75104
  19.                                  (214)-291-2115
  20.           
  21.                             Version 1.0, January 1989
  22.           
  23.           
  24.                                All Rights Reserved
  25.           
  26.           
  27.           The PC-CAI distribution diskette, containing a copy of this 
  28.           manual, may be freely copied and shared, but printed copies 
  29.           of this manual may not be copied in any way without written 
  30.           permission from the author. All files on diskettes must 
  31.           remain unaltered. Thank You. A registration fee of $35 is 
  32.           requested if this program is useful to you, and if you would 
  33.           like to encourage future enhancements. See Appendix on use 
  34.           of the PC-CAI runtime module for commercial distribution. 
  35.           
  36.           
  37.           No patent liability is assumed with respect to the use of 
  38.           the information contained herein. While every precaution has 
  39.           been taken in the preparation of this publication, the 
  40.           publisher assumed no responsibility for errors or omissions. 
  41.           Neither is any liability assumed for damages resulting from 
  42.           the use of the information herein. 
  43.           
  44.           Since this is a first version of the program, there may be 
  45.           bugs discovered. If you find problems, please notify us with 
  46.           the bug report form. All persons registering will receive 
  47.           the newest copy of the program, with known bugs corrected. 
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.           __________________________________________________________
  58.             Please become a registered PC-CAI user -- see order form
  59.                                         1
  60.  
  61.  
  62.           
  63.           PC-CAI 1.0
  64.           __________________________________________________________
  65.           
  66.                           ORDER FORM/REGISTRATION FORM
  67.   
  68.        PC-CAI, Computer Aided Instruction language        $___________
  69.        for the IBM PC  $35. Latest version.
  70.                                                                         
  71.        KWIKSTAT, statistical analysis program & graphics  $___________
  72.        (t-test, ANOVA, regression, and more) $35
  73.                                                                         
  74.        Sub-Total                                          $___________
  75.                                                                         
  76.        Texas Residents add 7% Tax                         $___________
  77.                                                                         
  78.                                                                         
  79.        Postage & Handling                                 $  4.00
  80.        Rush, P.O. or COD add additional $4
  81.        Overseas, add additional $6                        $___________
  82.                                                                         
  83.                                                                          
  84.        TOTAL ENCLOSED                                     $
  85.                                                            ============
  86.        Payment method:check one
  87.        _____ Check or M.O.   _____ VISA   _____ Master Card
  88.        ------------------------------------------------------------
  89.        IF CREDIT CARD:
  90.                                                                          
  91.        Name on Card:_____________________________________________
  92.                                                                          
  93.        Type Card is __________________  Exp Date is:_____________
  94.                                                                          
  95.        Card Number is:___________________________________________
  96.                                                                          
  97.        Authorized Signature:_____________________________________
  98.        -----------------------------------------------------------
  99.                                                                          
  100.        Mail order to:____________________________________________
  101.                                                                          
  102.        Address:__________________________________________________
  103.                                                                          
  104.        City:___________________ St_______ ZIP ___________________
  105.                                                                          
  106.        Phone (    )______________________________________________
  107.        -----------------------------------------------------------
  108.        Please mail to:TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104.
  109.        Thanks. Phone orders call 214-291-2115. Have MC or VISA ready.
  110.                                    MAIL TODAY!
  111.  
  112.  
  113.  
  114.  
  115.  
  116.           __________________________________________________________
  117.             Please become a registered PC-CAI user -- see order form
  118.                                         2
  119.  
  120.  
  121.           
  122.           PC-CAI 1.0
  123.           __________________________________________________________
  124.           
  125.                  
  126.                  
  127.                  
  128.                  
  129.                  
  130.                  
  131.                                         CONTENTS
  132.                  
  133.                  Getting Started...........................4
  134.                  Requirements to run.......................4
  135.                  What is PC-CAI............................4
  136.                  Setup defaults............................5
  137.                  PC-CAI Tutorials on disk..................6
  138.                  How to use the Editor.....................7
  139.                      Editor Function Keys..................8
  140.                      Editor Control Commands...............9
  141.                      Editor Tutorials.....................11
  142.                  The PC-CAI Program.......................18
  143.                  "AT" (@) commands........................20
  144.                  "DOT" (.) commands.......................27
  145.                  Example tutorials........................32
  146.                  Graphics commands........................35
  147.                  
  148.                  
  149.                  Appendices
  150.                  -----------
  151.                  Ballot for new features..................41
  152.                  Bug Report...............................42
  153.                  Error codes..............................43
  154.                  Distributing PC-CAI program..............44
  155.                  Registration/Order Form..................45
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.           __________________________________________________________
  176.             Please become a registered PC-CAI user -- see order form
  177.                                         3
  178.  
  179.  
  180.           
  181.           PC-CAI 1.0
  182.           __________________________________________________________
  183.           
  184.           ----------------------------------------------------------
  185.                            GETTING STARTED WITH PC-CAI
  186.           ----------------------------------------------------------
  187.           
  188.           PC-CAI may be used on floppy disks or hard disk. This manual 
  189.           will assume that you are using it on a hard disk, and will 
  190.           often use the "C>" prompt. If you are using PC-CAI on a 
  191.           floppy system think "A>" when you see "C>". 
  192.           
  193.           To load PC-CAI on the hard disk create a CAI subdirectory: 
  194.           
  195.           C>MD \CAI 
  196.           
  197.           then switch to that directory 
  198.           
  199.           C>CD \CAI 
  200.           
  201.           Copy all files from the PC-CAI diskette (in disk A) 
  202.           
  203.           C>COPY A:*.* 
  204.           
  205.           MAKE SURE the printer is on, the paper is set at top of 
  206.           form, and you have plenty of paper (about 40 pages). TO 
  207.           PRINT THE PC-CAI MANUAL, use the command: 
  208.           
  209.           A>COPY CAI.DOC LPT1: 
  210.           
  211.           ---------------------------------------------------------- 
  212.                          REQUIREMENTS TO RUN PC-CAI 1.0
  213.           ---------------------------------------------------------- 
  214.           
  215.           1. An IBM PC, XT, AT or compatible computer.
  216.           2. DOS 2.0 or higher.
  217.           3. At least 320K of memory.
  218.           4. Any monitor, hard disk or floppy. NOTE:Color graphics
  219.           monitors are preferred, and the DEMO program assumes you
  220.           have a graphics monitor.  Hercules graphics are not
  221.           supported at this time, however, text programs can be run on
  222.           a Hercules type monitor.
  223.           
  224.           
  225.           ----------------------------------------------------------
  226.                                  WHAT IS PC-CAI?
  227.           ----------------------------------------------------------
  228.           
  229.           PC-CAI is a computer language specifically designed to allow
  230.           you to create computer driven tutorials, tests, and demos.
  231.           
  232.  
  233.  
  234.           __________________________________________________________
  235.             Please become a registered PC-CAI user -- see order form
  236.                                         4
  237.  
  238.  
  239.           
  240.           PC-CAI 1.0
  241.           __________________________________________________________
  242.           
  243.           WHERE PC-CAI FITS IN
  244.           
  245.           PC-CAI is a CAI (Computer Assisted Instruction) language
  246.           based on the C.A.L.L. (Computer Assisted Learning Language)
  247.           command set. It which works much like a word processor. You
  248.           enter your information into a word processing like editor,
  249.           along with some simple commands and the language does the
  250.           rest.
  251.           
  252.           THE PC-CAI LANGUAGE (RUN MODULE)
  253.           
  254.           The central module of the system is CAI.EXE. This is the
  255.           program which "runs" the tutorials. It also contains an
  256.           editor that may be used to create the tutorials. Actually,
  257.           any editor or word processor that creates standard ASCII
  258.           files may be used.
  259.           
  260.           THE UTILITIES PROGRAM, CAI-UTIL
  261.           
  262.           This program allows you to "initialize" certain modules,
  263.           selecting storage disks, editor specifications, and color.
  264.           It contains the IMAGE module, which allows you to create
  265.           pictures that may be used in the tutorial.
  266.           
  267.           SUGGESTED LEARNING SCHEME
  268.           
  269.           1) First, go through the PC-CAI tutorials provided on disk.
  270.           2) Learn to use the EDITOR.
  271.           3) Learn to use the "dot" commands as described in the
  272.           COMMANDS section. (Study the tutorials on disk)
  273.           4) Learn the "@" AT commands.
  274.           5) Learn to integrate images into your tutorial.
  275.           
  276.           
  277.           ------------------------------------------------------
  278.                        SETUP DEFAULT PARAMETERS FOR PC-CAI
  279.           ------------------------------------------------------
  280.           
  281.           Run the utilities program to set up program defaults. Enter
  282.           the command
  283.           
  284.           C>CAI-UTIL
  285.           
  286.           SET UP DEFAULTS FOR CAI
  287.           
  288.           First, choose to set up defaults for the editor program.
  289.           You will be asked for the name of the disk drive where the
  290.           programs will reside. The normal default values will be in
  291.           parentheses, and you may simply press enter to accept
  292.           these values. Normally, you will use these values for hard
  293.           __________________________________________________________
  294.             Please become a registered PC-CAI user -- see order form
  295.                                         5
  296.  
  297.  
  298.           
  299.           PC-CAI 1.0
  300.           __________________________________________________________
  301.           
  302.           disk operation:
  303.           
  304.           DISK DRIVE : C
  305.           SCREEN WIDTH : 79
  306.           TAB SETTINGS : 5;10;20;30;40;50
  307.           
  308.           Notice that when you are asked for tab settings, you must
  309.           place a semicolon (;) between each number, and the numbers
  310.           must be in ascending numerical order.
  311.           
  312.           Finally, you will be asked for color settings. Choose
  313.           those you like. You may change ANY of these settings at
  314.           any time.
  315.           
  316.           ------------------------------------------------------
  317.                             PC-CAI TUTORIALS ON DISK
  318.           ------------------------------------------------------
  319.                                                                        
  320.           Begin the PC-CAI DEMO with the command:
  321.           
  322.           C>CAI DEMO
  323.                                                                        
  324.           This program will demonstrate some of the things you can
  325.           do in PC-CAI.  There is also a tutorial named CREATE that
  326.           explains the CREATE program.
  327.           
  328.           
  329.           
  330.           
  331.           ------------------------------------------------------
  332.                                 THE PC-CAI EDITOR
  333.           ------------------------------------------------------
  334.           
  335.           The PC-CAI Editor (A version of Alan's Edit or AE for short)
  336.           is a standard ASCII text editor. This means that it creates
  337.           standard text files. You can use any ASCII text editor to
  338.           write PC-CAI programs, but AE allows you to easily go back
  339.           and forth from the editor to the run module for program
  340.           creation and editing. The editor is a built in part of
  341.           CAI.EXE.  To begin PC-CAI in editor mode, enter
  342.           
  343.           C>CAI
  344.           
  345.           Examine the screen. The phrase: "F7 is HELP" is at the upper
  346.           left. Directly underneath the "F" in F7 notice the blinking
  347.           cursor. This cursor indicates the location at which text can
  348.           be entered. The number 1,1 appears next to the HELP,
  349.           indicating the position of the cursor, line 1, column 1.
  350.           Also notice the message "CTRL-G to begin program". Once you
  351.           have a CAI program in the editor, you cen begin it
  352.           __________________________________________________________
  353.             Please become a registered PC-CAI user -- see order form
  354.                                         6
  355.  
  356.  
  357.           
  358.           PC-CAI 1.0
  359.           __________________________________________________________
  360.           
  361.           immediately by entering CTRL-G.
  362.           
  363.           A vertical mark at the top of the screen indicates the
  364.           screen line length. This line length is usually initially
  365.           set at 79 columns. You may enter text onto this blank screen
  366.           in much the same way as you would with a typewriter.
  367.           
  368.                          NUMERIC/CURSOR KEYPAD COMMANDS
  369.           
  370.           The keypad is located on the right side of the IBM PC 
  371.           keyboard. During the operation of AE, the keypad is in 
  372.           "cursor mode". If a number is to be entered, use the keys on 
  373.           the top row of the keyboard. 
  374.           
  375.           
  376.           Home - Put cursor in the upper left hand corner. 
  377.                  
  378.           Arrow Keys (right, left, up, down) - Moves the cursor. 
  379.                  
  380.           End - Moves the cursor to the end of the current line. 
  381.                  
  382.           PgUp (Page Up) - Moves 11 lines up. 
  383.                  
  384.           PgDn (Page Down) - Moves 11 lines down. 
  385.                  
  386.           Del - Deletes one character. 
  387.                  
  388.           Ins - Turns on insert mode. Characters typed in will be 
  389.                  entered directly preceding the cursor location. 
  390.                  Pressing the "Ins" key again or pressing the ENTER 
  391.                  key will turn off insert mode. 
  392.                  
  393.           Tab -->| - Moves the cursor to the next tab position. 
  394.                  Pressing CTRL-K several times will eventually display 
  395.                  these tab settings. Temporary tabs are set with 
  396.                  CTRL-T command. 
  397.                  
  398.           Esc - End: End the editor WITHOUT saving file. 
  399.                  
  400.           ----------------------------------------------------------
  401.                                   FUNCTION KEYS
  402.           ----------------------------------------------------------
  403.           
  404.           F1 - Save: Save file to disk. 
  405.                
  406.           F2 - Get: Get a file, or append to current file. 
  407.                
  408.           F3 - Top: Moves to top of current workspace. 
  409.                
  410.           F4 - Bottom: Cursor moves to the last line of the workspace. 
  411.           __________________________________________________________
  412.             Please become a registered PC-CAI user -- see order form
  413.                                         7
  414.  
  415.  
  416.           
  417.           PC-CAI 1.0
  418.           __________________________________________________________
  419.           
  420.                
  421.           F5 - Delete: Deletes lines, 0 to 999. 
  422.                
  423.           F6 - Insert: Inserts 1 to 10 blank line(s) above the cursor. 
  424.                
  425.           F7 - Help: HELP screens, delete files, directory. 
  426.                
  427.           F8 - Clear: Clears current workspace. Copy info in buffer is 
  428.                retained. 
  429.                
  430.           F9 - Mark: Mark text for copy. Move cursor to the upper left 
  431.                corner of the rectangular block to be copied, press F9. 
  432.                Move the cursor to the last line of the text to be 
  433.                copied, and then move it to the right at least as far 
  434.                as the length of the longest line to be copied. The 
  435.                copy block will be highlighted. Note:Copy block is 
  436.                retained when F8 is given. This provides a method of 
  437.                transferring blocks of text from one file to another. 
  438.                Marks must be made on ONE screen. The maximum size of a 
  439.                copy buffer is one screen (22 lines). 
  440.                
  441.           F10- Copy: Copy a marked block. Move cursor to the position 
  442.                where you wish to insert the text previously marked 
  443.                using the F9 command. Press F10. This will insert the 
  444.                text in the desired position by first inserting enough 
  445.                blank lines for it to fit. A copy which does not insert 
  446.                before copying is CTRL C, explained later. 
  447.                
  448.                
  449.                
  450.                
  451.           ---------------------------------------------------------- 
  452.                              CONTROL COMMANDS (CTRL) 
  453.           ---------------------------------------------------------- 
  454.           
  455.           Control commands are issued by holding the CTRL down, and 
  456.           then simultaneously pressing a single command key. 
  457.           
  458.           CTRL A - Capitalizes letters 
  459.                    
  460.           CTRL C - Is similar to F10. Instead of first inserting blank 
  461.                    lines before making a copy, CTRL C will place the 
  462.                    copied text in the position specified by the 
  463.                    cursor, directly over any text that may happen to 
  464.                    exist there. 
  465.                    
  466.           CTRL D - Deletes characters to the right of cursor. 
  467.                    
  468.           CTRL F - Fills text from the current line to next blank 
  469.                    line, dot "." command or "@" command. 
  470.           __________________________________________________________
  471.             Please become a registered PC-CAI user -- see order form
  472.                                         8
  473.  
  474.  
  475.           
  476.           PC-CAI 1.0
  477.           __________________________________________________________
  478.           
  479.                    
  480.           CTRL G - Begins the CAI program in memory. 
  481.                    
  482.           CTRL J - Justifies that line to the right margin. 
  483.                    
  484.           CTRL K - Changes the line help at bottom of screen. 
  485.                    Successively pressing CTRL K will display the 
  486.                    function key commands, CTRL commands, and tab 
  487.                    settings. 
  488.                    
  489.           CTRL L - Reset the line length specifications. 
  490.                    
  491.           CTRL P - Places text in center of screen. 
  492.                    
  493.           CTRL R -  Replace text. After pressing CTRL R, you will be 
  494.                    prompted to enter "Old/New:". Enter the string of 
  495.                    characters to be replaced , followed by a "/", and 
  496.                    the new string of characters. For example, 
  497.                    responding to the request with wrong/right would 
  498.                    result in the replacement of the word "wrong" with 
  499.                    "right". Each "wrong" will be highlighted on the 
  500.                    screen, and you will be able to replace, skip, end 
  501.                    the replace procedure, or select the replacement of 
  502.                    all further occurrences of "wrong" with "right" 
  503.                    without any more prompting. After checking the 
  504.                    first screen for matches, you will be prompted to 
  505.                    indicate if you want the replace to continue. Enter 
  506.                    Y or N. 
  507.                    
  508.           CTRL S - Search for a specified text. Each time this text is 
  509.                    matched, it will be highlighted. Search is 
  510.                    conducted from the beginning of the document to the 
  511.                    end. 
  512.                    
  513.           CTRL T - Reset the tab settings. Enter tabs from smallest to 
  514.                    largest, separated by semicolons. 
  515.                    
  516.           CTRL W - Deletes to the next blank (word delete). 
  517.                    
  518.           CTRL X - Splits line at position of the cursor. This should 
  519.                    be used for inserts of more than several 
  520.                    characters. 
  521.                    
  522.           CTRL Y - Delete a line. 
  523.                    
  524.           CTRL Z - Makes letters lower case. 
  525.                    
  526.  
  527.  
  528.  
  529.           __________________________________________________________
  530.             Please become a registered PC-CAI user -- see order form
  531.                                         9
  532.  
  533.  
  534.           
  535.           PC-CAI 1.0
  536.           __________________________________________________________
  537.           
  538.                                  Text Scrolling
  539.           
  540.           AE displays 22 lines of text at a time. The PgUp and PgDn 
  541.           keys allow you to page up and down a document. AE was 
  542.           designed to be able to have a document of about 64000 
  543.           characters in memory at one time. If your tutorial becomes 
  544.           too long, you will have to make use of the "USE" command, as 
  545.           explained later, to bring in information from other files. 
  546.           
  547.                             BE CAUTIOUS . . . PLEASE!
  548.           
  549.           Text is stored in memory until the F1 "Save" command is 
  550.           issued. A power failure or error could cause you to lose 
  551.           this information. Issue the F1 "Save" command periodically 
  552.           (ie every 15 minutes or so) to protect your work. 
  553.           
  554.           ---------------------------------------------------------- 
  555.                                 TUTORIAL LESSONS 
  556.           ---------------------------------------------------------- 
  557.           
  558.                                     LESSON 1
  559.           
  560.           Enter the PC-CAI editor with the command: 
  561.           
  562.           C>CAI 
  563.           
  564.           Enter the follow text, exactly as it appears here. Do not 
  565.           type the borders. 
  566.            ---------------------------------------------------------
  567.           |                    Lesson One                           |
  568.           |This text will help you learn about Alan's Edit.         |
  569.           |We will learn how to use most of the functn keys.        |
  570.           |                                                         |
  571.           |These two lines will be copied to other locations        |
  572.           |within this file using the F10 and CTRL C commands.      |
  573.           |                                                         |
  574.           |We will learn how to delete this line.                   |
  575.           |                                                         |
  576.           |When text is copied using the F10 command, text at the   |
  577.           |location to which it is being copied is not destroyed.   |
  578.           |However, when CTRL C is used to copy a block of text to  |
  579.           |a new location, it replaces the text there.              |
  580.           |                                                         |
  581.            ---------------------------------------------------------
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.           __________________________________________________________
  589.             Please become a registered PC-CAI user -- see order form
  590.                                         10
  591.  
  592.  
  593.           
  594.           PC-CAI 1.0
  595.           __________________________________________________________
  596.           
  597.           
  598.           Ending AE - Esc 
  599.           
  600.           Press the Esc key.  Notice the prompt: 
  601.           
  602.           (NONSAVE) (R)eturn (Q)uit 
  603.           
  604.           Answer the request by typing an "R" -- do not press the 
  605.           ENTER key. "Q" would have returned you to the DOS system. 
  606.           
  607.           Deleting lines (F5) 
  608.           
  609.           The F5 key deletes lines of text.  Move the cursor to the 
  610.           "W" in "We..." in the fourth sentence of the text on the 
  611.           screen. Press the F5 key. You will be asked how many lines 
  612.           to delete. Enter 1. The line is deleted. (See also CTRL D). 
  613.           
  614.           Inserting characters (Ins) 
  615.           
  616.           Notice that the word "function" is misspelled. This can be 
  617.           corrected by moving the cursor to the second "n" in "functn" 
  618.           and pressing the "Ins" key. Notice the blinking message at 
  619.           the top of the screen. Insert the missing "i" and then the 
  620.           "o". Pressing the "Ins" key again will turn off the insert 
  621.           mode. The insert mode is meant for SMALL insertions of one 
  622.           or several characters. Otherwise, use the F6 key to insert 
  623.           blank lines before adding text or the CTRL X command to 
  624.           split a line at the point new text is to be added. 
  625.           
  626.           INSERTING LINES (F6) 
  627.           
  628.           Insert blank lines by using the F6 function key. Move the 
  629.           cursor to the beginning of the second line. Press F6. The 
  630.           following prompt will appear: 
  631.           
  632.           Insert how many lines (1-10):_ 
  633.           
  634.           Type a "2" and press the ENTER key. You may type additional 
  635.           text into these blank lines. 
  636.           
  637.           MARKING TEXT FOR COPY (F9) 
  638.           
  639.           Copying text is a two step process. Mark the text you wish 
  640.           to copy. Then specify the copy location. Move the cursor to 
  641.           the "T" in "These" in the third sentence. Press F9. The "T" 
  642.           will be displayed in reverse video. Move the cursor to the 
  643.           period at the end of the sentence and press F9 again. The 
  644.           block of text is highlighted. The text in the highlighted 
  645.           rectangular box is now in the copy buffer and can be copied 
  646.           to other locations using the F10 and CTRL C commands. It 
  647.           __________________________________________________________
  648.             Please become a registered PC-CAI user -- see order form
  649.                                         11
  650.  
  651.  
  652.           
  653.           PC-CAI 1.0
  654.           __________________________________________________________
  655.           
  656.           will remain there until pressing the F9 key again starts a 
  657.           new pair of marks, or until you "End" editing. Copy blocks 
  658.           are always rectangular. The largest possible block is 22 
  659.           lines long. 
  660.           
  661.           Moving Text 
  662.           
  663.           To move text, simply perform a copy, and then delete the old 
  664.           text. 
  665.           
  666.           Copying text (F10 and CTRL C) 
  667.           
  668.           Move the cursor to the line that begins with "When text..." 
  669.           and press the F10 function key. This copies the contents of 
  670.           the copy buffer to the location specified by the current 
  671.           position of the cursor. Notice that the text at the location 
  672.           where the text is being copied is not destroyed. Now, move 
  673.           the cursor to the "H" in "However,..." and enter CTRL C. The 
  674.           two lines of text which formerly occupied this position in 
  675.           the file have been replaced by the text in the copy buffer. 
  676.           Notice, however, that characters in these lines which extend 
  677.           beyond the rectangular copy block, still remain. These may 
  678.           be deleted by using, for example, the "Del" key discussed in 
  679.           Lesson 2. 
  680.           
  681.                                     LESSON 2
  682.           
  683.           Enter the text exactly as it appears below: 
  684.            ---------------------------------------------------------
  685.           |                      Lesson Two                         |
  686.           |                                                         |
  687.           |In this lesson, we will learn about saving a document for|
  688.           |future use, the "Help" key, the character ddelete, and   |
  689.           |about the Home key.                                      |
  690.            ---------------------------------------------------------
  691.           
  692.           
  693.           CHARACTER DELETE (DEL) 
  694.           
  695.           There is an extra "d" in the word "delete". Move the cursor 
  696.           (using the arrow keys) to the first "d" in "ddelete". Press 
  697.           the "Del" key once, and the extra "d" has been deleted. 
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.           __________________________________________________________
  707.             Please become a registered PC-CAI user -- see order form
  708.                                         12
  709.  
  710.  
  711.           
  712.           PC-CAI 1.0
  713.           __________________________________________________________
  714.           
  715.           
  716.           SAVING A DOCUMENT (F1) 
  717.           
  718.           After creating or correcting a document, it MUST BE SAVED to 
  719.           disk. Press F1 once. Enter a name of the document to be 
  720.           saved -- in this case name the file LESS2.TMP. The following 
  721.           prompt appears: 
  722.           
  723.           (R)eturn (Q)uit 
  724.           
  725.           Enter "R" to return you to the editor so that you may 
  726.           continue working on the current document. 
  727.           
  728.           Clearing the Workspace (F8) 
  729.           
  730.           The F8 key lets you clear the current working document from 
  731.           the workspace. BE CAREFUL in choosing to clear your space -- 
  732.           if you have not saved your text with the F1 key, it will be 
  733.           lost. Press the function key F8 once. Answer Y at the 
  734.           prompt: "Are you sure?". Press the F2 key, and get the 
  735.           document "LESS2.TMP". This is the file you saved earlier. 
  736.           
  737.           Help (F7) 
  738.           
  739.           Press the F7 key, and you will see: 
  740.           ----------------------------------------------------------
  741.           |To change key at bottom of screen, press CTRL-K in Edit |
  742.           |                                                        |
  743.           |Please Choose:                                          |
  744.           |                                                        |
  745.           |       (R)eturn to screen           (S)how files        |
  746.           |       (E)dit help                  (A)pplications Help |
  747.           |       (D)elete a file                                  |
  748.           |                                                        |
  749.           |                                                        |
  750.           |Choice:_                                                |
  751.           ----------------------------------------------------------
  752.           Press "E" to request that the AE help screens be displayed. 
  753.           These screens display an summary of AE's commands. After 
  754.           looking that these, return to help mode. 
  755.           
  756.           ---------------------------------------------------------- 
  757.           NOTE:HELP FOR PC-CAI COMMANDS IS AVAILABLE BY PRESSING THE 
  758.           "A" KEY. 
  759.           ---------------------------------------------------------- 
  760.           
  761.           Enter "D" to which the computer will respond: 
  762.           
  763.           Enter name of file to delete: 
  764.           
  765.           __________________________________________________________
  766.             Please become a registered PC-CAI user -- see order form
  767.                                         13
  768.  
  769.  
  770.           
  771.           PC-CAI 1.0
  772.           __________________________________________________________
  773.           
  774.           Delete LESS2.TMP which was stored a minute ago. Choosing "S" 
  775.           will display the names of the documents which are currently 
  776.           saved on disk. 
  777.           
  778.                                     LESSON 3
  779.           
  780.           Enter AE as before or clear the workspace with F8. Before 
  781.           entering text onto the screen. Enter CTRL-L Notice the 
  782.           message at the bottom of the screen: 
  783.           
  784.           Line length is ## reset at column : 
  785.           
  786.           This message tells you what the current line length is, i.e. 
  787.           how many characters can be written on a line, and allows you 
  788.           to change it if you wish. Right now, we want the line length 
  789.           to be 60, so respond to this request by typing the number 
  790.           60. Notice that if the current line length is already 60, 
  791.           there is no need to retype it, just press enter. The line 
  792.           length must be at least 20 and no more than 79. 
  793.           
  794.           CTRL T 
  795.           
  796.           You may notice some capital T's on the highlighted bar. If 
  797.           not, press CTRL-K until a mostly blank line appears with a 
  798.           vertical mark toward the right of the screen. The "T's" 
  799.           indicate the current location of the tab stops. CTRL T can 
  800.           be used to reset these tabs. When you press CTRL T, you will 
  801.           see the following prompt at the bottom of the screen: 
  802.           
  803.              Indicate tab stops, separate with semicolons: 
  804.           
  805.           Enter up to 20 column numbers to which you want the cursor 
  806.           to jump when the -->| Tab key is depressed. These column 
  807.           numbers must be separated by semicolons, and should be 
  808.           specified from smallest to largest. Set the tabs at columns 
  809.           5,10, and 50 by entering 5;10;50. With the cursor at the far 
  810.           left of the screen, press the Tab key and notice that the 
  811.           cursor jumps to the next Tab setting. 
  812.           
  813.                                  ENTER THE TEXT
  814.           
  815.           Type in the following text, exactly as it appears below. The 
  816.           automatic word wrap feature using the Enter key unnecessary 
  817.           in many cases. As you are typing in the first sentence, 
  818.           continue to type without pressing ENTER. Notice that during 
  819.           the entry of the word "commands" it is moved to the next. 
  820.           You will find this to be very useful, and the first 5 lines 
  821.           can be typed without ever pressing ENTER. After typing 
  822.           "happens." at the end of the fifth line, pressing ENTER will 
  823.           take you to the beginning of the next line. In order to 
  824.           __________________________________________________________
  825.             Please become a registered PC-CAI user -- see order form
  826.                                         14
  827.  
  828.  
  829.           
  830.           PC-CAI 1.0
  831.           __________________________________________________________
  832.           
  833.           leave a blank line either press ENTER again or move to the 
  834.           beginning of the next line with the downarrow key. 
  835.           
  836.            -----------------------------------------------------------
  837.           |In this lesson you will learn how several of the control   |
  838.           |commands work. I am going to spell this word wrogn. I am   |
  839.           |going to correct correct this line using CTRL W. I         |
  840.           |recognize the fact that I actually spelled it wrogn again. |
  841.           |We will split this line with CTRL X, to see what happens.  |
  842.           |                                                           |
  843.           |This is the last sentence in Lesson 3.                     |
  844.            -----------------------------------------------------------
  845.           
  846.           CTRL R
  847.           
  848.           The word "wrong" is spelled incorrectly twice. In order to 
  849.           correct this, press CTRL-R. Now answer the request at the 
  850.           bottom of the screen with: 
  851.           
  852.              Enter OLD/NEW:ogn/ong 
  853.           
  854.           and press the ENTER key.  The phrase "ogn" will light up, 
  855.           and you will be given several options. Choose the "R" 
  856.           option, and the phrase will be replaced with the correct 
  857.           spelling. Notice now that the "ogn" in "recognize" is now 
  858.           highlighted. However, "ogn" appears correctly in this case 
  859.           and we should not change it. So, we respond with "S" that we 
  860.           want to skip this occurrence of the phrase. The cursor then 
  861.           moves to the second occurrence of the misspelling "wrogn". 
  862.           Respond with "R" to replace this text with the correct 
  863.           spelling. Two other options are available to you: you can 
  864.           select "(N)o more prompting" or "(E)nd". Responding with an 
  865.           "N" will cause all further occurrences of the old phrase to 
  866.           be replaced by the new phrase. This example points out, 
  867.           however, that you should be careful about choosing this 
  868.           option. Sometimes the old phrase will unexpectedly occur as 
  869.           a correct part of other words. Choosing "E" simply ends the 
  870.           replace request with no further changes being made to the 
  871.           text. If your file is longer, AE will ask of you wish to 
  872.           replace on subsequent screens. 
  873.           
  874.           
  875.           CTRL S 
  876.           
  877.           The CTRL S command can be used to SEARCH for a particular 
  878.           phrase. Press CTRL S and notice the prompt at the bottom of 
  879.           the screen: 
  880.           
  881.              Enter search string : 
  882.           
  883.           __________________________________________________________
  884.             Please become a registered PC-CAI user -- see order form
  885.                                         15
  886.  
  887.  
  888.           
  889.           PC-CAI 1.0
  890.           __________________________________________________________
  891.           
  892.           Search for the string "spell". Notice that the first 
  893.           occurrence of "spell" is highlighted. You may choose to 
  894.           continue to search. or you may choose to stop searching. 
  895.           
  896.           CTRL W 
  897.           
  898.           Move the cursor to the space before the first "correct" in 
  899.           the third line. Press CTRL W. The word (to the next blank) 
  900.           will be erased, and the remaining text will be moved over to 
  901.           the left. 
  902.           
  903.           
  904.           CTRL X 
  905.           
  906.           Move the cursor to the line beginning "We will split..." and 
  907.           then place it in the space after "X,". Now enter CTRL X and 
  908.           the line will be split. You may now insert text after "X,". 
  909.           For this example, enter " so that you will be able". Of 
  910.           course, this insertion could have been made using the "Ins" 
  911.           key, but for longer insertions, we recommend using the 
  912.           CTRL X (split) or F6-Insert (insert lines) commands. 
  913.           
  914.           
  915.           CTRL F 
  916.           
  917.           Notice that as a result of the manipulations we just went 
  918.           through, the text looks pretty unorganized. In order to make 
  919.           it look nicer, move the cursor to the first line and enter 
  920.           CTRL F. The text now looks better since each line has been 
  921.           "filled" with as many words as possible. Filling takes place 
  922.           from the current line to the next blank line "dot" or "@" 
  923.           command. 
  924.           
  925.           CTRL P 
  926.           
  927.           Type in the word "hello" on a blank line. Press CTRL P and 
  928.           notice that this places "hello" in the center of the line. 
  929.           
  930.                                 LIMITATIONS TO AE
  931.           
  932.           1. Maximum length of any line is 79 characters. Files read 
  933.           into AE whose lines are longer than 79 characters in length 
  934.           may be truncated. 
  935.           
  936.           2. Maximum length of file is about 64000 characters, or 1600 
  937.           lines. 
  938.           
  939.  
  940.  
  941.  
  942.           __________________________________________________________
  943.             Please become a registered PC-CAI user -- see order form
  944.                                         16
  945.  
  946.  
  947.           
  948.           PC-CAI 1.0
  949.           __________________________________________________________
  950.           
  951.                          PRINTING FILES YOU HAVE CREATED
  952.           
  953.           To print files you have created, you may use the DOS PRINT 
  954.           command (See DOS manual). Or use this command to print the 
  955.           file (say TUTOR.CAI) 
  956.           
  957.           C>COPY TUTOR.CAI LPT1: 
  958.           
  959.           
  960.           ----------------------------------------------------------- 
  961.                            PC-CAI PROGRAM ORGANIZATION 
  962.           ----------------------------------------------------------- 
  963.           A PC-CAI program consists of text, which is output literally 
  964.           from the program file, and commands which are acted upon 
  965.           according to their meanings. Each command begins with either 
  966.           an "at" sign (@) or a dot (.). These command markers must 
  967.           appear in the first column of a program line for the command 
  968.           to be acted upon. 
  969.           
  970.           In general, "@" commands are restricted in where they may 
  971.           appear within a program. Dot "." commands may appear on any 
  972.           line of a PC-CAI program stream. 
  973.           
  974.           AT "@" Commands 
  975.                     
  976.                     @BEGIN QUESTION              @OPTION
  977.                     @END QUESTION                @READ
  978.                     @ESCAPE                      @RIGHT
  979.                     @GOTO                        @SHELL
  980.                     @GOBACK                      @STOP
  981.                     @IF                          @SYSTEM
  982.                     @LABEL                       @TRIES
  983.                     @MENU                        @WRONG
  984.                     
  985.           DOT "." Commands
  986.           
  987.                     .ANIMATE        .GET             .PLAY
  988.                     .BLANK          .INFORMATION     .PSET
  989.                     .CENTER         .LOCATE          .PUT
  990.                     .CIRCLE         .MOVE            .REM
  991.                     .CLS or .CLEAR  .PAINT           .SKIP
  992.                     .COLOR          .PALETTE         .USE
  993.                     .DRAW           .PAUSE           .WAIT
  994.           
  995.           
  996.           For instance, the command @RIGHT indicates a correct answer
  997.           to a question. The correct answer to the question "Who was
  998.           the first president of the USA?" may be indicated in the
  999.           following manner...
  1000.           
  1001.           __________________________________________________________
  1002.             Please become a registered PC-CAI user -- see order form
  1003.                                         17
  1004.  
  1005.  
  1006.           
  1007.           PC-CAI 1.0
  1008.           __________________________________________________________
  1009.           
  1010.           @RIGHT (*WASHINGTON*)
  1011.           
  1012.           Notice that when text is used as a parameter to a command it
  1013.           must be preceded by "(*" and ended with "*)". The @RIGHT
  1014.           command has other additional parameters which may be
  1015.           included to specify other information about a correct
  1016.           answer.
  1017.           
  1018.           General Outline of a PC-CAI Program
  1019.           
  1020.           I. Begin with a title screen and instructional material, one
  1021.           screen at a time. The textual commands ".PAUSE" and ".CLS"
  1022.           may be used to pause after each screen is presented, and to
  1023.           then clear the screen to present the next screen.
  1024.           
  1025.           II. Question and Answer sections may be interspersed
  1026.           throughout the program. Each Question section begins with an
  1027.           "@BEGIN QUESTION" command and ends with the "@END QUESTION"
  1028.           command. For example, a simple Question section would be...
  1029.           @BEGIN QUESTION
  1030.           
  1031.           Many patriots of the American Revolution served in the
  1032.           government of the new republic. Who was the first president
  1033.           of the United States?
  1034.           
  1035.           @READ (*Enter your answer here :*)
  1036.           @RIGHT (*Washington*)
  1037.           
  1038.           Very Good! George Washington is correct!
  1039.           
  1040.           @END QUESTION
  1041.           
  1042.           III. The program may be terminated with the "@STOP" command. 
  1043.           
  1044.           ---------------------------------------------------------- 
  1045.                        AT COMMAND DEFINITIONS (@ Commands) 
  1046.           ---------------------------------------------------------- 
  1047.           
  1048.           As commands are defined in the following discussion, it will 
  1049.           be indicated when a command is required within a Question 
  1050.           section. If a command is not required, it is optional. 
  1051.           Parameters in commands which appear in brackets "[]" are 
  1052.           optional. For instance the form of the @RIGHT command is 
  1053.           
  1054.           @RIGHT (*ANSWER*) [KEYWORD,EXACT,EXACT NOCASE,DECIMAL,LIST, 
  1055.                              SOUNDEX,FORCE,FORCE NOCASE] 
  1056.           
  1057.           The text in (* *) is a required parameter to the @RIGHT 
  1058.           command, but the additional parameters such as KEYWORD, 
  1059.           EXACT, and EXACT NOCASE are optional. If one of the optional 
  1060.           __________________________________________________________
  1061.             Please become a registered PC-CAI user -- see order form
  1062.                                         18
  1063.  
  1064.  
  1065.           
  1066.           PC-CAI 1.0
  1067.           __________________________________________________________
  1068.           
  1069.           parameters is assumed (default) that parameter will be 
  1070.           mentioned as such. For the @RIGHT command, if none of the 
  1071.           optional parameters is given, KEYWORD is assumed. 
  1072.           
  1073.           Only the first three letters of an "at" or "dot" command are 
  1074.           required. Therefore, the @RIGHT command may be abbreviated 
  1075.           "@RIG". However, words which appear as parameters must be 
  1076.           spelled out in full. 
  1077.           
  1078.                                @BEGIN QUESTION and
  1079.                                   @END QUESTION
  1080.           
  1081.           Format :@BEGIN QUESTION [NOCOUNT] and @END QUESTION 
  1082.           
  1083.           Purpose: To signal the beginning and ending of a question 
  1084.           section. These commands are a required part of the QUESTION 
  1085.           section. 
  1086.           
  1087.           Remarks: The option parameter NOCOUNT indicates that this 
  1088.           question should not be counted in any grading that is 
  1089.           requested. This is helpful when a question is used to 
  1090.           perform branching. 
  1091.           
  1092.           
  1093.                                      @ESCAPE
  1094.           
  1095.           This command instructs PC-CAI what do do if the user presses 
  1096.           the ESC key during a tutorial. Two options are SYSTEM and 
  1097.           MENU. The default is MENU. Thus, to cause the program to go 
  1098.           to the CAI menu, place the command 
  1099.           
  1100.           @ESC MENU 
  1101.           
  1102.           at the beginning of the tutorial.  If you want the program 
  1103.           to return to the DOS system, use the command 
  1104.           
  1105.           @ESC SYSTEM 
  1106.           
  1107.           
  1108.                                 @GOTO and @GOBACK
  1109.           
  1110.           Format: @GOTO:label, @GOBACK:label 
  1111.           
  1112.           Purpose: The purpose of the GOTO command is to skip a 
  1113.           portion of PC-CAI code, and to go FORWARD in the program to 
  1114.           a designated label (see @LABEL) 
  1115.           
  1116.           The purpose of the GOBACK command is to branch BACKWARDS to 
  1117.           the top of the document to search for the code to a 
  1118.           designated label. 
  1119.           __________________________________________________________
  1120.             Please become a registered PC-CAI user -- see order form
  1121.                                         19
  1122.  
  1123.  
  1124.           
  1125.           PC-CAI 1.0
  1126.           __________________________________________________________
  1127.           
  1128.           
  1129.           An @GOTO or @GOBACK statement may appear only OUTSIDE of a 
  1130.           QUESTION SECTION. 
  1131.           
  1132.                                        @IF
  1133.           
  1134.           Format: @IF (RIGHT, WRONG) [then] :label 
  1135.           
  1136.           Purpose: To provide FORWARD branching in response to the 
  1137.           result of the last Question section. 
  1138.           
  1139.           Remarks: @IF may appear only OUTSIDE a Question section. The 
  1140.           IF statement may be used to cause backward branching by 
  1141.           going to a label which is then followed by a GOBACK 
  1142.           statement. When grading is being performed, it would 
  1143.           probably be advisable to use the NOCOUNT option of the 
  1144.           @BEGIN statement in the question used for branching. 
  1145.           
  1146.                                      @LABEL
  1147.           
  1148.           Format: @LABEL:label 
  1149.           
  1150.           Purpose: To provide a location for the GOTO, GOBACK, or IF 
  1151.           statements to restart program flow. Labels may appear only 
  1152.           OUTSIDE a Question section. A label may be of any length. 
  1153.           However good programming practice would advise that it be 
  1154.           kept to something short. 
  1155.           
  1156.           Format: @LABEL:label 
  1157.           
  1158.           
  1159.                                       @MENU
  1160.           
  1161.           Purpose:Displays a menu of .CAI program on the default disk, 
  1162.           and gives the user the opportunity to select from the menu 
  1163.           any program to run. 
  1164.           
  1165.           Format: @MENU 
  1166.           
  1167.                                     @OPTIONS
  1168.           
  1169.           Purpose:Select options that describe certain details of how 
  1170.           the program will run. Specify what to do when the ESCAPE key 
  1171.           is pressed. 
  1172.           
  1173.           Format: @OPTIONS [ESCAPE, NOESCAPE] 
  1174.           
  1175.           If ESCAPE is set, the program will watch for the ESCAPE key 
  1176.           to be pressed. If the ESC is pressed, the program will 
  1177.           display the menu of .CAI programs. This is the default. If 
  1178.           __________________________________________________________
  1179.             Please become a registered PC-CAI user -- see order form
  1180.                                         20
  1181.  
  1182.  
  1183.           
  1184.           PC-CAI 1.0
  1185.           __________________________________________________________
  1186.           
  1187.           NOESCAPE is set, the program will ignore the pressing of the 
  1188.           ESC key during a tutorial. 
  1189.           
  1190.                                       @READ
  1191.           
  1192.           
  1193.           Format:@READ [(*prompt*)] 
  1194.           
  1195.           Purpose: To allow the user to input an answer to a question. 
  1196.           This command is a required part of a QUESTION section. May 
  1197.           appear only within a Question section. 
  1198.           
  1199.           Example: The statement 
  1200.           
  1201.           @READ (*ENTER THE ANSWER HERE: *) 
  1202.           
  1203.           will produce the following prompt on the screen... 
  1204.           
  1205.           ENTER THE ANSWER HERE: 
  1206.           
  1207.           And the program will wait for a response from the user. 
  1208.           
  1209.                                      @RIGHT
  1210.           
  1211.           
  1212.           Format:
  1213.           @RIGHT (*answer*) [KEYWORD,EXACT,EXACT NOCASE,DECIMAL,LIST,
  1214.                
  1215.                              SOUNDEX,FORCE,FORCE NOCASE]
  1216.           
  1217.           Purpose: To define the correct answer to the question. 
  1218.           
  1219.           Remarks: Text lines which follow the @RIGHT command are 
  1220.           displayed if the user's answer properly matches the 
  1221.           designated right answer. At least one @RIGHT statement must 
  1222.           appear in a Question section. 
  1223.           
  1224.           The KEYWORD parameter indicates that the user's answer must 
  1225.           be a word or phrase which is contained in the indicated 
  1226.           right answer. KEYWORD is the default condition. 
  1227.           
  1228.           The EXACT parameter indicates that the user's answer must 
  1229.           match exactly, including case (upper and lower case). 
  1230.           
  1231.           The EXACT NOCASE indicates that the user's answer must match 
  1232.           exactly, where case does not matter. 
  1233.           
  1234.           The LIST parameter allows the answer to be a list of words 
  1235.           separated by commas such as (*wheat,barley,oats*). Case is 
  1236.           not checked. 
  1237.           __________________________________________________________
  1238.             Please become a registered PC-CAI user -- see order form
  1239.                                         21
  1240.  
  1241.  
  1242.           
  1243.           PC-CAI 1.0
  1244.           __________________________________________________________
  1245.           
  1246.           
  1247.           The DECIMAL parameter allows the answer to be a number or 
  1248.           range of numbers such as (*10.5*) for a single number or 
  1249.           (*10;20*) for a range of numbers from 10 to 20. 
  1250.           
  1251.           The SOUNDEX parameter allows the answer to match even if 
  1252.           spelling is slightly wrong. For instance, the words SMITH, 
  1253.           SMYTH, and SMYTHE would all match the correct answer SMITH. 
  1254.           Case is not checked in SOUNDEX answers. 
  1255.           
  1256.           The FORCE parameter forces the student to enter the correct 
  1257.           answer. No other entry is accepted. If FORCE NOCASE is used, 
  1258.           case is not checked. 
  1259.           EXAMPLES OF @RIGHT COMMAND: 
  1260.           
  1261.           @RIGHT (*WASHINGTON*) would allow "G WASHINGTON" or "GEORGE 
  1262.           WASHINGTON" or "FRED Washington" as correct answers. 
  1263.           (KEYWORD match) 
  1264.           
  1265.           @RIGHT (*C*) EXACT would allow "C" only as a correct answer, 
  1266.           "c" would be considered incorrect. 
  1267.           
  1268.           @RIGHT (*C*) EXACT NOCASE would allow both "C" and "c" as 
  1269.           correct answers. 
  1270.           
  1271.           @RIGHT (*WASHINGTON*) 
  1272.           George Washington is correct! 
  1273.           
  1274.           In the above example, if the user answers the question 
  1275.           correctly, the text "George Washington is correct!" is 
  1276.           displayed. The text following @RIGHT may contain any dot 
  1277.           command. All text up to the next "@" command will be 
  1278.           displayed. 
  1279.           
  1280.                                      @SHELL
  1281.           
  1282.           Format: @SHELL (*DOSCOMMAND*)
  1283.           
  1284.           
  1285.           Returns control to DOS temporarily if not option is
  1286.           specified.  Return to the program with the EXIT command.
  1287.           For example:
  1288.           
  1289.           C>EXIT
  1290.           
  1291.           If information is included in the (*DOSCOMMAND*) option,
  1292.           the text in (* *) will be sent to the system. After the
  1293.           command is completed, the program will return to PC-CAI at
  1294.           the point just after the SHELL command.  For example, to
  1295.           cause a DOS Directory command to be executed, enter the
  1296.           __________________________________________________________
  1297.             Please become a registered PC-CAI user -- see order form
  1298.                                         22
  1299.  
  1300.  
  1301.           
  1302.           PC-CAI 1.0
  1303.           __________________________________________________________
  1304.           
  1305.           command
  1306.           
  1307.           @SHELL (*DIR*)
  1308.           
  1309.                                       @STOP
  1310.           
  1311.           Format: @STOP  [MENU,SYSTEM,[REVIEW TEXT],
  1312.                          [GRADE [SCREEN,FILE=filename,PRINTER]]
  1313.           
  1314.           Purpose: Ends the PC-CAI program, and either (by optional 
  1315.           specifications) returns to the PC-CAI menu, grades the 
  1316.           tutorial, goes to system, or (when no optional parameter is 
  1317.           specified) will prompt the user... 
  1318.           
  1319.           Please choose 1) End PC-CAI or 2) Begin PC-CAI again. 
  1320.           
  1321.           When the GRADE option is chosen, one or more of the 
  1322.           sub-options SCREEN, FILE, or PRINTER may also be chosen. 
  1323.           This specifies where the grading will be printed. 
  1324.           
  1325.           When the REVIEW option is chosen, the TEXT sub-option 
  1326.           specifies that the text preceding the question which was 
  1327.           missed should be displayed. REVIEW and GRADE options are 
  1328.           exclusive, and both may not be used in the same @STOP 
  1329.           command. 
  1330.           
  1331.                                      @TRIES
  1332.           
  1333.           Format: @TRIES [N] 
  1334.           
  1335.           Purpose: To specify how many wrong answers to allow the user 
  1336.           before moving to the next question. The default number of is 
  1337.           one. @Tries only has meaning within a Question section. 
  1338.           
  1339.           Example: @TRIES 3 allows three tries to get right answer. 
  1340.           
  1341.                                      @WRONG
  1342.           
  1343.           
  1344.           Format:
  1345.           @WRONG [(*answer*) [KEYWORD,EXACT,EXACT NOCASE,DECIMAL,LIST,
  1346.                               SOUNDEX,FORCE,FORCE
  1347.           NOCASE] [FINAL]
  1348.           
  1349.           Purpose:To define text to display when a wrong answer is 
  1350.           given. The parameters KEYWORD through FORCE NOCASE indicate 
  1351.           that type of match to a specific wrong answer, and have the 
  1352.           same meanings as in @RIGHT. An @WRONG statement which has no 
  1353.           answer indicated is called a "general wrong answer". When a 
  1354.           user's answer does not match any right answers or any 
  1355.           __________________________________________________________
  1356.             Please become a registered PC-CAI user -- see order form
  1357.                                         23
  1358.  
  1359.  
  1360.           
  1361.           PC-CAI 1.0
  1362.           __________________________________________________________
  1363.           
  1364.           specific wrong answers, then the text following the general 
  1365.           wrong answer is displayed. FINAL indicates that the text 
  1366.           following the @WRONG statement will be displayed when all 
  1367.           tries are exhausted, and no right answer has been given. 
  1368.           
  1369.           Example:The command... 
  1370.           
  1371.           @WRONG (*LINCOLN*) 
  1372.           Lincoln was a president during the civil war. 
  1373.           
  1374.           would cause the text about Lincoln to be displayed if 
  1375.           LINCOLN was given as an answer to the question. As many 
  1376.           @WRONG statements as are needed may appear. If no matching 
  1377.           text is given and no match is found for those @WRONG 
  1378.           statements which have an answer, then the text following the 
  1379.           @WRONG without an answer is displayed. 
  1380.           
  1381.           Once the text for the @WRONG statement is displayed, the 
  1382.           question is displayed again, beginning with any text 
  1383.           following the @BEGIN. Therefore, it may be necessary to use 
  1384.           the textual command 
  1385.           
  1386.           .pause (*Please press ENTER to continue*)
  1387.           
  1388.           To allow the user to read the reply to the wrong answer 
  1389.           before trying the same question again, or going on to the 
  1390.           next question. 
  1391.           
  1392.           When @WRONG FINAL is indicated, the text following is 
  1393.           displayed when all tries are exhausted, and no right answer 
  1394.           has been given. This can be used to give the student a 
  1395.           reference to find the right answer, or to indicate what 
  1396.           correct answer had been expected. 
  1397.           
  1398.                             EXAMPLE QUESTION SECTION
  1399.           
  1400.           @BEGIN QUESTION
  1401.           @TRIES 3
  1402.           Many patriots of the American Revolution served in the
  1403.           government of the new republic. Who was the first president
  1404.           of the United States?
  1405.           
  1406.           A)Paul Revere
  1407.           B)George Washington
  1408.           C)Thomas Jefferson
  1409.           D)Benjamin Franklin
  1410.           
  1411.           @READ (*Enter the letter of the correct answer :*)
  1412.           @RIGHT (*b*) EXACT NOCASE
  1413.           
  1414.           __________________________________________________________
  1415.             Please become a registered PC-CAI user -- see order form
  1416.                                         24
  1417.  
  1418.  
  1419.           
  1420.           PC-CAI 1.0
  1421.           __________________________________________________________
  1422.           
  1423.           Very Good! George Washington was the first president of the
  1424.           United States.
  1425.           
  1426.           @WRONG (*c*) EXACT NOCASE
  1427.           
  1428.           No. He wrote the Declaration of Independence.
  1429.           
  1430.           @WRONG
  1431.           
  1432.           You must answer either A, B, C, or D.
  1433.           
  1434.           @WRONG FINAL
  1435.           
  1436.           The answer was C, George Washington.
  1437.           
  1438.           @END QUESTION
  1439.           
  1440.           ---------------------------------------------------------- 
  1441.                                 DOT Commands (.) 
  1442.           ---------------------------------------------------------- 
  1443.           The following is an explanation of the "dot" commands. 
  1444.           Unlike the @ (at) commands which are restricted in where 
  1445.           they may be placed, dot commands may appear anywhere in the 
  1446.           PC-CAI program flow. 
  1447.           
  1448.                                      .BLANK
  1449.           
  1450.           Format :.BLANK ## 
  1451.           
  1452.           Purpose: Specifies that ## (a number) blank lines are to be 
  1453.           printed. This may be used to erase specific lines on the 
  1454.           screen, while leaving others intact. For example, if lines 5 
  1455.           to 10 are to be blanked out, the following commands would 
  1456.           perform that task: 
  1457.           
  1458.            .LOCATE 5,1 
  1459.            .BLANK 6 
  1460.           
  1461.           A skip command skips lines on the screen, but does not erase 
  1462.           them. 
  1463.           
  1464.                                      .CENTER
  1465.           
  1466.           Format :.CENTER (*text*) 
  1467.           
  1468.           Purpose: To center the "text" on the output line. 
  1469.           
  1470.                                  .CLS or .CLEAR
  1471.           
  1472.           Format :.CLS or .CLEAR 
  1473.           __________________________________________________________
  1474.             Please become a registered PC-CAI user -- see order form
  1475.                                         25
  1476.  
  1477.  
  1478.           
  1479.           PC-CAI 1.0
  1480.           __________________________________________________________
  1481.           
  1482.           
  1483.           Purpose: Clears the monitor screen. 
  1484.           
  1485.                                      .COLOR
  1486.           
  1487.           Format :.COLOR [foreground[,background] [NORMAL,REVERSE] 
  1488.           
  1489.           Purpose: To specify color changes, underlining or blinking 
  1490.           text. Foreground and background refer to designations 
  1491.           described below. 
  1492.           
  1493.           Remarks: The designation may be a number from 0 to 31, or 
  1494.           the words NORMAL or REVERSE. NORMAL causes the monitor to be 
  1495.           in normal color mode. Reverse causes the monitor to be in 
  1496.           reverse video. The other color designations, which are 
  1497.           specified by number, cause the text to be printed in various 
  1498.           colors. 
  1499.           
  1500.           If you are using a monochrome monitor, those color 
  1501.           designations are as follows: 
  1502.           
  1503.           0, 2-6            White on black (normal)
  1504.           1                 Underlined
  1505.           7                 Invisible
  1506.           8,10-15           High Intensity, White on Black
  1507.           9                 High Intensity, Underlined
  1508.           16,18-23          Blinking
  1509.           17                Blinking, Underlined
  1510.           24,26-31          High Intensity, Blinking
  1511.           25                Blinking, Underlined, High Intensity
  1512.           
  1513.           If you have the Color/Graphics Monitor, the following colors
  1514.           are displayed: 
  1515.           
  1516.           0 Black                   8 Gray
  1517.           1 Blue                    9 Light Blue
  1518.           2 Green                  10 Light Green
  1519.           3 Cyan                   11 Light Cyan
  1520.           4 Red                    12 Light Red
  1521.           5 Magenta                13 Light Magenta
  1522.           6 Brown                  14 Yellow
  1523.           7 White                  15 High Intensity White
  1524.           
  1525.           To creating a blinking color,  add 16 to these colors.  That
  1526.           is, 4+16=20 will create blinking red. 
  1527.           
  1528.           The command ".COLOR 9"  will cause text  to be displayed  as
  1529.           light blue, with a  black (default) background. The  command
  1530.           ".color 25,4" would cause text to be blinking blue on a  red
  1531.           background. 
  1532.           __________________________________________________________
  1533.             Please become a registered PC-CAI user -- see order form
  1534.                                         26
  1535.  
  1536.  
  1537.           
  1538.           PC-CAI 1.0
  1539.           __________________________________________________________
  1540.           
  1541.           
  1542.                                   .INFORMATION
  1543.           
  1544.           Format: .INFORMATION ## (*text*) [CONDITIONAL] 
  1545.           
  1546.           
  1547.           Purpose: To prompt for, and read information about the  user
  1548.           that may be used for  documentation purposes. As many as  10
  1549.            .INF statements may appear. ## may be 1 to 10. 
  1550.           
  1551.           Remarks: This information is useful when documentation of  a
  1552.           student's performance on a tutorial  or test is needed.  The
  1553.           information may be sent to a line printer at the end of  the
  1554.           session, or may be stored  in a file for future  evaluation.
  1555.           See the @STOP command. The ##  may consist of the numbers  1
  1556.           to 10. Once an information  field is established, it may  be
  1557.           used in text by embedding (.inf ##) in the text. That is,  a
  1558.           "(.inf" plus the  number of the  information, followed by  a
  1559.           ")". 
  1560.           
  1561.           For example, suppose you wished  to use the student's  first
  1562.           name within  a tutorial,  you  would find  it out  with  the
  1563.           command 
  1564.           
  1565.            .INF 1 (*Please enter your first name :*) 
  1566.           
  1567.           
  1568.           and then  you  could  use  it in  text  to  personalize  the
  1569.           tutorial... 
  1570.           
  1571.           
  1572.           Very good, (.inf 1), that was the right answer! 
  1573.           
  1574.           The optional CONDITIONAL statement tells PC-CAI to skip  the
  1575.           information question  if  information  for  the  information
  1576.           number is already been established. This is useful when  you
  1577.           may be going from tutorial to  tutorial, and do not want  to
  1578.           require that  the  student re-enter  information  they  have
  1579.           entered before. 
  1580.                                      .LOCATE
  1581.           
  1582.           Format:.LOCATE y,x 
  1583.           
  1584.           Purpose: To locate the cursor on the display in  preparation
  1585.           for printing. 
  1586.           
  1587.           Remark: y may range from 1 to 25, and designates  horizontal
  1588.           row. x  may  range from  1  to 80  and  designates  vertical
  1589.           column. 
  1590.           
  1591.           __________________________________________________________
  1592.             Please become a registered PC-CAI user -- see order form
  1593.                                         27
  1594.  
  1595.  
  1596.           
  1597.           PC-CAI 1.0
  1598.           __________________________________________________________
  1599.           
  1600.                                      .PAUSE
  1601.           
  1602.           Format:.PAUSE (*text*) 
  1603.           
  1604.           Purpose: To cause output  to be suspended  until any key  is
  1605.           pressed. 
  1606.           
  1607.           Example: The most common use for PAUSE will be with the text
  1608.           (*Please press ENTER to continue*). 
  1609.           
  1610.                                       .PLAY
  1611.           
  1612.           Format:.PLAY (*designation*) 
  1613.           
  1614.           Purpose: To create sound effects. 
  1615.           
  1616.           Remarks:The designation  contains  a  string  of  characters
  1617.           which specify note to be  played. These designations are  as
  1618.           follows: 
  1619.           
  1620.           A to G with  optional # or  + to designate  sharp, and -  to
  1621.           designate flat. 
  1622.           
  1623.           Ln sets the length of each note where n ranges from 1 to 64.
  1624.           L2 indicates a half note, and L8 an eighth note, etc. 
  1625.           
  1626.           MF designates music foreground. Program halts until music is
  1627.           finished playing. 
  1628.           
  1629.           MB designates music background. Music plays while  execution
  1630.           of program continues. 
  1631.           
  1632.           MN music  normal.  Each  note  is played  7/8  of  the  time
  1633.           specified by L n. 
  1634.           
  1635.           ML music legato. Music play a full period. 
  1636.           
  1637.           MS music stacato. Each note plays 3/4 of time. 
  1638.           
  1639.           Nn Play note n  where n may  range from 0  to 84. n=0  means
  1640.           rest. Note 1 is the lowest octave C. 
  1641.           
  1642.           On Octave n where n may range from 0 to 7. 
  1643.           
  1644.           Pn Pause, where n is as in L n. 
  1645.           
  1646.           Tn Tempo, where n ranges from 32 to 255, and may be used  to
  1647.           casue music to speed up or slow down. 
  1648.           
  1649.           Example:.PLAY (*T120O1L8CDEF2G#ABO2C*) 
  1650.           __________________________________________________________
  1651.             Please become a registered PC-CAI user -- see order form
  1652.                                         28
  1653.  
  1654.  
  1655.           
  1656.           PC-CAI 1.0
  1657.           __________________________________________________________
  1658.           
  1659.           
  1660.           NOTE:The play commands is much the same as the IBM PC  BASIC
  1661.           PLAY command. Additional examples of its use may be found in
  1662.           your BASIC manual. 
  1663.                                       .SKIP
  1664.           
  1665.           Format :.SKIP ## 
  1666.           
  1667.           Purpose: Causes ##  (a number)  lines to be  skipped on  the
  1668.           screen. 
  1669.           
  1670.                                       .USE
  1671.           
  1672.           Format: .USE PROG=programname 
  1673.           
  1674.           Purpose: This command  allows you  to temporary  bring in  a
  1675.           series of commands (like a subroutine) which is stored in  a
  1676.           separate file. The .USE commands will turn over the  program
  1677.           stream to the indicated USE file until the end of that  file
  1678.           is reached, at which time the program stream will return  to
  1679.           the main program. 
  1680.           
  1681.           Example:Suppose you  often used  a certain  paragraph, or  a
  1682.           character graphics picture which you  have stored in a  file
  1683.           B:OFTEN.CAI. The command to insert that bit of program  code
  1684.           within another program is: 
  1685.           
  1686.            .USE PROG=B:OFTEN.CAI 
  1687.           
  1688.                                       .WAIT
  1689.           
  1690.           Format: .WAIT # 
  1691.           
  1692.           Purpose: This command causes the  program to wait #  seconds
  1693.           before continuing.  This  is  handy  for  producing  rolling
  1694.           demos, where you want to time pauses between screens. 
  1695.           
  1696.           
  1697.           ----------------------------------------------------------
  1698.                                 EXAMPLE TUTORIAL
  1699.                            USES NO BRANCHING COMMANDS
  1700.           ----------------------------------------------------------
  1701.           
  1702.   .CLS
  1703.   .SKIP  10
  1704.                                My Very First Tutorial
  1705.                                          by
  1706.                                      Ima Writer
  1707.   .SKIP  9
  1708.   .PAUSE (*Please press ENTER to continue*)
  1709.           __________________________________________________________
  1710.             Please become a registered PC-CAI user -- see order form
  1711.                                         29
  1712.  
  1713.  
  1714.           
  1715.           PC-CAI 1.0
  1716.           __________________________________________________________
  1717.           
  1718.   .CLS
  1719.   During the American Revolution, a young General by the name of
  1720.   George Washington lead the rag-tag Contintial Army against the
  1721.   British troops. His popularity was so strong that some wanted
  1722.   to name him King. Washington would not hear of it, but did accept
  1723.   the position as the first president of the new republic.
  1724.   
  1725.   
  1726.   .PAUSE (*Please press ENTER to continue*)
  1727.   .CLS
  1728.   @BEGIN QUESTION
  1729.   @TRIES 3
  1730.   There are many famous men associated with the American Revolution.
  1731.   Thomas Jefferson, Benjamin Franklin, George Washington, and Paul Revere
  1732.   are a few well known patriots.
  1733.   
  1734.   @READ (*Who was the first President of the USA ? *)
  1735.   @RIGHT (*Washington*) KEYWORD
  1736.   That is correct, George Washington was the first president of the USA.
  1737.   
  1738.   @WRONG (*Jefferson*) KEYWORD
  1739.   He wrote the Declaration of Independence.
  1740.   
  1741.   @WRONG
  1742.   Hint:
  1743.   The Capitol was named after him.
  1744.   @WRONG FINAL
  1745.   The answer is George Washington.
  1746.   @END QUESTION
  1747.   .PAUSE (*Please press ENTER*)
  1748.   @STOP MENU
  1749.                                    EXAMPLES OF BRANCHING
  1750.           
  1751.   
  1752.   .SKIP 10
  1753.   .CENTER(*This is an example of Branching in CALL*)
  1754.   .SKIP 2
  1755.   .USE PROG=USEFIL
  1756.   .SKIP 1
  1757.   .PAUSE (*Please press ENTER*)
  1758.   @GOTO:ROBIN
  1759.   This will not be printed, since we skipped it.
  1760.   @LABEL:BATMAN
  1761.   This is text which follows the BATMAN label, which is only printed when I go
  1762.   BACK to it using a GOBACK command.
  1763.   
  1764.   .pause (*Please press ENTER*)
  1765.   @LABEL:ROBIN
  1766.   @BEGIN QUESTION
  1767.   .CLS
  1768.           __________________________________________________________
  1769.             Please become a registered PC-CAI user -- see order form
  1770.                                         30
  1771.  
  1772.  
  1773.           
  1774.           PC-CAI 1.0
  1775.           __________________________________________________________
  1776.           
  1777.   Now we are in a Question section. The question for the day is... Did the SUN
  1778.   rise this morning?
  1779.   
  1780.   HINT:The correct answer is Yes. However, to test out the branching, you might
  1781.   want to see what happens when you answer NO.
  1782.   
  1783.   @READ(*ENTER YOUR ANSWER:*)
  1784.   @RIGHT (*Yes*) KEYWORD
  1785.   .play (*mfo2l16cdefgabo3c*)
  1786.   @END
  1787.   @IF RIGHT then GOTO:RIGHTANSWER
  1788.   .SKIP 2
  1789.   This question is only asked if you answered the SUN question WRONG.
  1790.   
  1791.   It is a very special day in which the SUN does not come up. In fact, when that
  1792.   happens, there won't be a day at all, will there? Of course, it could be 3
  1793.   o'clock in the morning, or there could be a cloud cover, which would make it
  1794.   seem like there was no sun rise.
  1795.   
  1796.   @BEGIN QUESTION
  1797.   Did the SUN rise yesterday morning? The answer is YES whether you like it or
  1798.   not!
  1799.   
  1800.   @READ (*Enter your answer here:*)
  1801.   @RIGHT(*YES*) FORCE NOCASE
  1802.   .play (*mfo2l16cdefgabo3c*)
  1803.   
  1804.   @END QUESTION
  1805.   @GOTO :SKIP
  1806.   @LABEL:RIGHTANSWER
  1807.   
  1808.   This part of the program is performed if the first SUN question is answered
  1809.   CORRECTLY.
  1810.   
  1811.   @LABEL:skip
  1812.   @BEGIN QUESTION NOCOUNT
  1813.   
  1814.   DO YOU WANT TO STOP THIS NONSENSE?
  1815.   
  1816.   @READ(*ENTER Y or N :*)
  1817.   @RIGHT (*Y*) EXACT NOCASE
  1818.   @END QUESTION
  1819.   @IF RIGHT then GOTO:END
  1820.   
  1821.   Okay, then , I'm going back...
  1822.   
  1823.   
  1824.   @GOBACK:BATMAN
  1825.   @LABEL:END
  1826.   .PAUSE (*This is the END!!!   Press Enter *)
  1827.           __________________________________________________________
  1828.             Please become a registered PC-CAI user -- see order form
  1829.                                         31
  1830.  
  1831.  
  1832.           
  1833.           PC-CAI 1.0
  1834.           __________________________________________________________
  1835.           
  1836.   @STOP MENU
  1837.           
  1838.           THIS IS THE "USE" FILE USED IN THE EXAMPLE ABOVE:
  1839.           
  1840.           ==========================================================
  1841.   
  1842.   .PLAY(*mbo1l4cdefgabo2c*)
  1843.   
  1844.   This text was brought into the stream of the program by a USE command. This
  1845.   program takes you through some exercises in branching, which will help you
  1846.   understanding what may be performed with the commands:
  1847.   
  1848.                                        @GOTO
  1849.                                       @GOBACK
  1850.                                         @IF
  1851.                                        @LABEL
  1852.   .SKIP 3
  1853.   
  1854.           ==========================================================
  1855.           
  1856.           
  1857.           ----------------------------------------------------------
  1858.                            GRAPHICS COMMANDS FOR PC-CAI
  1859.           ----------------------------------------------------------
  1860.           
  1861.           In order to use graphics commands in PC-CAI, you must be using
  1862.           a monitor which will support graphics. There are two
  1863.           CGA graphics modes, low resolution and high resolution.
  1864.           Monitors supporting this are composite graphics, CGA, EGA,
  1865.           PGA, and VGA. Hercules graphic monitors are not currently
  1866.           supported. Most of these commands are similar to the BASIC
  1867.           commands of the same name. For more information on these
  1868.           commands, see the BASIC manual. The first command which you
  1869.           must use to enter graphics mode is the SCREEN command.
  1870.           
  1871.            .SCREEN n
  1872.           
  1873.           where n is 0,1 or 2.
  1874.           
  1875.             0 - selects the monochrome screen (non graphics, 80 columns)
  1876.             1 - selects low resolution graphics, 40 columns, 4 colors
  1877.             2 - selects high resolution graphics, 80 columns, no colors
  1878.           
  1879.           Of course, colors are only supported on a color monitor, and 
  1880.           will be supported in the SCREEN 0 setting. Low resolution 
  1881.           graphics gives you a screen in which you may access points 
  1882.           on the screen (called pixels) 320 from left to right, and 
  1883.           200 from top to bottom. 
  1884.           
  1885.           High resolution gives you 640 pixels from left to right and 
  1886.           __________________________________________________________
  1887.             Please become a registered PC-CAI user -- see order form
  1888.                                         32
  1889.  
  1890.  
  1891.           
  1892.           PC-CAI 1.0
  1893.           __________________________________________________________
  1894.           
  1895.           200 from top to bottom. 
  1896.           
  1897.           Thus, in the following commands, points on the screen will 
  1898.           often be referenced by two numbers, the first being the 
  1899.           horizonal location (left to right), and the second being the 
  1900.           vertical location (up and down). The "home" position (0,0) 
  1901.           is the upper left corner of the screen. For example, the 
  1902.           location 100,200 would mean the location 100 pixels down the 
  1903.           screen, and 200 pixels right of the left border of the 
  1904.           screen. This is different from the normal Cartesian point 
  1905.           system which you may be familiar, in which the 0,0 position 
  1906.           is at the bottom left. 
  1907.           
  1908.           When a color monitor is used, and SCREEN 1 is selected, a 
  1909.           palette of colors is selectable. The command to do this is 
  1910.           
  1911.             .PALETTE n 
  1912.           
  1913.           where n is 0, 1 or 2, which selects the palette of colors. 
  1914.           Only four colors at a time can be used, the background color 
  1915.           plus three selectable colors, according to which palette is 
  1916.           being used. 
  1917.           
  1918.           The next command locates the graphics "pointer" somewhere on 
  1919.           the screen. You may wish to place the pointer on the screen 
  1920.           just prior to drawing an picture. 
  1921.           
  1922.            .PSET x,y 
  1923.           
  1924.           where x is the number of pixels from the left border, and y 
  1925.           is the number of pixels from the top border. 
  1926.           
  1927.           The DRAW command allows you to draw a picture. 
  1928.           
  1929.            .DRAW (*information*) 
  1930.           
  1931.           Where the information is a series of commands which indicate 
  1932.           how to draw the picture. The commands are as follows the "n" 
  1933.           in each commands represents the distance of the move. This 
  1934.           distance is n times the scaling factor set by the S command. 
  1935.           
  1936.           Un       Move Up n pixels
  1937.           Dn       Move Down n pixels
  1938.           Ln       Move Left n pixels
  1939.           Rn       Move Right n pixels
  1940.           En       Move Diagonally up and right
  1941.           Fn       Move diagonally down and right
  1942.           Gn       Move diagonally down and left
  1943.           Hn       Move diagonally up and left
  1944.           M x,y    Move absolute or relative. If x has
  1945.           __________________________________________________________
  1946.             Please become a registered PC-CAI user -- see order form
  1947.                                         33
  1948.  
  1949.  
  1950.           
  1951.           PC-CAI 1.0
  1952.           __________________________________________________________
  1953.           
  1954.                    a plus sign(+) or a minus sign (-) in front,
  1955.                    it is relative, otherwise it is absolute.
  1956.           B        Move but do not plot points
  1957.           N        Move but return to original position
  1958.           An       Set angle n where n may range from 0 to 3,
  1959.                    where 0 is 0 degrees, 1 is 90 degrees, 2 is 180,
  1960.                    and 3 is 270. Figures rotated 90 or 270 degrees
  1961.                    are scaled so that they appear to be the same
  1962.                    with 0 or 180 degrees on a display with standard
  1963.                    aspect of 4/3
  1964.           Cn       Set color n, where n may range from 0 to 3 in
  1965.                    medium resolution and 0 to 1 in high.
  1966.           Sn       Set scale factor n where n may range from 1 to
  1967.                    255. n divided by 4 is the scale factor.
  1968.           
  1969.           Example: .DRAW (*U10L20R30D50*)
  1970.           
  1971.           The CIRCLE command allows you to draw circles or portions
  1972.           of circles.
  1973.           
  1974.             .CIR  CENTER=(x,y) RADIUS=n
  1975.           
  1976.           where x and y is the location for the center of the
  1977.           circle, and n is the radius.
  1978.           
  1979.           Optional commands are
  1980.           
  1981.               COLOR=n       n=0,1,2 according to palette
  1982.               START=a  STOP=b   where a and b are in radians
  1983.               ASPECT=n      n is numerator of n/12, where 10/12
  1984.                             is normal aspect for medium resolution
  1985.                             and 5/12 is normal for high resolution.
  1986.                             (See your BASIC manual for a more
  1987.                             complete explanation of aspect)
  1988.           
  1989.           Example:.CIR CENTER=(100,100) RADIUS=30 ASPECT=6 COLOR=2
  1990.           
  1991.             .PAINT CENTER=(x,y) COLOR=n1 BOUND=n2
  1992.           
  1993.           where x and y are location within an object,
  1994.           n1 is the color to paint
  1995.           n2 is the color of the boundary.
  1996.           
  1997.           Painting will fill from the "center" to the boundary in all 
  1998.           directions. Thus, if the boundary is not solid, the entire 
  1999.           screen will be painted. 
  2000.           
  2001.           USING A SINGLE IMAGE AT A TIME 
  2002.           
  2003.           Images, or pictures may be stored on disk and used by 
  2004.           __________________________________________________________
  2005.             Please become a registered PC-CAI user -- see order form
  2006.                                         34
  2007.  
  2008.  
  2009.           
  2010.           PC-CAI 1.0
  2011.           __________________________________________________________
  2012.           
  2013.           PC-CAI. The IMAGE program is in the Utilities module. To 
  2014.           begin the IMAGE program enter the command: 
  2015.           
  2016.           C>CAI-UTIL 
  2017.           
  2018.           Request the "IMAGE" option from the menu. Images may be of 
  2019.           width 2 to 40 and height from 2 to 30. Within the IMAGE 
  2020.           program, you may move the cursor around the image grid 
  2021.           selecting colors by pressing 1,2,or 3. Once an image is 
  2022.           saved, it may be used in a tutorial. 
  2023.           
  2024.            .GET filename 
  2025.           
  2026.           To bring an image into PC-CAI so it can be used, you must 
  2027.           first GET it. The filename is the name under which the image 
  2028.           is saved. 
  2029.           
  2030.           EXAMPLE: .GET PC.IMG 
  2031.           
  2032.           
  2033.             .PUT x,y 
  2034.           
  2035.           Puts the image on the screen at the specified location. The 
  2036.           x,y specifies where to put the upper left corner of the 
  2037.           image. If the image is placed in a position where it will 
  2038.           not all fit on the screen, and error will occur. To erase an 
  2039.           image which is already on the screen, you PUT the same image 
  2040.           on top of the one to be erased. 
  2041.           
  2042.             .MOVE (x,y)-(x,y) STEPS=n 
  2043.           
  2044.           Instructs PC-CAI to move the image from one location to 
  2045.           another. Steps specifies how many steps to take. A small 
  2046.           number or steps causes a fast move, and a large number of 
  2047.           steps causes a slow move. 
  2048.           
  2049.           USING GRAPHIC ANIMATION 
  2050.           
  2051.           Prepare your animation sequence by building up to four 
  2052.           images in the CAI-UTIL Image option. An example on disk is 
  2053.           RUNNER1.IMG, RUNNER2.IMG, RUNNER3.IMG and RUNNER4.IMG. To 
  2054.           load in up to four images (.IMG files), use the command 
  2055.           
  2056.            .LOAD file1,file2,file3,file4 
  2057.           
  2058.           Be sure they are specified in the order that they are to 
  2059.           appear in the animation. 
  2060.           
  2061.           To animate the sequence, use the command: 
  2062.           
  2063.           __________________________________________________________
  2064.             Please become a registered PC-CAI user -- see order form
  2065.                                         35
  2066.  
  2067.  
  2068.           
  2069.           PC-CAI 1.0
  2070.           __________________________________________________________
  2071.           
  2072.            .ANIMATE (X1,Y1)-(X2,X2) [STEPX=#] [STEPy=#] [PAUSE=#] 
  2073.           
  2074.           X1,Y1 and X2,Y2 are the beginning and ending points for the 
  2075.           animation. Be careful that these points allow the entire 
  2076.           image to appear on the screen. Otherwise, you could get an 
  2077.           error. The options SETPX, STEPY and PAUSE have to do with 
  2078.           how fast the image will go. STEPX is horizontal movement, 
  2079.           STEPY is vertical movement and PAUSE is how much to pause 
  2080.           between images. 
  2081.           
  2082.           The defaults are STEPX=5, STEPY=5 and PAUSE = .1. 
  2083.           
  2084.           A simple example is given in the following statements: 
  2085.           
  2086.           .SCREEN 1
  2087.           .LOAD RUNNER1,RUNNER2,RUNNER3,RUNNER4
  2088.           .ANIMATE (1,100)-(100,100) STEPX=2 STEPY=0 PAUSE=0.1
  2089.           
  2090.           
  2091.           HINTS FOR USING GRAPHICS 
  2092.           
  2093.           Since graphics portions of PC-CAI code may be time consuming 
  2094.           to create, edit, and perfect, it is a good idea to create 
  2095.           bits of graphic code in small programs, and then to include 
  2096.           these portions in a larger tutorial. 
  2097.           
  2098.           It may also be advisable to create your own library of 
  2099.           images and pictures, which you may draw upon to use over and 
  2100.           over. 
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.           __________________________________________________________
  2123.             Please become a registered PC-CAI user -- see order form
  2124.                                         36
  2125.  
  2126.  
  2127.           
  2128.           PC-CAI 1.0
  2129.           __________________________________________________________
  2130.           
  2131.                                    APPENDIX I
  2132.           
  2133.           USER'S BALLOT
  2134.           
  2135.           Please indicate your preference for improvements in
  2136.           PC-CAI. On a scale of 0 to 10
  2137.           
  2138.           0 = Very Low priority for this change
  2139.           10 = Very High priority for this change
  2140.           
  2141.           Your
  2142.           Vote  Proposed item of change
  2143.           ----  ----------------------------------------------
  2144.           ____  Provide a "question bank" from which to store
  2145.                 and select questions at random or from a list.
  2146.           ____  Support output/control of VCR devices.
  2147.           ____  Support calculation ability in program.
  2148.           ____  Support encryption of files to prevent them from
  2149.                 being read by users.
  2150.           ____  Make display to screen faster
  2151.           ____  Support mouse/joystick
  2152.           ____  Provide a "grading" program to summarize results of
  2153.                 tests given by the program.
  2154.           ____  Make the editor more like WordStar
  2155.           ____  Support subroutines in the language
  2156.           ____  _____________________________________________
  2157.           ____  _____________________________________________
  2158.           ____  _____________________________________________
  2159.           ____  _____________________________________________
  2160.           ____  _____________________________________________
  2161.           ____  _____________________________________________
  2162.           ____  _____________________________________________
  2163.           Comments:
  2164.           
  2165.           
  2166.           
  2167.           
  2168.           
  2169.           -----------------------------------------------------------
  2170.           Mail to:TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104.
  2171.           Thanks.
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.           __________________________________________________________
  2182.             Please become a registered PC-CAI user -- see order form
  2183.                                         37
  2184.  
  2185.  
  2186.           
  2187.           PC-CAI 1.0
  2188.           __________________________________________________________
  2189.           
  2190.                                    APPENDIX II
  2191.           
  2192.                              Bug Report for PC-CAI
  2193.           
  2194.           Please explain in detail the problem that occurred. If
  2195.           possible, send a print out of the results or Print Screen,
  2196.           or send copy of the PC-CAI code that caused problems.
  2197.           ---------------------------------------------------------
  2198.           
  2199.           
  2200.           
  2201.           
  2202.           
  2203.           
  2204.           
  2205.           
  2206.           
  2207.           
  2208.           
  2209.           
  2210.           
  2211.           
  2212.           
  2213.           
  2214.           
  2215.           
  2216.           
  2217.           
  2218.           
  2219.           
  2220.           
  2221.           
  2222.           
  2223.           
  2224.           
  2225.           
  2226.           
  2227.           
  2228.           ---------------------------------------------------------
  2229.           Mail to:TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104.
  2230.           Thanks.
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.           __________________________________________________________
  2241.             Please become a registered PC-CAI user -- see order form
  2242.                                         38
  2243.  
  2244.  
  2245.           
  2246.           PC-CAI 1.0
  2247.           __________________________________________________________
  2248.           
  2249.                                   APPENDIX III
  2250.           
  2251.                                    ERROR CODES
  2252.           
  2253.           These are selected error codes. A complete selection can
  2254.           be found in the IBM PC BASIC language manual.
  2255.           
  2256.           
  2257.           7 - Out of memory
  2258.           24 - Device timeout (ie printer)
  2259.           25 - Device fault
  2260.           27 - Out of paper
  2261.           51 - Internal error
  2262.           58 - File already exists
  2263.           61 - Disk full
  2264.           64 - Bad file name
  2265.           67 - Too many files on disk
  2266.           68 - Device unavailable (ie printer)
  2267.           70 - Disk is write protected
  2268.           71 - Disk not ready
  2269.           72 - Disk Media error (hardware or media fault)
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.           __________________________________________________________
  2300.             Please become a registered PC-CAI user -- see order form
  2301.                                         39
  2302.  
  2303.  
  2304.           
  2305.           PC-CAI 1.0
  2306.           __________________________________________________________
  2307.           
  2308.           
  2309.                      DISTRIBUTING PROGRAMS WRITTEN IN PC-CAI
  2310.           
  2311.           
  2312.           You may distribute programs written in PC-CAI without
  2313.           royalty under the following conditions.  That is, you may
  2314.           distribute the run-time program CAI.EXE with your commercial
  2315.           or non-commercial programs. For a PC-CAI program to run, you
  2316.           must also have the file BRUN30.EXE on disk.  This is a
  2317.           program from Microsoft that may be distributed free of
  2318.           charge, as long as the appropriate copyright notice is
  2319.           given.
  2320.           
  2321.           1. Your copyright screen on your program should include the
  2322.           phrases:
  2323.           
  2324.           Portions (C)Copyright TexaSoft, Alan C. Elliott, 1985-1989
  2325.           Portions (C)Copyright by Microsoft Corporation 1982-1987
  2326.           
  2327.           2. You must be a registered PC-CAI user, having paid the
  2328.           registration fee directly to TexaSoft.
  2329.           
  2330.           If you give away or distribute the PC-CAI disk, include all
  2331.           files, unaltered.  Always mention that this is a shareware
  2332.           product, and users are expected to register. You may not
  2333.           photocopy and distribute the PC-CAI manual.  Please help by
  2334.           encouraging the registration of copyrighted shareware
  2335.           programs so that these programs may be updated and improved
  2336.           on a regular basis. Thanks.
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.           __________________________________________________________
  2359.             Please become a registered PC-CAI user -- see order form
  2360.                                         40
  2361.  
  2362.  
  2363.           
  2364.           PC-CAI 1.0
  2365.           __________________________________________________________
  2366.           
  2367.              ORDER FORM/REGISTRATION FORM FOR PC-CAI
  2368.   
  2369.   
  2370.        PC-CAI, Computer Aided Instruction language        $___________
  2371.        for the IBM PC  $35. Latest version.
  2372.                                 
  2373.        KWIKSTAT, statistical analysis program & graphics  $___________
  2374.        (t-test, ANOVA, regression, and more) $35
  2375.                       
  2376.        Sub-Total                                          $___________
  2377.   
  2378.        Texas Residents add 7% Tax                         $___________
  2379.   
  2380.        Postage & Handling                                 $  4.00
  2381.        Rush, P.O. or COD add additional $4
  2382.        Overseas, add additional $6                        $___________
  2383.   
  2384.   
  2385.        TOTAL ENCLOSED                                     $
  2386.                                                            ============
  2387.        Payment method:check one
  2388.        _____ Check or M.O.   _____ VISA   _____ Master Card
  2389.        ------------------------------------------------------------
  2390.        IF CREDIT CARD:
  2391.                       
  2392.        Name on Card:_____________________________________________
  2393.                       
  2394.        Type Card is __________________  Exp Date is:_____________
  2395.                                 
  2396.        Card Number is:___________________________________________
  2397.                       
  2398.        Authorized Signature:_____________________________________
  2399.        -----------------------------------------------------------
  2400.   
  2401.        Mail order to:____________________________________________
  2402.             
  2403.        Address:__________________________________________________
  2404.                                 
  2405.        City:___________________ St_______ ZIP ___________________
  2406.                                 
  2407.        Phone (    )______________________________________________
  2408.        -----------------------------------------------------------
  2409.        Please mail to:TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104.
  2410.        Thanks. Phone orders call 214-291-2115. Have MC or VISA ready.
  2411.   
  2412.                                    MAIL TODAY!
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.                                         41
  2420.  
  2421. or VISA ready.
  2422.   
  2423.