home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / steel24.zip / MASTER.TXT < prev    next >
Text File  |  1980-01-01  |  153KB  |  3,260 lines

  1.                       TH┼ DATABAS┼ O╞ STEEL
  2.                     THE SPREADSHEET OF STEEL
  3.                    THE EXPERT SYSTEM OF STEEL
  4.        Copyright 1984, by Potomac Pacific Engineering Inc.
  5.        Licensed FREE to all users with some restrictions.
  6.  
  7.      ReaΣáá anΣáá agreσá t∩á thσá licensσáá conditon≤áá anΣáá ou≥       ì
  8. disclaime≥ oµ warrantie≤ prio≥ t∩ usinτ thi≤ program.
  9.  
  10.                         TABLE OF CONTENTS
  11.      Introduction                             2
  12.                        OPERATIONS PROGRAMS
  13.      Main Program                             3
  14.      Scan Program                             5
  15.      Change Program                           5
  16.      Sort Program                             6
  17.      Print Form Program                       6  
  18.      Transfer Program                         7
  19.      ASCII Program                            7
  20.      ASCII Test Program                       7
  21.                          CUSTOM PROGRAMS
  22.      CFORM Program                            8
  23.      CFILE Program                            8
  24.      CINPUT Program                           9
  25.      CTRANSFE Program                        12
  26.      CLIMITS Program                         13
  27.      CSCREEN Program                         13
  28.      CREAL Program                           14
  29.                          APPLICATIONS 
  30.      Accounting                              15
  31.      Payroll                                 16
  32.      Inventory                               17
  33.      Account≤ Receivable≤ anΣ Payablσ        17
  34.                           PROGRAM LOGIC             
  35.      Initia∞ Menu≤ fo≥ Custoφ Program≤       18
  36.      Lis⌠ oµ File≤                           19
  37.      Datß Entr∙                              19
  38.      Filσ Explanatioε                        20
  39.      Subrecord≤ » Repeatinτ Field≤           21
  40.      Keylis⌠ Explanatioε                     22
  41.      Specification≤                          23 
  42.      Prograφ LengtΦ Limit≤                   24
  43.      Basiπ Languagσ Versioε                  24
  44.      Disclaime≥ oµ Warrantie≤                26 
  45.      Licensσ Informatioε                     27
  46.      Writinτ Program≤ Usinτ thσ Datß Basσ    28
  47.      Systeφ Desigε Note≤                     30
  48.      Inne≥ Working≤ oµ thσ Prograφ           30
  49.      Compilinτ thσ Prograφ ª Erro≥ Trappinτ  35
  50.      Othe≥ Product≤ anΣ Service≤ froφ 
  51.         Potomaπ Pacifiπ Engineerinτ Inπ      36
  52.      Feedbacδ RequesteΣ                      37
  53.      Erro≥ Repor⌠ Forφ                       39
  54.      SPREADSHEE╘ MANUA╠                      41
  55.      EXPERT SYSTEM MANUAL                    48è
  56.                           INTRODUCTION
  57.  
  58.      Thσá Datßá Basσ consist≤ oµ fifteeε programs«á  Thσá fifteeε ì
  59. program≤ fal∞ int∩ tw∩ groups«á  Thσ firs⌠ grou≡ oµ program≤á arσ ì
  60. thσ operation≤ programs«  Thesσ program≤ arσ listeΣ below« 
  61.  
  62. 1« MAI╬ PROGRAM
  63. 2« FOR═ PROGRAM
  64. 3« TRANSFE╥ PROGRAM
  65. 4« SCA╬ PROGRAM
  66. 5« CHANG┼ PROGRAM
  67. 6« SOR╘ PROGRAM
  68. 7« ASCI╔ PROGRAM
  69. 8« TESTASC╔ PROGRAM
  70.  
  71.      Thσá seconΣ grou≡ oµ program≤ arσ thσ custoφ programs«á  Thσ   ì
  72. custoφ program≤ arσ useΣ t∩ se⌠ u≡ thσ datß base«  Notσ tha⌠ eacΦ ì
  73. custoφ prograφ ha≤ ß "Có a≤ thσ star⌠ oµ it'≤ name«á  Thσá custoφ ì
  74. program≤ arσ listeΣ below.
  75.  
  76. 9«  CFIL┼ PROGRAM
  77. 10« CINPU╘ PROGRAM
  78. 11« CSCREE╬ PROGRAM
  79. 12« CTRANSFE╥ PROGRAM
  80. 13« CFOR═ PROGRAM
  81. 14« CLIMIT╙ PROGRAM
  82. 15« CREAL
  83.  
  84.      Mos⌠á user≤á wil∞á bσ usinτ onl∙á thσá operation≤á programs«  ì
  85. Therσá i≤ n∩ neeΣ t∩ learε  anythinτ abou⌠ thσ custoφ program≤ t∩ ì
  86. usσ thσ operation≤ programs«á  Thσ custoφ program≤ wil∞á probabl∙ ì
  87. onl∙á bσá useΣá b∙ thσ persoε wh∩ ha≤ t∩ se⌠ u≡á thσá files¼á thσ ì
  88. forms¼ anΣ thσ transfe≥ descriptions.
  89.     Thosσá oµ yo⌡ wh∩ arσ onl∙ goinτ t∩ bσ usinτá thσá operation≤ ì
  90. program≤á shoulΣ reaΣ thσ operation≤ par⌠ oµ thi≤ manua∞ whicΦ i≤ ì
  91. onl∙á ß fe≈ page≤ long«á  Thosσ oµ yo⌡ wh∩ arσ goinτ t∩ bσá usinτ ì
  92. botΦ thσ operation≤ program≤ anΣ thσ custoφ program≤ shoulΣá reaΣ ì
  93. thσ entirσ manual.
  94.     Thσá easies⌠ wa∙ t∩ learε ho≈ t∩ usσ thi≤ systeφ i≤ t∩ ge⌠ oε ì
  95. thσá compute≥á anΣ tr∙ differen⌠ things«á  I⌠á i≤á impossiblσá t∩ ì
  96. damagσá thσá compute≥á b∙á runninτ thi≤á o≥á an∙á othe≥á softwarσ ì
  97. package«  However¼ makσ surσ yo⌡ arσ usinτ ß samplσ o≥ extrß datß ì
  98. filσá beforσá yo⌡á star⌠á usinτ thσá programs«á  I⌠á i≤á strongl∙ ì
  99. suggesteΣ tha⌠ yo⌡ makσ ß backu≡ cop∙ oµ thσ program.
  100.    
  101.                          GETTIN╟ STARTED
  102.  
  103.     Afte≥ briefl∙ lookinτ ove≥ thi≤ manua∞ yo⌡ shoulΣ jum≡á righ⌠ ì
  104. iεá anΣ tr∙ usinτ thσ programs«á  Tr∙ runninτ thσ prograφ "MAIN"« ì
  105. Yo⌡á havσá t∩ loaΣ thσ operatinτ systeφ (MS-DO╙ o≥á PC-DOS⌐á int∩ ì
  106. memor∙á firs⌠á beforσ yo⌡ tr∙ loadinτ an∙ programs«á Iµá yo⌡á arσ ì
  107. usinτ thσ basiπ versioε theε yo⌡ als∩ havσ t∩ loaΣ you≥ basiπ in«  ì
  108. Iµá yo⌡á arσá usinτ thσ basiπ versioε reaΣ thσá sectioεá oµá thi≤ ì
  109. manua∞ oε thσ Basiπ Languagσ Versioε beforσ runninτ thσ program.è
  110.     1« Tr∙ thσ "MAINó prograφ        
  111.     2« Tr∙ thσ "FORMó prograφ 
  112.     3« Tr∙ thσ "SCANó program
  113.  
  114.      Afte≥á yo⌡á tr∙á ou⌠ thσ program≤ yo⌡á wil∞á havσá ßá bette≥ ì
  115. understandinτá oµ ho≈ the∙ work«á  Theε i⌠ wil∞ bσ easie≥ fo≥ yo⌡ ì
  116. t∩ understanΣ thσ manual.
  117.    
  118.                     OPERATON╙ PROGRA═ MANUAL
  119.  
  120. ***********************¬  MAI╬ PROGRA═  *************************
  121.  
  122.     Yo⌡á wil∞á firs⌠ bσ askeΣ whicΦ filσ yo⌡ wan⌠ t∩á acces≤á anΣ ì
  123. whicΦ disδ drivσ i⌠ i≤ on«á  Al∞ thσ file≤ wil∞ bσ listeΣ b∙ namσ ì
  124. anΣ number«á  T∩ begiε ente≥ thσ numbe≥ theε pres≤á return«á  Seσ ì
  125. thσ Datß Entr∙ Sectioε fo≥ morσ information«á Al∞ thσ disδ drive≤ ì
  126. wil∞á bσ listeΣ b∙ lette≥ anΣ correspondinτ optioεá number«á  Yo⌡ ì
  127. shoulΣá kno≈ o≥ finΣ ou⌠ whicΦ disδ drivσ A¼á disδ drivσ B¼á etc«       
  128.  
  129.     Afte≥á yo⌡ ente≥ thσ filσ numbe≥ anΣ disδ drivσ yo⌡á wil∞á bσ ì
  130. askeΣá wha⌠ yo⌡ wan⌠ t∩ d∩ witΦ thσ filσ anΣ giveε thσá followinτ ì
  131. option≤ ║                                              
  132.    1« REA─á┴áSPECIFI├áRECOR─                                      
  133.    2« PRIN╘ O╬ PAPE╥ AL╠ O╥ SEVERA╠ SEQUENTIA╠ RECORDS
  134.    3« SCA╬ SEVERA╠ RECORD╙ I╬ ┴ FILE
  135.    4« SEARC╚ ┴ NO╬ SORTE─ FILE
  136.    5« NE╫ ENTRY
  137.    6« SEARC╚ ┴ SORTE─ FILE
  138.    7«áRECALCULAT┼áAL╠áTH┼áRECORD╙áI╬á┴áFIL┼                                             
  139.  
  140. Somσá oµá thσ option≤ arσ explaineΣ below«á  Thσ other≤ arσá selµ ì
  141. explanatory.
  142.  
  143.    
  144.                   REA─ ┴ SPECIFI├ RECOR─ OPTION
  145.  
  146.       Thσ "reaΣ ß specifiπ recordó optioε i≤ selµ explanatory.
  147.  Thi≤ optioε als∩ include≤ :
  148.           1«  Correc⌠ o≥ Changσ ß record
  149.           2«  Prin⌠ ß singlσ recorΣ oε paper
  150.           3«  Sho≈ al∞ thσ relateΣ subrecords
  151.                (iµ thσ filσ i≤ se⌠ u≡ witΦ subrecords)
  152.  
  153.                         NE╫ ENTR┘ OPTION
  154.  
  155.      Thσ "ne≈ entr∙ optionó i≤ useΣ t∩ ente≥ aε entirσ ne≈ recorΣ ì
  156. int∩á ß file«á  Mos⌠ oµ thσ field≤ arσ entereΣ b∙ yo⌡ o≥á anothe≥ ì
  157. operator«á  Howeve≥á somσá oµá thσ field≤á arσá computeΣá b∙á thσ ì
  158. computer«á  Fo≥ examplσ iε ß payrol∞ filσ thσ fielΣ tota∞ pa∙ ma∙ ì
  159. bσá computeΣá b∙ multiplyinτ hour≤ workeΣ (ß differen⌠ field⌐á b∙ ì
  160. hourl∙á pa∙á (anothe≥ field)«á  Thσ compute≥á wil∞á automaticall∙ ì
  161. computσ somσ field≤ anΣ displa∙ theφ oε thσ screen.
  162.      Iµ yo⌡ arσ enterinτ datß fo≥ ß filσ tha⌠ ha≤ thσá "subrecorΣ ì
  163. repeatinτá fieldsó optioε theε yo⌡ ma∙ ente≥ ß subrecorΣ b∙ usinτ ìèthσ "ente≥ ß subrecordó option«á  Thσ compute≥ wil∞ theε asδá yo⌡ ì
  164. t∩á ente≥á thσá repeatinτá field≤ anΣ displa∙ theφá oεá thσá samσ ì
  165. screen«á  Iµ an∙ sum≤ arσ specifieΣ fo≥ thσ repeatinτ field≤ theε ì
  166. thσá sum≤ wil∞ appea≥ oε thσ las⌠ line«á  D∩ no⌠ ente≥á an∙á morσ ì
  167. subrecord≤á iµ thσ screeε i≤ alread∙ filleΣ witΦá subrecords«á Iµ ì
  168. thσ screeε i≤ filleΣ witΦ subrecords¼á ente≥ thσ nex⌠ recorΣ theε ì
  169. continuσá witΦ subrecords«á Makσ surσ yo⌡ makσ thσ seconΣ pagσ oµ ì
  170. subrecord≤á differen⌠ froφ thσ firs⌠ page«á Writσ "continuedóá o≥ ì
  171. "seconΣá pagσ oµ twoó iε thσ descriptioε otherwisσá thσá compute≥ ì
  172. wil∞á no⌠á kno≈á wherσá thσá firs⌠á screeεá ends«áá  Thσá prograφ ì
  173. identifie≤á thσ enΣ oµ thσ subrecord≤ b∙ detectinτ an∙ changσá iε ì
  174. an∙ onσ oµ thσ nonrepeatinτ fields.
  175.  
  176.                       SEARC╚ ┴ SORTE─ FILE
  177.  
  178.      Firs⌠á yo⌡á shoulΣ onl∙ usσ thi≤ optioε oε ß sorteΣ filσá o≥ ì
  179. thσá searcΦ wil∞ no⌠ finΣ thσ recorΣ yo⌡ arσ lookinτá for«á  Thi≤ ì
  180. optioεá i≤ useΣ t∩ finΣ thσ recorΣ numbe≥ whicΦ ha≤ thσ valuσá iε ì
  181. thσ fielΣ tha⌠ yo⌡ arσ lookinτ for«á  Fo≥ examplσ yo⌡ ma∙ wan⌠ t∩ ì
  182. searcΦá ßá sorteΣ filσ oµ paycheck≤ fo≥ thσ recorΣ iεá whicΦá thσ ì
  183. employeσ numbe≥ i≤ 15«á  Iµ morσ theε onσ recorΣ ha≤ thσ employeσ ì
  184. numbe≥á equa∞á t∩ 1╡ theε thσ lowes⌠ recorΣ numbe≥ iεá whicΦá thσ ì
  185. recorΣá numbe≥á i≤á 1╡á i≤ returned«á  Agaiεá thσá filσá yo⌡á arσ ì
  186. searchinτá mus⌠ havσ beeε sorteΣ oε thσ fielΣ yo⌡á arσá searchinτ ì
  187. for.
  188.  
  189.                     SEARC╚ ┴ NONSORTE─ FILE
  190.  
  191.      Thi≤á optioεá i≤ simila≥ t∩ thσ abovσ option«á  Yo⌡ ma∙á usσ ì
  192. thi≤ optioε oε ß nonsorteΣ o≥ sorteΣ file«  Thi≤ searcΦ i≤ onl∙ ß ì
  193. sequentia∞ scaε oµ thσ filσ t∩ searcΦ fo≥ thσ valuσ yo⌡á specify«  ì
  194. Thσá compute≥ wil∞ asδ yo⌡ whicΦ recorΣ numbe≥ yo⌡ wan⌠ t∩á star⌠ ì
  195. thσ searcΦ at«á  Thσ compute≥ wil∞ theε sho≈ yo⌡ thσ firs⌠ recorΣ ì
  196. tha⌠ contain≤ thσ valuσ yo⌡ arσ searchinτ for«  Iµ yo⌡ theε pres≤ ì
  197. thσá returε ke∙ fo≥ optioε #▒ (sho≈ thσ nex⌠ record⌐ thσ compute≥ ì
  198. wil∞á sho≈á yo⌡á thσá nex⌠ recorΣ tha⌠á ha≤á thσá valuσá yo⌡á arσ ì
  199. searchinτá for«á  A⌠ thσ enΣ oµ thσ filσ thσ compute≥ wil∞ returε ì
  200. t∩ thσ filσ options«á  Iµ nonσ oµ thσ record≤ iε thσ filσ contaiε ì
  201. thσá valuσ yo⌡ arσ lookinτ for¼á thσ prograφ wil∞ returε t∩á filσ ì
  202. options.
  203.  
  204.                  RECALCULATE ALL RECORDS OPTION
  205.  
  206.       Usσ thi≤ optioε onl∙ iµ yo⌡ kno≈ wha⌠ yo⌡ arσá doing«á Thi≤ ì
  207. option≤á onl∙ ha≤ t∩ bσ useΣ afte≥ usinτ thσ transfe≥ prograφá o≥ ì
  208. afte≥á usinτ thσ changσ program«á  Thi≤ optioε wil∞ usσ thσ inpu⌠ ì
  209. descriptioεá t∩á recalculatσá al∞ thσ record≤á iεá ßá file«á  Fo≥ ì
  210. example¼á iµá yo⌡á transfe≥á you≥ accountinτá entrie≤á  froφá thσ ì
  211. journa∞ t∩ thσ accoun⌠ summary¼á thσ balancσ fielΣ ma∙ bσ ou⌠á oµ ì
  212. balance«  Thi≤ optioε wil∞ g∩ througΦ al∞ thσ record≤ iε thσ filσ ì
  213. anΣá recalculatσ thσ balancσ iε eacΦ file«á  Thi≤ optioε wil∞ no⌠ ì
  214. recalculatσ ta° informatioε (inpu⌠ optioε 6⌐ no≥ wil∞ i⌠ ge⌠ datß ì
  215. froφ anothe≥ filσ (inpu⌠ optioε 2)«  
  216.  
  217.    è***********************¬  SCA╬ PROGRA═  *************************
  218.  
  219.      Thσ scaε prograφ scan≤ thσ record≤ lookinτ fo≥ record≤á tha⌠ ì
  220. mee⌠á condition≤ tha⌠ yo⌡ specify«á  Fo≥ examplσ yo⌡ ma∙ wan⌠á t∩ ì
  221. scaεá you≥ custome≥ record≤ readinτ onl∙ thσ record≤ iε whicΦ thσ ì
  222. custome≥ ordereΣ ove≥ $1,00░ oµ good≤ iε thσ pas⌠ year«   
  223.      Thσ scaε prograφ als∩ ha≤ thσ option≤ t∩ suφ thσ field≤á anΣ ì
  224. suφ witΦ subtotal≤ b∙ anothe≥ field.
  225.      
  226.     Thσá compute≥á wil∞á sho≈á yo⌡ eacΦ fielΣ anΣá asδá yo⌡á wha⌠ ì
  227. conditioεá yo⌡á wan⌠á fo≥á thσá field«áá  Thσá option≤á arσá selµ ì
  228. explanator∙ anΣ arσ listeΣ belo≈ :
  229.  
  230.  - equal≤ ß certaiε value
  231.      o≥ equal≤ onσ oµ severa∞ multiplσ values
  232.  - greate≥ thaε ß valuσ yo⌡ specif∙ 
  233.  - les≤ thaε ß valuσ yo⌡ specify
  234.  - betweeε tw∩ value≤ yo⌡ specify
  235.  - an∙ valuσ i≤ acceptable
  236.  
  237.  
  238.      Iµá yo⌡á specif∙á ßá conditioε fo≥ thσá fielΣá t∩á mee⌠á thσ ì
  239. compute≥ wil∞ theε asδ yo⌡ iµ yo⌡ wan⌠ thσ conditioε t∩ bσ :
  240.       1« Logica∞ AnΣ   
  241.       2« Logica∞ Or
  242.      Fo≥ examplσ yo⌡ ma∙ wan⌠ t∩ prin⌠ ou⌠ thσ recorΣ oµ al∞ you≥ ì
  243. customer≤á wh∩ havσ ordereΣ ove≥ $1000.0░ wortΦ oµá widget≤á froφ ì
  244. yo⌡ AN─ havσ ordereΣ an∙ merchandisσ withiε thσ pas⌠ month.
  245.      Oεá thσ othe≥ hand¼á yo⌡ ma∙ wan⌠ t∩ prin⌠ ou⌠ thσ recorΣ oµ ì
  246. al∞ customer≤ wh∩ havσ ordereΣ ove≥ $1000.0░ wortΦ oµ widget≤á O╥ ì
  247. wh∩á havσ ordereΣ an∙ merchandisσ withiε thσ pas⌠ month«á Iεá thσ ì
  248. logica∞ AN─ botΦ condition≤ mus⌠ bσ met«á  Iε thσ logica∞ O╥ onl∙ ì
  249. onσ conditioε ha≤ t∩ bσ mee⌠ fo≥ thσ recorΣ t∩ bσ accepted«á  Thσ ì
  250. res⌠ oµ thσ optioε i≤ selµ explainatory.
  251.    
  252. **********************¬  CHANG┼ PROGRA═  ************************
  253.  
  254.      Thσá changσ prograφ i≤ simila≥ t∩ thσ "SCANóá program«á  Thσ ì
  255. differencσá i≤ tha⌠ thσ changσ prograφ wil∞ changσ thσ value≤á oµ ì
  256. thσá field≤á tha⌠ yo⌡ specify«á  Yo⌡ wil∞ bσ ablσ t∩ specif∙á thσ ì
  257. samσá conditon≤ tha⌠ yo⌡ specif∙ iε thσ scaε program«á  Yo⌡á wil∞ ì
  258. theε bσ ablσ t∩ changσ eacΦ recorΣ tha⌠ meet≤ thσ condition≤á yo⌡ ì
  259. specify«á  Fo≥ eacΦ fielΣ iε thσ file¼á thσ compute≥ wil∞ asδ yo⌡ ì
  260. wha⌠ typσ oµ changσ yo⌡ wan⌠ b∙ givinτ yo⌡ thσ followinτ options:
  261.      1« N∩ change.
  262.      2« Se⌠ thσ fielΣ equa∞ t∩ ß constant.
  263.      3« AdΣ ß constan⌠ t∩ olΣ field'≤ valuσ (usσ ß negativσ t∩ 
  264.             subtract).
  265.      4« Multipl∙ thσ olΣ valuσ b∙ ß constant.
  266.      5«á AdΣá ßá constan⌠á t∩á ß differen⌠ field≤á valuσá (usσá ß             ì
  267.             negativσ t∩ subtract).
  268.      6« Multipl∙ ß differen⌠ field≤ valuσ b∙ ß constant.
  269.  
  270.  
  271.      Fo≥ example¼á iµ yo⌡ wanteΣ t∩ raisσ al∞ you≥ price≤ b∙á 10Ñ ìèyo⌡ coulΣ usσ optioε #┤ t∩ multipl∙ thσ pricσ fielΣ b∙ 1.▒ «á  Iµ ì
  272. yo⌡á wanteΣ t∩ se⌠ al∞ you≥ price≤ t∩ 200Ñ oµ you≥ cos⌠ yo⌡ coulΣ ì
  273. usσá optioε #╢ t∩ multipl∙ you≥ cos⌠ fielΣ b∙ ▓ t∩ generatσá you≥ ì
  274. pricσá field«á  Iµá yo⌡á onl∙ wanteΣ t∩ change≤á you≥á price≤á iε ì
  275. departmen⌠á #5¼á theεá yo⌡ coulΣ specif∙ tha⌠ yo⌡á onl∙á wan⌠á t∩ ì
  276. changσ thσ pricσ iε tha⌠ department.
  277.  
  278. **¬  ALWAY╙ MAK┼ ┴ BACKU╨ COP┘ BEFOR┼ RUNNIN╟ THI╙ PROGRA═  ***
  279.  
  280.                         CREATIN╟ SUBFILE╙ 
  281.  
  282.      Yo⌡á caεá makσá ß cop∙ oµ thσ changeΣ filσá oεá ßá differen⌠ ì
  283. drive«á  Yo⌡á caεá als∩ makσ ß cop∙ oµ al∞ thσ record≤ tha⌠á mee⌠ ì
  284. certaiεá conditions«á  Yo⌡á caεá specif∙á "N╧á CHANGEóá fo≥á eacΦ ì
  285. variablσá iµá yo⌡ onl∙ wan⌠ t∩ makσ ß cop∙ oµ record≤á tha⌠á mee⌠ ì
  286. certaiε conditions« 
  287.  
  288.                         DELETIN╟ RECORDS
  289.  
  290.      I⌠ i≤  usuall∙ no⌠ advisablσ t∩ deletσ record≤ unles≤ i⌠á i≤ ì
  291. absolutel∙á necessary«á  I⌠á i≤á possiblσá t∩á overwritσá record≤ ì
  292. insteaΣ oµ deletinτ records«á  Yo⌡ caε deletσ record≤ b∙ changinτ ì
  293. thσ valuσ oµ onσ fielΣ t∩ it≤ maximuφ anΣ theε usinτ thσ "CHANGEó ì
  294. prograφá t∩á cop∙ al∞ value≤ les≤ theε thσ maximuφá t∩á ßá seconΣ ì
  295. file«á  Fo≥á examplσ iµ yo⌡ havσ ß custome≥ lis⌠ anΣ yo⌡ wan⌠á t∩ ì
  296. deletσá somσ inactivσ customer≤ yo⌡ coulΣ changσ thei≥ zi≡á code≤ ì
  297. t∩ 9999╣ theε usσ thσ "CHANGEó prograφ t∩ cop∙ al∞ zi≡ code≤ les≤ ì
  298. thaε 9999╣ t∩ ß seconΣ file«  
  299.  
  300.  
  301. ***********************¬  SOR╘ PROGRA═  *************************
  302.                                            
  303.      Sortinτá file≤ i≤ aε extremel∙ valuablσ tool«á File≤ ma∙á bσ ì
  304. sorteΣ b∙ morσ theε onσ variable«á  Fo≥ examplσ t∩ sor⌠ ß filσ b∙ ì
  305. datσ yo⌡ wil∞ probabl∙ havσ t∩ sor⌠ thσ filσ b∙ thσ montΦ theε b∙ ì
  306. thσ day«  Thσ sor⌠ optioε caε sor⌠ ß file≤ b∙ u≡ t∩ threσ fields.
  307. Wheεá sortinτ oε ▓ o≥ │ numeriπ fields¼á thσ sor⌠ prograφ ma∙ no⌠ ì
  308. sor⌠á properl∙ iµ  thσ value≤ oµ thσ field≤ diffe≥ b∙ morσ thσá ╡ ì
  309. order≤ oµ magnitude« 
  310.      Thσáá sor⌠á optioεá wil∞á als∩á sor⌠á strinτá variable≤áá iε ì
  311. alphabetica∞á order«á  Fo≥ alphabetica∞ sort≤ ß filσ ma∙ onl∙á bσ ì
  312. sorteΣ b∙ onσ variable«                                       
  313.      Thσ sor⌠ optioε create≤ ß seconΣ sorteΣ filσ oε thσ ┬ flopp∙ ì
  314. disδá drive«á  Thσ origina∞ filσ oε thσ firs⌠ flopp∙ disδ i≤á no⌠ ì
  315. changed« 
  316.      Thσá Sor⌠ optioε ma∙ takσ ß fe≈ minute≤ wheεá sortinτá file≤ ì
  317. ove≥á 1,00░ records«á Usinτ thσ compileΣ versioε wil∞ reducσá thσ  ì
  318. sortinτá timσá b∙ 75Ñ t∩ 90%«á  Iµ yo⌡ arσ usinτ ß compute≥á tha⌠ ì
  319. doe≤á no⌠á havσ tw∩ disδ drive≤ yo⌡ canno⌠ usσ thσá sor⌠á prograφ ì
  320. withou⌠ extensivσ modification≤ t∩ thσ sor⌠ program.
  321.         
  322. ******************¬  PRIN╘ (form⌐ PROGRA═  ********************
  323.  
  324.      Al∞ yo⌡ havσ t∩ d∩ i≤ chosσ whicΦ forφ t∩ print«  Theε chosσ ì
  325. whicΦá recorΣá t∩á star⌠ printinτ thσ form≤ a⌠á anΣá chosσá whicΦ ìèrecorΣá t∩á sto≡á printinτ thσ form≤ at«á  EacΦ forφá i≤á jus⌠á ß ì
  326. selectivσ printinτ ou⌠ oµ thσ record≤ iε ß file.
  327.      
  328. *********************¬  TRANSFE╥ PROGRA═  ***********************
  329.  
  330.      Thσ transfe≥ prograφ i≤ useΣ t∩ transfe≥ datß froφ onσá filσ ì
  331. t∩ another.
  332.                
  333. D╧á NO╘á US┼ THI╙ PROGRA═ O╬ YOU╥ FILE╙ UNLES╙ YO╒ KNO╫ WHA╘á YO╒ ì
  334. AR┼ DOING«  
  335.      
  336.      Usinτ thσ transfe≥ prograφ i≤ rathe≥ simple«á  Al∞ yo⌡á havσ ì
  337. t∩á d∩á i≤ ente≥ whicΦ transfe≥ yo⌡ want¼á  thσá startinτá recorΣ ì
  338. numbe≥ t∩ transfe≥ anΣ thσ las⌠ recorΣ numbe≥ t∩ transfer.
  339.  
  340. ***********************¬  ASCI╔ PROGRA═  ************************
  341.  
  342.      Thσá "ASCIIó prograφ i≤ useΣ t∩ conver⌠ thσ datß file≤á tha⌠ ì
  343. yo⌡á ente≥á froφá thσ basiπ randoφ acces≤ forφ t∩á aεá sequentia∞ ì
  344. ASCI╔á form«á  Iεá thσ basiπ randoφ acces≤ filσ thσá number≤á arσ ì
  345. storeΣá iεá ß condenseΣ binar∙ forφ whicΦ save≤ spacσ bu⌠ i≤á no⌠ ì
  346. readablσá b∙á othe≥á programs«á  Thi≤ prograφá wil∞á conver⌠á thσ ì
  347. record≤á yo⌡á specif∙ int∩  sequentia∞ forφá witΦá thσá followinτ ì
  348. forma⌠ :
  349.   "Johε Doσ ",23┤ ¼ 12│ ¼ 3.4╡ <LF,CR>
  350. Al∞á string≤á wil∞ bσ surroundeΣ b∙ quotes«á  Coma≤á  arσá placeΣ ì
  351. betweeε fields«  A⌠ thσ enΣ oµ eacΦ recorΣ therσ wil∞ bσ thσ linσ ì
  352. feeΣá anΣ carriagσ returε ASCI╔ code«á  Thσ targe⌠ filσ wil∞ havσ ì
  353. thσ namσ "ASCIDATA"«  
  354.      Thσá compute≥ wil∞ asδ yo⌡ whicΦ recorΣ numbe≥ yo⌡á wan⌠á t∩ ì
  355. star⌠á convertinτ datß at«á  Nex⌠ thσ compute≥ wil∞ asδ yo⌡ whicΦ ì
  356. recorΣá numbe≥á yo⌡ wan⌠ t∩ enΣ convertinτá datßá at«á  Nex⌠á thσ ì
  357. compute≥á wil∞á conver⌠á thesσ record≤ t∩ thσá ASCI╔á form«á  Thσ ì
  358. compute≥ wil∞ theε agaiε asδ yo⌡ whicΦ recorΣ numbe≥ yo⌡ wan⌠á t∩  ì
  359. star⌠á convertinτá datßá at«áá  Ente≥á zer∩á wheεá yo⌡á arσá donσ ì
  360. convertinτá data«á  Fo≥á examplσá yo⌡ ma∙ onl∙á wan⌠á t∩á conver⌠  ì
  361. recorΣá number≤ 1░ througΦ 2░ anΣ 3░ througΦ 5░ t∩ usσ iε ßá worΣ ì
  362. processinτ program«  
  363.  
  364.      Yo⌡á ma∙á wan⌠ t∩ usσ thi≤ prograφ t∩ usσ somσ record≤ oεá ß ì
  365. worΣá processor«á  Yo⌡ caε mergσ thσ "ASCIDATAó filσ witΦ onσá oµ ì
  366. you≥á tex⌠á file≤á iµá thi≤ optioεá i≤á availablσá oεá you≥á worΣ ì
  367. processor«á  Man∙á othe≥ commercia∞ program≤ sucΦ a≤ Mailsta≥ usσ ì
  368. datß iε thσ sequentia∞ ASCI╔ form«     
  369.  
  370.  
  371.                         TESTASC╔ PROGRA═ 
  372.  
  373.      Thσ TESTASC╔ prograφ i≤ ß ver∙ shor⌠ program«á  Al∞ i⌠á doe≤ ì
  374. i≤á reaΣá thσ "ASCIDATAó datß filσ tha⌠ wa≤ createΣ b∙ thσá abovσ ì
  375. prograφ anΣ show≤ thσ filσ oε  thσ screen«á  Yo⌡ shoulΣ usσá thi≤ ì
  376. prograφá t∩á makσ surσ yo⌡ converteΣ thσ correc⌠ record≤á iεá thσ ì
  377. abovσ program.
  378.  
  379. è                         CUSTO═ PROGRAMS
  380.  
  381.      Thσá "Custoφ Program≤ arσ useΣ t∩ customizσ thσá files¼á thσ ì
  382. forms¼á thσ transfe≥ options¼á thσ screens¼ se⌠ thσ limits« Thesσ ì
  383. program≤á shoulΣ onl∙ bσ useΣ b∙ person≤ authorizeΣ t∩ se⌠ anΣ o≥ ì
  384. changσá an∙ oµ thσ filσ descriptions¼á form≤ o≥ transfe≥á option≤ ì
  385. etc«á  Obviousl∙ thσ peoplσ wh∩ d∩ no⌠ usσ thesσ program≤ d∩á no⌠ ì
  386. havσá t∩á learε ho≈ t∩ usσ them«á  Thi≤ cut≤ dowε greatl∙ oεá thσ ì
  387. timσ i⌠ take≤ t∩ traiε personnel.
  388.     
  389. ***********************¬  CFOR═ PROGRA═  ************************
  390.   
  391.      Thσá forφá definitioεá program≤ arσ useΣá t∩á ente≥á ßá forφ ì
  392. description«á  Thσá forφá definitioε prograφ i≤ divideΣ int∩á tw∩ ì
  393. majo≥ part≤ ║ 
  394.            1« Ente≥ ß ne≈ form
  395.            2« ReaΣ ß forφ description
  396.                 witΦ - corrections/changσ description
  397.                      - prin⌠ forφ descriptioε oε paper
  398.      Beforσ enterinτ ß ne≈ forφ yo⌡ shoulΣ figurσ ou⌠ thσá layou⌠ ì
  399. oµá you≥ form«á  Decidσ ho≈ man∙ line≤ yo⌡ neeΣ fo≥ thσ forφá anΣ ì
  400. ho≈ man∙ column≤ ove≥ thσ differen⌠ entrie≤ oε eacΦ linσ wil∞ be.
  401.   
  402.      Aε entr∙ oε ß forφ ma∙ bσ eithe≥ :
  403.            1« ┴ strinτ o≥ numeriπ constant
  404.            2« CopieΣ froφ thσ file
  405.            3« Thσ valuσ correspondinτ t∩ ß key
  406.            4« Blank
  407.      EacΦ forφ correspond≤ t∩ onσ recorΣ iε ß file«   
  408.     
  409. ***********************¬  CFIL┼ PROGRA═  ************************
  410.  
  411.      Thσá filσ definitioε program≤ arσ useΣ t∩ ente≥ anΣ reaΣ thσ ì
  412. filσ descriptions«  Thσ option≤ oε thσ initia∞ men⌡ arσ :
  413.          1« Ente≥ ß filσ description
  414.          2« ReaΣ ß singlσ filσ description
  415.          3« ReaΣ al∞ thσ filσ descriptions
  416.          4« Prin⌠ oε pape≥ onσ filσ description
  417.          5« Prin⌠ oε pape≥ al∞ thσ filσ descriptions
  418.  
  419.      T∩ ente≥ ß filσ descriptioε thσ compute≥ wil∞ asδ yo⌡ fo≥ 
  420.          1«á Thσá filσ namσ - Mus⌠ bσ ╕ character≤á o≥á less¼á n∩                                ì
  421.                               spaces«  Thσ firs⌠ ácharacte≥  mus⌠                                ì
  422.                               bσ ß letter«  Thσ compute≥ will
  423.                               no⌠ accep⌠ aε invaliΣ filσ namσ 
  424.                               i⌠á wil∞á asδá fo≥á anothe≥á name«       
  425.          2«  Thσ numbe≥ oµ field≤ iε eacΦ recorΣ - ▒ t∩ 28
  426.          3«  Fo≥ eacΦ fielΣ thσ compute≥ wil∞ asδ yo⌡ :
  427.               A« I≤ thσ fielΣ ß numbe≥ o≥ string?
  428.                  Iµá yo⌡á answe≥ ß numbe≥ thσ compute≥ wil∞á theε                  ì
  429. áááááááááááááááááasδ yo⌡ iµ thσ numbe≥ i≤ :
  430.                   a⌐ aε intege≥ - ma∙ bσ declareΣ ß ke∙ t∩ ß list
  431.                   b⌐ singlσ precisioε - ╢ digit≤ accuracy
  432.                   c⌐ doublσ precisioε - 1╢  digit≤ accurac∙ 
  433.                   d⌐ dolla≥ anΣ cent≤ amountè                 Iµá yo⌡ answe≥ ß strinτ theε thσá compute≥á wil∞                  ì
  434.                  asδ  yo⌡  wha⌠  i≤ thσ maximuφ  lengtΦ  oµ  thσ    
  435.                  string
  436.  
  437.       Wheε yo⌡ ente≥ ß ne≈ filσ thσ prograφ automaticall∙ ║      
  438.  1« Set≤ thσ inpu⌠ optioε fo≥ eacΦ filσ t∩ ▒ fo≥ operato≥ 
  439.      entr∙ anΣ set≤ thσ promp⌠ t∩ thσ nul∞ string.
  440.  2« Set≤ thσ limit≤ flaτ t∩ "n∩ limits".
  441.  3« Set≤ thσ thσ screeε flaτ t∩ "n∩ custoφ screen".
  442.  4« Set≤ thσ realtimσ flaτ t∩ "n∩ realtimσ transfer".
  443.  
  444.      Oncσ yo⌡ se⌠ u≡ ß filσ usinτ thσ CFIL┼ prograφ yo⌡ ma∙ star⌠ ì
  445. usinτá thσ file«á  Usinτ thσ CSCREEN¼á CLIMITS¼á CINPU╘ anΣ CREA╠ ì
  446. program≤ i≤ optional« 
  447.      D∩á no⌠ changσ o≥ overwritσ thσ KEYLIS╘ o≥ thσá TAXSC╚á filσ ì
  448. unles≤ yo⌡ kno≈ wha⌠ yo⌡ arσ doing.
  449.  
  450. **********************¬  CINPU╘ PROGRAM╙  ***********************
  451.  
  452.      Thσá inpu⌠ descriptioε program≤ arσ useΣ t∩ se⌠ u≡ thσá  ne≈ ì
  453. datßá entr∙ iε thσ maiε program«á  Fo≥ example¼á yo⌡ ma∙ wan⌠á t∩ ì
  454. declarσá tha⌠á onσá fielΣ i≤ equa∞ t∩ thσ produc⌠á oµá tw∩á othe≥ ì
  455. fields«  Thσ threσ option≤ oε thσ initia∞ men⌡ arσ :
  456.         1« Ente≥ ß ne≈ inpu⌠ description.
  457.         2« ReaΣ ß inpu⌠ description.
  458.         3« Prin⌠ oε pape≥ ß inpu⌠ description.
  459.  
  460.      T∩á ente≥ ß ne≈ inpu⌠ descriptioε thσ compute≥ wil∞ asδá yo⌡ ì
  461. whicΦá filσá yo⌡á wan⌠ t∩ customize«á  Theε fo≥ eacΦ fielΣá iεá ß ì
  462. recorΣá oµ thσ filσ thσ compute≥ wil∞ asδ yo⌡ wha⌠ typσ oµá inpu⌠ ì
  463. yo⌡ wan⌠ fo≥ thσ fielΣ anΣ wil∞ givσ yo⌡ thσ followinτ options.
  464.          
  465.                         1« OPERATO╥ ENTRY
  466.  
  467.      Thσ compute≥ operato≥ wil∞ ente≥ thσ numbe≥ o≥ strinτ a⌠ thσ ì
  468. keyboard«á  Yo⌡ wil∞ bσ askeΣ t∩ givσ ß prompt«á  Thσ promp⌠ wil∞ ì
  469. bσ displayeΣ durinτ thσ maiε prograφ wheε thσ inpu⌠ i≤á required«  ì
  470. Thσá fielΣ namσ i≤ als∩ displayeΣ  wheε thσ inpu⌠ i≤ requireΣ  s∩ ì
  471. yo⌡á d∩ no⌠ havσ t∩ duplicatσ thσ fielΣ namσ iε thσá prompt«á Fo≥ ì
  472. examplσá iµá yo⌡ havσ ß fielΣ witΦ ß namσ "Worδ Centeróá yo⌡á ma∙ ì
  473. wan⌠ t∩ havσ ß promp⌠ witΦ somethinτ likσ :
  474. "▒ - sale≤ 2-accountinτ 3-shippinτ 4-officσ 5-lega∞ 6-R&─ "
  475. s∩ tha⌠ thσ operato≥ wil∞ no⌠ becomσ confused.
  476.  
  477.                    2« GE╘ FRO═ ANOTHE╥ FILE
  478.  
  479.      Thσá valuσ oµ thσ fielΣ wil∞ bσ obtaineΣ froφ anothe≥á file«  ì
  480. Thσá compute≥á wil∞ asδ yo⌡ froφ whicΦ filσ yo⌡ wan⌠ t∩á ge⌠á thσ ì
  481. data«á  YO╒á MA┘ ONL┘ GE╘ DAT┴ FRO═ ON┼ FIL┼ «á  Yo⌡ ma∙ no⌠á ge⌠ ì
  482. datßá froφ thσ payrol∞ filσ fo≥ fielΣ ▒ anΣ theε tr∙ t∩ ge⌠á datß ì
  483. froφá thσ inventor∙ filσ fo≥ fielΣ 2«á  B∙ efficientl∙á designinτ ì
  484. you≥ file≤ s∩ tha⌠ onσ filσ caε obtaiε al∞ thσ datß i⌠ need≤ froφ ì
  485. ON┼á othe≥á filσ yo⌡ wil∞ greatl∙ simplif∙ you≥á datßá managemen⌠ ì
  486. task« (Iµ yo⌡ mus⌠ ge⌠ datß froφ morσ theε onσ filσ yo⌡ caε writσ ì
  487. you≥ owε custoφ inpu⌠ subroutine.)è     Thσ compute≥ wil∞ asδ yo⌡ 
  488.           a⌐ froφ whicΦ filσ yo⌡ wan⌠ thσ data« 
  489.           b⌐ froφ whicΦ fielΣ yo⌡ wan⌠ thσ data« 
  490.           c⌐ whicΦ fielΣ oµ curren⌠ entr∙ i≤ equa∞ t∩ thσá recorΣ ì
  491. numbe≥ froφ whicΦ yo⌡ wan⌠ thσ data«á  Fo≥ example¼ iε enterinτ ß ì
  492. recorΣá iεá thσá paychecδá filσ thσ firs⌠á entr∙á shoulΣá bσá thσ ì
  493. employeσ number«  Theε thσ employeσ numbe≥ shoulΣ bσ equa∞ t∩ thσ ì
  494. recorΣá numbe≥ iε thσ employeσ filσ wherσ yo⌡ wan⌠ t∩ obtaiε somσ ì
  495. morσ datß froφ (likσ hi≤ pa∙ ratσ anΣ deductions).
  496.  
  497.                 3« AD─ SEVERA╠ PREVIOU╙ FIELDS
  498.                 4« SUBTRAC╘ TW╧ PREVIOU╙ FIELDS
  499.                 5« MULTIPL┘ TW╧ PREVIOU╙ FIELDS
  500.                13« DIVID┼ TW╧ PREVIOU╙ FIELDS
  501.  
  502.      Yo⌡ ma∙ onl∙ perforφ thesσ operation≤ oε lowe≥ numbe≥ field≤ ì
  503. iε thσ samσ recorΣ numbe≥ tha⌠ havσ alread∙ beeεá computed«á  Thσ ì
  504. compute≥á wil∞á no⌠á le⌠ yo⌡ perforφ an∙ oµ thesσá operation≤á oε ì
  505. string≤ (Yo⌡ canno⌠ adΣ letters).
  506.  
  507.  
  508.                 8« MAXIMU═ O╞ PREVIOU╙ FIELDS
  509.                 9« MINIMU═ O╞ PREVIOU╙ FIELDS
  510.  
  511.       Yo⌡á ma∙á onl∙á perforφ thesσ operation≤á oεá lowe≥á numbe≥ ì
  512. field≤á iε thσ samσ recorΣ numbe≥ tha⌠ havσ alread∙ beeεá entereΣ ì
  513. o≥á computed«á  Yo⌡á ma∙ comparσ ▓ t∩ ╡á differen⌠á fields«á  Thσ ì
  514. compute≥ wil∞ asδ yo⌡ whicΦ field≤ yo⌡ wan⌠ t∩ compare.
  515.  
  516.                            7.CONSTANT
  517.  
  518.      Thσá fielΣá i≤ alway≤ equa∞ t∩ thσ samσá number«á  Yo⌡á wil∞ ì
  519. probabl∙á   onl∙á neeΣ t∩ usσ ß constan⌠ wheε late≥ usinτ onσá oµ ì
  520. thσ arithmetiπ type≤ oµ input«á  Fo≥ examplσ whilσ computinτ you≥ ì
  521. taxe≤á yo⌡ ma∙ wan⌠ thσ compute≥ t∩ automaticall∙á multipl∙á you≥ ì
  522. ne⌠á incomσá b∙ .09│ t∩ pa∙ you≥ selµá employmen⌠á   taxes«á  Yo⌡ ì
  523. coulΣáá firs⌠á ente≥á thσá constan⌠á .09│á int∩á ßá fielΣá beforσ ì
  524. multiplying.
  525.  
  526.                 10.MULTIPL┘ B┘ ┴ CONSTANT
  527.                 11.AD─ ┴ CONSTANT
  528.                 12.SUBTRAC╘á┴ CONSTAN╘ FRO═ ┴ PREVIOU╙ FIELD
  529.  
  530.      Thesσ option≤ asδ yo⌡ t∩ ente≥ ß constan⌠ whicΦ wil∞ bσ useΣ ì
  531. t∩ perforφ onσ oµ thσ abovσ operations«á  Fo≥ example¼ iε thσ ta° ì
  532. listeΣá abovσá yo⌡ coulΣ jus⌠ usσ thσ optioε #1░ "multipl∙á b∙á ß ì
  533. constantóá rathe≥á theε lettinτ thσ constan⌠ takσ u≡ ßá fielΣá iε ì
  534. you≥ file.
  535.                    
  536.                    6.COMPUT┼ USIN╟ TA╪ TABLES
  537.  
  538.       Thi≤á optioεá allow≤ yo⌡ t∩ computσ mos⌠á taxes«á  Thσá ta° ì
  539. table≤á arσá containeΣá iε thσ filσá "TAXSCHóá anΣá contain≤á thσ ì
  540. followinτ fields║  
  541. è      1⌐ DESCRIPTIO╬  - Doe≤ no⌠ affec⌠ an∙ oµ thσ calculations
  542. i⌠ i≤ jus⌠ useΣ t∩ kee≡ it≤ descriptioε t∩ enablσ yo⌡ t∩ remembe≥ ì
  543. whicΦ ta° tablσ i⌠ i≤ par⌠ of.
  544.  
  545.       2)FE─ O╥ STAT┼ NUMBE╥ - Yo⌡ ma∙ wan⌠ t∩ kee≡ thσ ta° table≤ 
  546. fo≥ thσ Federa∞ Ta° anΣ onσ o≥ morσ states«á  Le⌠ thσ Federa∞ ta° ì
  547. havσ numbe≥ 1¼ anΣ thσ statσ ta° table≤ havσ numbe≥ 2,3,...
  548.  
  549.       3)PA┘á PERIO─ NUMBE╥   - Iµ yo⌡ usσ morσ thaεá onσá payrol∞ ì
  550. period¼ sucΦ a≤ weekl∙ fo≥ somσ employee≤ anΣ monthl∙ fo≥ others¼ ì
  551. yo⌡ wil∞ neeΣ t∩ usσ tw∩ withholdinτ ta° schedules«á  Fo≥ examplσ ì
  552. numbe≥á thσá weekl∙ pa∙ perioΣ numbe≥ 1¼á thσ monthl∙ pa∙á perioΣ ì
  553. numbe≥ ▓ ....
  554.  
  555.      4)MARRIED/SINGL┼  - ▒ ╜ singlσ ¼á ▓ ╜ marrieΣ ,Yo⌡ ma∙á wan⌠ ì
  556. t∩á usσ │ ╜ unmarrieΣ heaΣ oµ householΣ iµ yo⌡ livσ iε Californiß ì
  557. o≥ somσ othe≥ statσ tha⌠ ha≤ differen⌠ ta° tables
  558.  
  559.      5)MINIMU═ FO╥ RAT┼ - Thi≤ i≤ thσ dolla≥ amoun⌠ tha⌠ onσ mus⌠ ì
  560. earε iε thσ payrol∞ perioΣ t∩ havσ thi≤ ta° ratσ appl∙ .
  561.  
  562.      6)MAXIMU═ FO╥ RAT┼ - Thi≤ i≤ thσ highes⌠ dolla≥ amoun⌠á tha⌠ ì
  563. onσ caε earε whilσ stil∞ remaininτ iε thi≤ bracke⌠ 
  564.  
  565.      7)TAXñá  - Thi≤ i≤ thσ basσ dolla≥ amoun⌠ iε taxe≤ onσá wil∞ ì
  566. havσ t∩ pa∙ 
  567.  
  568.      8)PLU╙á   - Onσá wil∞ als∩ havσ t∩ pa∙ thσ ta° ratσá oεá an∙ ì
  569. earning≤ ove≥ thσ nex⌠ field«á  ENTE╥ THI╙ FIEL─ A╙ ┴ DECIMA╠ NO╘ ì
  570. ┴ PERCENTAG┼ O╥ YOU╥ CALCULATION╙ WIL╠ B┼ 10░ TIME╙ OFF
  571.  
  572.      9)OVE╥á THI╙ AMOUN╘  -  Onσ wil∞ havσ t∩ pa∙ thσ ta° ratσ oε ì
  573. an∙ earning≤ ove≥ thi≤ amount«á  Thi≤ amoun⌠ i≤ usuall∙ thσá samσ ì
  574. a≤ thσ minimuφ fo≥ thσ rate.
  575.  
  576.      T∩á ente≥á thσ thσ ta° tablσ usσ thσ MAI╬ prograφ t∩á acces≤ ì
  577. thσá filσ "TAXSCHó «á Yo⌡ wil∞ neeΣ t∩ ente≥ aε entirσ recorΣá iε ì
  578. thσ filσ "TAXSCHó fo≥ eacΦ linσ oµ thσ ta° table.
  579.  
  580.      Fo≥ example¼ ß statσ ta° tablσ ma∙ looδ like:
  581.  
  582.      WEEKL┘ PA┘ PERIOD
  583.      SINGL┼ 
  584.      Minimuφ  t∩  Maximuφ    Ta° i≤     Plu≤ Ñ     Ove≥ thi≤ $
  585.      ----------------------------------------------------------
  586.     $░           $2╕           ░         ░          0
  587.     $28.0▒       $5╣           ░         3Ñ        $28
  588.     $59.0▒áááá  $12░áááá     $1.7╖áááá   4Ñáááá    $6░              ì
  589.    $120.0▒       n∩ limi⌠    $4.1╖       5Ñ       $120
  590.  
  591. T∩ ente≥ thi≤ datß int∩ thσ "TAXSCHó filσ yo⌡ mus⌠ ente≥ ß recorΣ ì
  592. fo≥ eacΦ linσ oµ thσ ta° table«á  Fo≥ examplσ thσ fourtΦ linσá oµ ì
  593. thσ ta° tablσ woulΣ bσ entereΣ int∩ an∙ recorΣ iε thσ "TAXSCHó a≤ 
  594.    1⌐ DESCRIPTIO╬        - state/weekly/single
  595.    2⌐ FE─ O╥ STAT┼ NUMBER- 2è   3⌐ PA┘ PERIO─ NUMBE╥  - 1
  596.    4⌐ MARRIE─ SINGL┼     - 1
  597.    5⌐ MINIMU═ FO╥ RAT┼   - $120.01
  598.    6⌐ MAXIMU═ FO╥ RAT┼   - $999,999.0░  ***¬ NOT┼ ente≥ 999,999
  599.    7⌐ TA╪ ñ              - $4.1╖               - no⌠ "n∩ limit"
  600.    8⌐ PLU╙               - .0╡    ***¬ NOT┼ ENTE╥ DECIMA╠ NO╘ %
  601.    9⌐ OVE╥ THI╙ AMOUN╘   - $120
  602.  
  603.    I⌠ doe≤ no⌠ matte≥ wha⌠ recorΣ numbe≥ thσ datß i≤ storeΣ iε a≤ ì
  604. thσ compute≥ searche≤ thσ entirσ "TAXSCHó filσ lookinτ t∩ fo≥ thσ ì
  605. righ⌠ ta° rate«  
  606.   
  607.      Iεá thσ Inpu⌠ Descriptioε Prograφ thσ compute≥ wil∞ asδ  yo⌡ ì
  608. whicΦ fielΣ i≤ thσ 
  609.        a⌐ FeΣ o≥ Statσ Number
  610.        b⌐ Pa∙ PerioΣ Number
  611.        c⌐ Married/Single
  612.        d⌐ Pa∙ beforσ tax.
  613.  
  614.     Thσá abovσá datß mus⌠ bσ iε thσ lowe≥ numbe≥á field≤á iεá thσ ì
  615. file«á  Thσá "computσá taxó optioε wil∞ returε thσ "taxó no⌠á thσ ì
  616. "pa∙ afte≥ tax"«  Subtrac⌠ "taxó froφ "pa∙ beforσ taxó t∩ computσ ì
  617. "pa∙á afte≥ tax"«á  Als∩ remembe≥ t∩ figurσ iε an∙ allowancσá fo≥ ì
  618. deductioε anΣ  o≥ ta° credits.
  619.  
  620.                  14« - 19«  CUSTO═ INPU╘ OPTIONS
  621.  
  622.      Inpu⌠á option≤á numbe≥ 1┤ througΦ 1╣ arσ provideΣá fo≥á you≥ ì
  623. customization«á Iµ yo⌡ usσ thesσ options¼ yo⌡ mus⌠ writσ you≥ owε ì
  624. subroutinσ t∩ computσ thσ field≤ value«á  ReaΣ thσ sectioε oε ho≈ ì
  625. t∩ writσ program≤ usinτ thσ datß basσ beforσ yo⌡ usσ thi≤ option«  ì
  626. Inpu⌠áá optioεá  number≤á 14,15,16,17,18,1╣á corresponΣá t∩áá thσ ì
  627. subroutine≤ááááá tha⌠áááá yo⌡áááá ma∙áááá writσáááá oεááááá line≤ ì
  628. 53000,54000,55000,56000,5700░ anΣ 5800░ respectfull∙ iε thσá MAI╬ ì
  629. program.
  630.  
  631. NOT┼ O╬ CORREC╘ ┴ RECOR─ OPTIO╬ ║    
  632.       Iµá yo⌡ definσ inpu⌠ option≤ othe≥ theε operato≥ entr∙ theε ì
  633. eacΦá timσ yo⌡ correc⌠ ß recorΣ iε thσ maiε prograφ thσá compute≥ ì
  634. wil∞ recalculatσ thσ value≤ iε thσ record«á Iε thσá recalculatioε ì
  635. afte≥á thσá "correc⌠ ß recordó i≤ executeΣ thσ compute≥ wil∞á no⌠ ì
  636. ge⌠ thσ datß froφ anothe≥ filσ no≥ wil∞ i⌠ recalculatσ an∙á taxe≤ ì
  637. unles≤ yo⌡ changσ thσ maiε prograφ a⌠ line≤ 4600░ - « 
  638.  
  639.  
  640. **********************  CTRANSFER PROGRAM  **********************
  641.  
  642.      Thσá transfe≥á descriptioεá prograφá i≤á useΣá t∩á customizσ ì
  643. transfer≤á betweeεá files«áá  Therσá arσá threσá maiεá type≤áá oµ ì
  644. transfers:
  645.        1«á Direc⌠á transfe≥ froφ onσ fielΣ iε onσ filσ t∩ anothe≥ ì
  646. fielΣá iε ß differen⌠ file«á  Thσ datß froφ thσ sourcσ  filσá ma∙ ì
  647. eithe≥ ║     a⌐ replace
  648.              b⌐ addeΣ t∩ thσ targe⌠ field
  649.              c⌐ subtracteΣ froφ thσ targe⌠ field.è       2«á  Thσá sum≤á oµá field≤á iε thσá sourcσá fielΣá ma∙á bσ ì
  650. transferreΣ t∩ thσ targe⌠ file.
  651.        3«á   Thσ  subtotal≤ oµ field≤ iε thσ sourcσ fielΣ ma∙á bσ ì
  652. transferreΣ t∩ thσ targe⌠ file«á Thσ subtotal≤ ma∙ bσ transferreΣ ì
  653. t∩ an∙ filσ o≥ fielΣ howeve≥ thσ recorΣ numbe≥ i≤ fixeΣ t∩ bσ thσ ì
  654. valuσá oµ thσ fielΣ thσ field≤ werσ subtotaleΣ on«á  Fo≥ example¼ ì
  655. thσá subtota∞á oµá wage≤á paiΣ t∩á employeσá numbe≥á 1░á wil∞á bσ ì
  656. transferreΣá t∩á recorΣá numbe≥ 10«á  Thσ subtotal≤á oµá employeσ ì
  657. numbe≥ 1▒ wil∞ bσ transfereΣ t∩ recorΣ numbe≥ 11.
  658.      Thσ Sourcσ filσ i≤ thσ filσ thσ datß i≤ originall∙ in«á  Thσ ì
  659. targe⌠á filσá i≤ thσ filσ wherσ thσ thσ datß i≤á transferreΣá to«  ì
  660. Thσ sourcσ filσ i≤ no⌠ changeΣ b∙ an∙ transfe≥ operation«á  I⌠ i≤ ì
  661. strongl∙ adviseΣ t∩ makσ ß backu≡ cop∙ oµ thσ targe⌠ filσá beforσ ì
  662. transferrinτ data.
  663.  
  664. **********************¬  CLIMIT╙ PROGRA═  ***********************
  665.  
  666.      Thσá CLIMIT╙á prograφá i≤ useΣ t∩ se⌠á maximuφá anΣá minimuφ ì
  667. limit≤á fo≥ thσ numerica∞ fields«á  Yo⌡ caε als∩ usσ thi≤ prograφ ì
  668. t∩ turε thσ limit≤ checδ oε anΣ off«  T∩ ente≥ limit≤ fo≥ ß file¼ ì
  669. yo⌡á mus⌠á firs⌠ turε thσ limit≤ checδ t∩ oε anΣ theεá ente≥á thσ ì
  670. limit≤ fo≥ eacΦ fielΣ iε thσ file«á  Fo≥ example¼ yo⌡ ma∙ wan⌠ t∩ ì
  671. se⌠ thσ limit≤ oε aε employeσ numbe≥ fielΣ t∩ ß minimuε oµ ▒á anΣ ì
  672. ßá maximuφ oµ 2╢ iµ yo⌡ onl∙ havσ 2╢ employees«á  Durinτ thσ maiε ì
  673. prograφ iµ someonσ enter≤ ß numbe≥ les≤ theε ▒ o≥ greate≥ theε 2╢ ì
  674. you≥ compute≥ wil∞ buz· twice«  Thσ limit≤ checδ wil∞ no⌠ preven⌠ ì
  675. thσá entr∙á oµ thσ numbe≥ i⌠ wil∞ onl∙ buzz«á  Sincσá thσá limit≤ ì
  676. checδ wil∞ onl∙ buz· anΣ no⌠ preven⌠ thσ entr∙ i⌠ i≤ possiblσá t∩ ì
  677. se⌠á thσ limit≤ close≥ together«á  Fo≥ examplσ oε aε employeσ pa∙ ì
  678. fielΣá yo⌡á ma∙ wan⌠ t∩ se⌠ thσ limit≤ t∩ $9.9╣ t∩á $999.9╣á eveε ì
  679. thougΦá oncσ iε ß whilσ someonσ i≤ paiΣ les≤ theε $9.9╣á o≥á morσ ì
  680. theε $999.99«  B∙ settinτ thσ limit≤ closσ togethe≥ yo⌡ wil∞ picδ ì
  681. ou⌠á an∙ mistake≤ causeΣ b∙ leavinτ ou⌠ ß digi⌠ o≥ addinτ ß digi⌠ ì
  682. b∙á mistakσ o≥ b∙ puttinτ thσ decima∞ poin⌠ iε thσá wronτá space«  ì
  683. Fo≥á examplσ enterinτ $1256.╖ insteaΣ oµ $125.6╖ «á  I⌠ i≤ alway≤ ì
  684. possiblσ t∩ usσ thσ scaε prograφ t∩ looδ fo≥ extremσ value≤á tha⌠ ì
  685. shoulΣ  no⌠ bσ iε you≥ file.
  686.  
  687. ***********************  CSCREEN PROGRAM  **********************
  688.  
  689.      Thσá screeεá descriptioε prograφ i≤ useΣ t∩ se⌠ u≡ ho≈á eacΦ ì
  690. recorΣ iε thσ filσ wil∞ bσ displayeΣ oε thσ screen«  Thσ to≡ linσ ì
  691. oµá eacΦ screeε i≤ reserveΣ fo≥ thσ filσ namσ anΣ recorΣá number«  ì
  692. Line≤á 20-2╡á arσá reserveΣ fo≥ thσá option≤á menu¼á datßá entry¼ ì
  693. correction≤, etc«á  Yo⌡á may onl∙ usσ line≤ ▓ thougΦ 19á fo≥á thσ ì
  694. screen«á  EacΦ screeε descriptioε consist≤ oµ 1╕ "overlaysó line≤ ì
  695. anΣá fo≥á eacΦá fielΣá thσá linσ anΣ columε wherσá i⌠á i≤á t∩á bσ ì
  696. displayed«á  Thσ overla∙ line≤ arσ printeΣ oε thσ screeε oε line≤ ì
  697. ▓á t∩á 19«á  Theεá eacΦ fielΣ i≤ placeΣ oε thσ screeεá a≤á i⌠á i≤ ì
  698. entereΣ o≥ read«  Aε examplσ oµ ß screeε i≤ belo≈ :
  699.  
  700. ***********  FILE : ACCOUNTS  RECORD NUMBER : 12  *************
  701. (1) DAY: 1  (2) MONTH: 11  (3) YEAR: 83 
  702.   
  703. (4) DESCRIPTION: SALE OF EQUIPMENT , TRACTOR è
  704. (5)ACCOUNT #  (6)ACCOUNT NAME       (7)CREDIT   (8)DEBIT  
  705.      20         SALES                    $0.00  $2500.00
  706.      30         CASH                  $2500.00     $0.00
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718. **************************************************************
  719.  
  720.      You≥á screeε wil∞ bσ 8░ column≤ widσ wherea≤ thi≤ manua∞á i≤ ì
  721. onl∙á 6╡á column≤ wide«á  I⌠ i≤ strongl∙ advisablσ t∩á lis⌠á eacΦ ì
  722. fielΣá numbe≥á iεá thσ overla∙ becausσ yo⌡ wil∞á neeΣá thσá fielΣ ì
  723. numbe≥ t∩ changσ o≥ correc⌠ eacΦ field'≤ entry«á  I⌠ i≤ suggesteΣ ì
  724. tha⌠ yo⌡ lis⌠ eacΦ fielΣ numbe≥ iε (⌐ o≥ [▌ t∩ avoiΣ confusion.
  725.      Thσá compute≥ wil∞ asδ yo⌡ fo≥ thσ 1╕ overla∙ lines«á  Then¼ ì
  726. fo≥á eacΦ fielΣ thσ compute≥ wil∞ asδ yo⌡ whicΦ linσá anΣá columε ì
  727. thσá entr∙á i≤á in«á  Thσ compute≥ wil∞ asδ yo⌡ iµ yo⌡á wan⌠á an∙ ì
  728. repeatinτ field≤ o≥ subrecords«á  Iµ yo⌡ arσ goinτ t∩ se⌠ u≡á thσ ì
  729. repeatinτá field≤ yo⌡ mus⌠ se⌠ theφ u≡ oε thσ samσ line«á  Iε thσ ì
  730. abovσ examplσ thσ accoun⌠ number¼á accoun⌠ name¼ debi⌠ anΣ credi⌠ ì
  731. arσá thσá repeatinτá fields«á  Durinτ thσ "ente≥á ßá ne≈á recordó ì
  732. portioε oµ thσ Maiε prograφ iµ ß subrecorΣ witΦ repeatinτá field≤ ì
  733. i≤á entereΣá thσ compute≥ wil∞ sho≈ an∙ repeatinτ field≤á oεá thσ ì
  734. nex⌠ linσ down«  Iµ yo⌡ specif∙ an∙ sum≤ fo≥ thσ repeatinτ field≤ ì
  735. theε thσ sum≤ wil∞ bσ showε oε linσ 19«á  Thσ sum≤ arσ no⌠ storeΣ ì
  736. iεá memory«á  The∙ arσ recalculateΣ eacΦ timσ al∞ thσá subrecord≤ ì
  737. arσ shown.
  738.  
  739. ************************  CREAL PROGRAM  ************************
  740.  
  741.      Thσá CREA╠ prograφ filσ i≤ useΣ t∩ se⌠ u≡ realtimσ transfer≤ ì
  742. betweeε thσ files«á  Yo⌡ ma∙ specif∙ ß realtimσ transfe≥ fo≥ ▒ o≥ ì
  743. ▓ oµ thσ field≤ iε thσ sourcσ file«  Yo⌡ ma∙ transfe≥ eacΦ oµ thσ ì
  744. field≤ t∩ eithe≥ onσ o≥ tw∩ field≤ iε thσ targe⌠ file«á  Yo⌡á ma∙ ì
  745. either add or subtract each field to its target file.   
  746.      Iεá ou≥á samplσá filσ "JOURNALó wσ havσ se⌠á u≡á ßá realtimσ ì
  747. transfer«á  Thσ field≤ DEBI╘ ñ anΣ CREDI╘ ñ arσ transfereΣ t∩ thσ ì
  748. "ACTSUMóá file«á  Thσ recorΣ numbe≥ oµ "ACTSUMó filσ i≤ equa∞á t∩ ì
  749. thσ accou⌠ numbe≥ iε thσ JOURNA╠ file«á  Thσ fielΣ "CREDI╘ ñ ó i≤ ì
  750. addeΣá t∩á thσá "CREDI╘á TOTALó anΣá subtracteΣá froφá thσá fielΣ ì
  751. "BALANCEó iε thσ "ACTSUMó file«á  Thσ fielΣ "DEBI╘ $ó i≤ addeΣ t∩ ì
  752. thσ "BALANC┼ TOTALó iε thσ "ACTSUMó filσ anΣ i≤ als∩ addeΣ t∩ thσ ì
  753. "BALANCEó iε thσ samσ field.
  754.      T∩á ente≥á ß realtimσ descriptioε fo≥ ß filσ yo⌡ mus⌠á firs⌠ ì
  755. se⌠áá thσá realtimσá switcΦá t∩á YES¼áá theεá ente≥á ßáá realtimσ ì
  756. description«á  Iεá enterinτ ß realtimσ descriptioεá thσá compute≥ ì
  757. wil∞á asδ yo⌡ whicΦ filσ yo⌡ wan⌠ t∩ transfe≥ thσ datß to¼á whicΦ ìèfield≤ yo⌡ wan⌠ t∩ transfer¼á t∩ whicΦ field≤ iε thσ targe⌠á filσ ì
  758. yo⌡ wan⌠ t∩ transfe≥ thσ data¼ anΣ iµ yo⌡ wan⌠ t∩ adΣ o≥ subtrac⌠ ì
  759. thσ sourcσ fielΣ froφ thσ targe⌠ field.
  760.  
  761.      Iµ yo⌡ se⌠ u≡ ß realtimσ transfer¼  wheneve≥ yo⌡ ente≥ ß ne≈ ì
  762. entr∙á usinτ thσ maiε prograφ thσ compute≥ wil∞ transfe≥ thσ datß ì
  763. t∩ thσ targe⌠ file«á  Iµ yo⌡ ove≥ writσ ß previou≤ recorΣá numbe≥ ì
  764. thσ compute≥ wil∞ automaticall∙ correc⌠ thσ targe⌠  realtimσ filσ ì
  765. b∙ erasinτ thσ olΣ valuσ froφ thσ targe⌠ file«á  Iµ yo⌡ changσ o≥ ì
  766. correc⌠á thσá sourcσ filσ thσ realtimσ targe⌠ filσ wil∞á als∩á bσ ì
  767. corrected«á  Eveε iµ yo⌡ changσ thσ fielΣ iε thσ sourcσ filσ tha⌠ ì
  768. point≤á t∩ thσ recorΣ numbe≥ iε thσ seconΣ filσ thσ compute≥ wil∞ ì
  769. erasσá thσá transfe≥á t∩ thσ incorrec⌠á recorΣá numbe≥á anΣá theε ì
  770. transfe≥ thσ datß t∩ thσ correc⌠ recorΣ number.
  771.      
  772.      Iµá yo⌡á se⌠ u≡ realtimσ transfe≥ yo⌡ shoulΣ als∩ se⌠á u≡á ß ì
  773. regula≥á transfe≥á t∩ check/correc⌠ thσ datß iε thσ targe⌠á file«  ì
  774. Transferinτ datß betweeε tw∩ file≤ i≤ onσ oµ thσ mos⌠ erro≥ pronσ ì
  775. area≤ iε compute≥ programming«  Iµ thσ compute≥ crashe≤ afte≥ thσ ì
  776. recorΣá i≤á writteε oε thσ sourcσ filσ anΣ beforσ thσá recorΣá i≤ ì
  777. writteε oε thσ targe⌠ filσ you≥ datß wil∞ bσ incorrect« 
  778.      Yo⌡á caεá alway≤ usσ thσ changσ prograφ t∩á se⌠á thσá targe⌠ ì
  779. field≤á t∩á zer∩ anΣ theε usσ ß regula≥ transfe≥ t∩á correc⌠á thσ ì
  780. targe⌠á filσá fo≥á an∙ erro≥ tha⌠ ma∙ havσ crep⌠ iεá durinτá  thσ ì
  781. realtimσ transfers.
  782.      Iεá settinτá u≡ thσ realtimσ transfer¼á thσ pointe≥á t∩á thσ ì
  783. targe⌠á recorΣá numbe≥á mus⌠á bσá aεá intege≥á anΣá thσáá record≤ ì
  784. transfereΣá mus⌠á bσ eithe≥ doublσ precisioε o≥ dolla≥ anΣá cent≤ ì
  785. amounts«á  Als∩ iµ yo⌡ arσ goinτ t∩ subtrac⌠ durinτ thσá realtimσ ì
  786. transfe≥ se⌠ u≡ thσ subtractioε a≤ thσ seconΣ oµ thσ transfers« 
  787.      
  788.                           APPLICATIONS
  789.  
  790.      Ou≥ entirσ systeφ wa≤ designeΣ froφ thσ grounΣ u≡ t∩á handlσ ì
  791. accounting¼á  payrol∞ accounting¼á inventory¼ account≤ receivablσ ì
  792. anΣ account≤ payable«á  B∙ usinτ onσ systeφ t∩ handlσ al∞ oµ you≥ ì
  793. busines≤á applicatioεs yo⌡ savσ oε traininτ time«á  Somσá oµá thσ ì
  794. suggesteΣ application≤ arσ listeΣ below.
  795.  
  796.                            ACCOUNTING
  797.  
  798.      Onσá possibilit∙á  i≤á t∩á se⌠ u≡ ß journa∞á filσá witΦá thσ ì
  799. followinτ field≤ :
  800.      FIELD 1 : Transaction Number
  801.      FIELD 2 : Month 
  802.      FIELD 3 : Day
  803.      FIELD 4 : Transaction Explanation
  804.      FIELD 5 : Account Number 
  805.      FIELD 6 : Debit $ Amount     } use only field 6 or 7    
  806.      FIELD 7 : Credit $ Amount    }
  807.      FIELD 8 : Cost Center     ******  optional  *******
  808. Thσ drawbacδ t∩ thi≤ methoΣ i≤ tha⌠ yo⌡ havσ t∩ ente≥ thσ tw∩  o≥ ì
  809. morσ record≤ fo≥ eacΦ transaction«á  Howeve≥ b∙ usinτ thσ "=ó anΣ ì
  810. thσá "^óá iεá thσá ne≈ entr∙ optioε  yo⌡á caεá easil∙á ente≥á thσ ì
  811. repetitiou≤á fields«á    Firs⌠ yo⌡ havσ t∩ ente≥ ß recorΣ fo≥ thσ ìèdebi⌠ account«á  Theε yo⌡ ente≥ ß recorΣ fo≥ thσ credi⌠á account«  ì
  812. Yo⌡ ma∙ ente≥ morσ theε ▓ account≤ fo≥ ß singlσ transactioε whicΦ ì
  813. i≤á onσá oµá thσá advantage≤ oµ storinτá you≥á datßá iná separatσ  ì
  814. records«á  Se⌠ u≡ thσ accoun⌠ number¼á accoun⌠ name¼á debi⌠ ñ anΣ ì
  815. credi⌠á ñ a≤ repeatinτ fields«á  Yo⌡ ma∙ wan⌠ t∩ havσ thσ debi⌠ ñ ì
  816. anΣ credi⌠ ñ summeΣ t∩ preven⌠ entr∙ errors.
  817.                        
  818.      Iµá yo⌡ sor⌠ thσ Journa∞ filσ b∙ thσ Accoun⌠ Numbe≥ yo⌡ wil∞ ì
  819. havσ jus⌠ createΣ ß ledger«á  Thi≤ closσ relationshi≡ betweeε thσ ì
  820. journa∞áá anΣáá thσá ledge≥á make≤á "postingóáá mistake≤áá almos⌠   ì
  821. impossible«     
  822.      Yo⌡ ma∙ usσ eithe≥ ß transfe≥ optioε o≥ thσ scaε prograφá t∩ ì
  823. adΣ t∩ thσ total≤ fo≥ eacΦ account«  Yo⌡ ma∙ wan⌠ t∩ usσ ß custoφ ì
  824. transfe≥ t∩ transfe≥ thσ sum≤ fo≥ eacΦ filσ t∩ aε "ACCOUNTSó filσ ì
  825. witΦ thσ forma⌠ :
  826.      FIELD 1: Account Name
  827.      FIELD 2: Debit total
  828.      FIELD 3: Credit Total
  829.      FIELD 4: Balance
  830.  
  831.      Iµ thσ book≤ arσ ou⌠ oµ balancσ yo⌡ caε usσ thσ scaε prograφ ì
  832. t∩á adΣ thσ debit≤ anΣ credit≤ oµ al∞ thσ transactions«á  Iµá thσ ì
  833. tota∞áá debit≤á doe≤á no⌠á equa∞á thσá tota∞á credit≤á fo≥áá eacΦ ì
  834. transaction¼ theε therσ i≤ ß mistakσ iε enterinτ thσ transaction«  ì
  835. Iµá mos⌠á oµ you≥ transaction≤ affec⌠ onl∙ tw∩ account≤ theεá an∙ ì
  836. transactioε entr∙ mistake≤ shoulΣ stanΣ ou⌠ iε thσ journal«  Als∩ ì
  837. usinτ thσ "^ó iε thσ maiε prograφ  wil∞ minimizσ entr∙ errors.
  838.    
  839.                              PAYROLL
  840.  
  841.      Fo≥ payrol∞ calculation≤ i⌠ i≤ suggesteΣ tha⌠ yo⌡ se⌠ u≡ tw∩ ì
  842. files«á Aε Employeσ pa∙ summar∙ containinτ payrol∞ informatioε oε ì
  843. eacΦ employeσ anΣ ┴ paychecδ filσ containinτ thσ paychecks.
  844. Yo⌡ ma∙ wan⌠ t∩ se⌠ u≡ thσ "PAYSUMó likσ :
  845.   FIEL─ 1.║ Employeσ number
  846.   FIEL─ 2.║ Employeσ name
  847.   FIEL─ 3.║ Socia∞ Securit∙ Number
  848.   FIEL─ 4.║ Stree⌠ Address
  849.   FIEL─ 5.║ City/State/Zi≡ Code
  850.   FIEL─ 6.║ Hourl∙ Pa∙ 
  851.   FIEL─ 7.║ Statσ Ta° Numbe≥ ╗ correspondinτ t∩ ta° tablσ number
  852.   FIEL─ 8.║ Married/singlσ codσ number
  853.   FIEL─ 9.║ FixeΣ Dollar≤ Deductions
  854.   FIEL─ 10║ Payrol∞ Period
  855.   FIEL─ 11║ Tota∞ Earning≤ t∩ Date
  856.   FIEL─ 12║ Federa∞ Ta° withhelΣ t∩ Date
  857.   FIEL─ 13║ Statσ Ta° withhelΣ t∩ Date
  858.   FIEL─ 14║ Federa∞  allowancσ fo≥ deductioε pe≥ period
  859.   FIEL─ 15║ Statσ allowancσ fo≥ deduction
  860.   FIEL─ 16║ Ñ Deduction≤ iµ an∙ ║ Optional
  861.    
  862.  
  863. Thσ paychecδ filσ coulΣ  bσ se⌠ u≡ somethinτ likσ :
  864.   FIEL─ ▒ :Employeσ Number
  865.   FIEL─ ▓ :Regula≥ hour≤ workedè  FIEL─ │ :Overtimσ hour≤ worked
  866.   FIEL─ ┤ :Regula≥ pa∙ ratσ            -Ge⌠ froφ abovσ file
  867.   FIEL─ ╡ :Overtimσ pa∙ ratσ           -1.╡ timσ regula≥ pay
  868.   FIEL─ ╢ :Regula≥ pa∙                 -hour≤ workeΣ ╪ rate
  869.   FIEL─ ╖ :Overtimσ pa∙                -hour≤ workeΣ ╪ rate
  870.   FIEL─ ╕ :Tota∞ pa∙ beforσ taxe≤      -adΣ thσ ▓ above
  871.   FIEL─ ╣ :Singlσ MarrieΣ Codσ Numbe≥  -Ge⌠ froφ abovσ file
  872.   FIEL─ 10:Statσ ta° tablσ numbe≥      -Ge⌠ froφ abovσ file
  873.   FIEL─ 11:Allowancσ fo≥ statσ deduction-Ge⌠ froφ abovσ file
  874.   FIEL─ 12:Federa∞ Ta°                 -Computσ usinτ ta° tables
  875.   FIEL─ 13:Statσ Ta°                   -Computσ usinτ ta° table
  876.   FIEL─ 14:Pa∙ afte≥ statσ ta°         -Pa∙ minu≤ statσ tax
  877.   FIEL─ 15:Pa∙ afte≥ federa∞ ta°       -Abovσ fielΣ minu≤ feΣ tax
  878.  
  879. A≤á yo⌡ caε seσ yo⌡ onl∙ havσ t∩ ente≥ thσ firs⌠ │á fields«á  Thσ ì
  880. res⌠ arσ automaticall∙ computed«  Usσ thσ custoφ inpu⌠ prograφ t∩ ì
  881. se⌠ u≡ thσ automatiπ calculations.
  882.  
  883. Yo⌡á coulΣá als∩ se⌠ u≡ thσ paychecδ filσ s∩á tha⌠á thσá operato≥ ì
  884. enter≤ thσ beforσ ta° pay«á   Fo≥ salarieΣ  employee≤ wh∩ ge⌠ thσ ì
  885. samσá pa∙ ever∙ weeδ yo⌡ coulΣ ge⌠ thei≥ pa∙ froφ thei≥á employeσ ì
  886. pa∙ record.
  887.    
  888.  
  889.                             INVENTORY
  890.  
  891.      Therσáá arσá severa∞á differen⌠á way≤á oµá maintainninτáá aε ì
  892. inventory«á  Therσ arσ perpetua∞ anΣ periodiπ systems«  Therσ arσ ì
  893. als∩á severa∞á differen⌠á way≤á oµá figurinτá thσá valuσá oµá thσ ì
  894. inventor∙á iε stocδ sucΦ a≤ FIFO,LIFO¼á lowe≥ oµ cos⌠ o≥á market¼ ì
  895. retai∞á method¼á etc«á Iε al∞ therσ arσ a⌠ leas⌠ ß dozeε possiblσ ì
  896. way≤á t∩á maintaiε aε inventory«á  Belo≈ i≤ ßá simplσá methoΣá oµ ì
  897. keepinτ tracδ oµ you≥ inventory«  
  898.  Usσá ßá singlσ filσ witΦ thσ followinτ fields║á  ì
  899.   FIEL─ ▒ :iteφ number
  900.   FIEL─ ▓ :numbe≥ iε stock
  901.   FIEL─ │ :cos⌠ oµ eacΦ item
  902.   FIEL─ ┤ :tota∞ cos⌠  - numbe≥ iε stocδ time≤ cos⌠ pe≥ item
  903.  
  904.      Morσá comple° anΣ informativσ inventor∙á managemen⌠á design≤ ì
  905. arσ available«    
  906.    
  907.             ACCOUNT╙ RECEIVABL┼ AN─ ACCOUNT╙ PAYABLE
  908.  
  909.      Therσá arσá severa∞á differen⌠ way≤ oµ storinτá anΣá keepinτ ì
  910. tracδá oµá you≥á accoun⌠á receivable≤á   anΣá account≤áá payable«  ì
  911. Account≤á payablσá anΣ account≤ receivable≤  arσ prett∙á similar«  ì
  912. Thσ differencσ i≤ tha⌠ witΦ account≤ receivablσ   peoplσ owσá yo⌡ ì
  913. mone∙ whilσ witΦ account≤ payablσ yo⌡ owσ peoplσ money.
  914.      Thi≤áá manua∞áá wil∞áá onl∙á cove≥áá  account≤áá receivable«     ì
  915. Howeve≥á yo⌡á shoulΣá bσ ablσ t∩ se⌠ u≡ aεá account≤á payablσá iε ì
  916. almos⌠ thσ samσ format.
  917.      Yo⌡á wil∞á probabl∙ wan⌠ t∩ se⌠ tw∩ files«á  ┴á maste≥á filσ ì
  918. containinτ ║                  
  919.      FIEL─ ▒ ║ Nameè     FIEL─ ▓ ║ Stree⌠ Address
  920.      FIELD 3 : City/State/Zip
  921.      FIELD 4 : Total amount owed
  922.      FIELD 5 : Credit limit
  923.      FIELD 6 : Debitor number 
  924.  
  925. and a transaction file containing :
  926.      FIELD 1 : Debitor number
  927.      FIELD 2 : Items Bought
  928.      FIELD 3 : Total Charged
  929.      FIELD 4 : Date
  930.  
  931. Thσ tota∞ chargeΣ caε bσ addeΣ t∩ thσ tota∞ amoun⌠ oweΣ b∙á usinτ ì
  932. ßá custoφá transfer«á  Yo⌡á coulΣ ente≥ an∙ paymen⌠á a≤á negativσ ì
  933. amoun⌠   chargeΣ o≥ yo⌡ coulΣ havσ ß separatσ  filσ fo≥á payment≤ ì
  934. set up likσ thσ transactioε file.
  935.     
  936.               INITIAL MENUS FOR THE CUSTOM PROGRAMS
  937.  
  938.         - CFORM             - NEW CUSTOM FORMS
  939.                             - READ A FORM DESCRIPTION
  940.                                 with - CORRECTIONS
  941.                                      - PRINT ON PAPER
  942.  
  943.         - CFILE             - ENTER A FILE DESCRIPTION
  944.                             - READ A SINGLE FILE DESCRIPTION
  945.                             - READ ALL FILE DESCRIPTIONS
  946.                             - PRINT ON PAPER ONE FILE 
  947.                             - PRIN╘áON PAPER ALL THE FILE         
  948.                                   DESCRIPTIONS
  949.  
  950.         - CTRANSFE          - ENTER A TRANSFER DESCRIPTION
  951.                             - READ A TRANSFER DESCRIPTION
  952.                             - PRIN╘áA TRANSFER DESCRIPTION 
  953.                                
  954.         - CINPUT            - ENTER A NEW INPUT DESCRIPTION 
  955.                             - READ A CUSTOM INPUT DESCRIPTION 
  956.                             - PRINT A CUSTOM INPUT DESCRIPTION
  957.  
  958.         - CSCREEN           - ENTER A NEW SCREEN DESCRIPTION
  959.                             - READ A SCREEN DESCRIPTION
  960.                             - PRINT A SCREEN ON PAPER
  961.                             - CORRECT A SCREEN
  962.  
  963.         - CLIMITS           - READ THE LIMITS SWITCH                               
  964.                             - PRINT THE LIMITS SWITCH ON PAPER
  965.                             - READ THE LIMITS
  966.                             - PRINT THE LIMITS ON PAPER
  967.                             - ENTER ALL NEW LIMITS FOR A FILE
  968.                             - ENTER NEW LIMITS FOR ONE FIELD
  969.         
  970.         - CREAL             - READ THE REALTIME SWITCH
  971.                             - PRINT THE REALTIME SWITCH ON PAPER
  972.                             - READ THE REALTIME TRANSFER DATA
  973.                             - PRINT THE REALTIME DATA ON PAPERè                            - ENTER REALTIME DATA
  974.  
  975.                           LIST OF FILES
  976.  
  977. I. Program Files :
  978.     1. MAIN    
  979.     2. FORM
  980.     3. TRANSFER
  981.     4. SCAN
  982.     5. CHANGE
  983.     6. SORT
  984.     7. ASCII
  985.     8. CFILE
  986.     9. CINPUT
  987.     10.CSCREEN
  988.     11. CTRANSFE
  989.     12. CFORM 
  990.     13. CLIMITS
  991.     14. CREAL
  992.     15. TESTACSI
  993.  
  994.  
  995. II. Program Data Files
  996.     1. FFILE     - Contains files specifications
  997.     2. TFER      - Contains Transfer Specifications
  998.     3. FORMLIST  - Contains a list of all forms
  999.     4. IDATA1, IDATA2, IDATA3,.....  - One for each file
  1000.            - contains the input description   
  1001.     5. SCTEST - Contains a list of all files with screens
  1002.     6. SCREEN1,SCREEN2,SCREEN3 ..... the screen descriptions
  1003.     7. IDEX - Contains a list of all files with limits
  1004.     8. MAXMIN1,MAXMIN2,MAXMIN3, ..... the limits for each file
  1005.     9. REALTIME - Contains the realtime flags for each file
  1006.    10. REAL1,REAL2 - Contains the realtime data for a file
  1007.  
  1008. III. Form Data Files :
  1009.     1. The specifications for each form are each stored on a 
  1010.        separate  file with the form name being the same as the
  1011.        file name.
  1012. IV. User Data Files :
  1013.     1. KEYLIST - The names corresponding to each key           
  1014.     2. TAXSCH - Tax tables 
  1015.     3. All other files you may wish to add
  1016.    
  1017.                            DATA ENTRY
  1018.  
  1019. The prompt for an entry is :
  1020.   >__<  or
  1021.   >_______<  or
  1022.   >___________________< 
  1023. For integers you may only enter 1,2,3,4,5,6,7,8,9,0, or -
  1024. For single precision number you may enter :
  1025.      1,2,3,4,5,6,7,8,9,0,-,+,$,% 
  1026. For double precision numbers you may enter :
  1027.      1,2,3,4,5,6,7,8,9,0,-,+,$,%èFor strings you may enter any number or letter or other character 
  1028.      except  <,>,= as they are used for control in the new entry.
  1029. If you try to enter a letter when a number is required the 
  1030.      computer will not accept the letter and sound a beep.
  1031.  
  1032.                          NEW DATA ENTRY
  1033.  
  1034.      In the new data entry section the characters <,>, and = are 
  1035. used for control.  
  1036.      " < " restarts the data entry at the first field.
  1037.      " > " is to escape the data entry process  before the last 
  1038.               field.
  1039.      " = " sets the current field to the same value that the same 
  1040.               field in the last record entered had.
  1041.      ó ▐ ó set≤ thσ curren⌠ fielΣ t∩ thσ samσ valuσá tha⌠á thσ ì
  1042.               nex⌠á highe≥ numbe≥ fielΣá iεá thσá las⌠   
  1043.               record entered had.  This is for use in entering
  1044.               journal entries where the credit amount is equal to
  1045.               the debit amount in the last entry. 
  1046.  
  1047.                          ENTRY CONTROLS
  1048.  
  1049. RETURN : Press return when you are done with the entry.
  1050. CONTROL-╤á o≥ BACKSPAC┼ ║á Move≤ thσ curso≥ bacδ anΣá erase≤á thσ ì
  1051.                            las⌠ character.
  1052. CONTROL-S OR LEFT ARROW : Moves the cursor left.
  1053. CONTROL-D OR RIGHT ARROW: Moves the cursor right.
  1054. CONTROL-F OR INSERT     : Inserts a space where the cursor is.
  1055. CONTROL-┴ O╥ DELET┼     ║á Delete≤ thσ characte≥ o≥ spacσá wherσ ì
  1056.                             thσ curso≥ is.
  1057.      Thi≤á i≤ onσ oµ thσ area≤ oµ incompatibilit∙á betweeεá basiπ ì
  1058. languages«á  Thσá prograφá read≤ thσ ASCI╔ codσ oµá thσá keyboarΣ ì
  1059. entrie≤á anΣ goe≤ t∩ thσ subroutinσ tha⌠ perform≤ thσá insertion¼ ì
  1060. deletion¼á etc«  Thi≤ i≤ iε line≤ 14590- 1462░ anΣ 15190-1525░ oµ ì
  1061. thσ MAI╬ program« 
  1062.  
  1063. ****¬  DEFAUL╘ VALUE╙  *****
  1064.  
  1065.      Fo≥ al∞ numbe≥ thσ defaul⌠ valuσ i≤ 1«á  Iµ yo⌡ pres≤ returε ì
  1066. withou⌠á enterinτ an∙ othe≥ number≤ theε thσ compute≥ wil∞ assumσ ì
  1067. yo⌡ wan⌠ thσ numbe≥ one«á  Iε man∙ oµ thσ option≤ thσ numbe≥á onσ ì
  1068. optioεá wil∞ bσ useΣ thσ most«á  B∙ jus⌠ pressinτ returε yo⌡ wil∞ ì
  1069. bσ ablσ t∩ ente≥ you≥ informatioε faster«á Iε thσ MAI╬ prograφ iµ ì
  1070. yo⌡á pres≤ thσ spacσ ba≥ theε pres≤ returε thσ defaul⌠ valuσá fo≥ ì
  1071. number≤ change≤ t∩ zero« 
  1072.      For all strings the default value is a blank string.  
  1073.  
  1074.     
  1075.                         FILE EXPLANATION  
  1076.  
  1077.      Al∞á oµá you≥á datß i≤ storeΣ iεá files«á  ┴á filσá contain≤ ì
  1078. records«á  EacΦá recorΣ contain≤ informatioε storeΣ iεá different ì
  1079. fields .  A simple example of a file is shown below.         
  1080.   
  1081. FILE : TELEPHONE  èRECORD # 1 
  1082.   FIELD # 1              
  1083.     FIELD NAME : NAME    
  1084.       ENTRY      : John Doe    
  1085.   FIELD #2
  1086.     FIELD NAME : TELEPHONE NUMBER
  1087.       ENTRY      : 123-4567   
  1088. RECORD # 2  
  1089.   FIELD # 1 
  1090.     FIELD NAME : NAME    
  1091.       ENTRY      : John Smith
  1092.   FIELD # 2
  1093.     FIELD NAME : TELEPHONE NUMBER
  1094.       ENTRY      : 345-6789
  1095. RECORD #3
  1096.   FIELD # 1
  1097.     FIELD NAME : NAME
  1098.       ENTRY      : Tom Brown
  1099.   FIELD # 2
  1100.     FIELD NAME : TELEPHONE NUMBER
  1101.       ENTRY      : 333-1111
  1102.  
  1103. Yo⌡á shoulΣá kno≈ thσ followinτ fact≤ t∩ ge⌠ thσ bes⌠ usσ oµá an∙ ì
  1104. datß basσ systeφ :
  1105.     1. A file may contain any number of records up to the storage
  1106.          limits of your floppy disks.
  1107.     2«á EacΦá recordá contain≤á thσ samσ numbe≥, type and names  ì
  1108.          of the fields.
  1109.     3«á You≥ informatioε i≤ storeΣ iε ß fielΣ whicΦ i≤ par⌠ oµá ß ì
  1110.          record.  All the records make up the entire file
  1111.     
  1112. Therσá arσ severa∞ type≤ oµ fields«á Fo≥ morσ informatioε seσ thσ ì
  1113. Custoφ prograφ section«á  Iµ yo⌡ arσ ne≈ t∩ computer≤ anΣ d∩á no⌠ ì
  1114. understanΣ thσ concep⌠ oµ files¼á records¼á anΣ field≤ wσ sugges⌠ ì
  1115. readinτ ß booδ oε beginninτ basiπ programming.
  1116.  
  1117.                   SUBRECORDS / REPEATING FIELDS
  1118.  
  1119.      Thσáá subrecord/repeatinτá field≤á optioεá i≤á ßá methoΣá oµ ì
  1120. enterinτá severa∞á record≤ tha⌠ sharσ simila≥á datßá and/o≥á havσ ì
  1121. repeatinτá fields«á  Conside≥á thσá examplσ showε iεá thσá samplσ ì
  1122. screen«  Doublσ entr∙ accountinτ require≤ tw∩ o≥ morσ entrie≤ fo≥ ì
  1123. eacΦ transaction«á  Thσ datσ anΣ descriptioε sta∙ thσ samσá whilσ ì
  1124. thσá accoun⌠á number¼á accoun⌠á name¼á credi⌠ anΣ debi⌠á arσá thσ ì
  1125. repeatinτá fields«á  Aε entirσ recorΣ i≤ storeΣ oε thσá disδá fo≥ ì
  1126. eacΦ subrecord«á  Yo⌡ ma∙ specif∙ tha⌠ sum≤ oµ eacΦ subrecord≤ bσ ì
  1127. displayed«á  Thσá sum≤á arσ no⌠ storeΣ iε memory«á  Thσ sum≤á arσ ì
  1128. recalculateΣ eacΦ timσ thσ subrecord≤  arσ displayed«á  Thσá sum≤ ì
  1129. arσá displayeΣ oε thσ nineteentΦ linσ iε thσ columε tha⌠ the∙ arσ ì
  1130. summeΣá from«á  Iµ yo⌡ d∩ no⌠ understanΣ thσ abovσ tr∙ usinτá thσ ì
  1131. maiεá prograφ anΣ usσ thσ subrecorΣ option≤ iε enterinτ datßá fo≥ ì
  1132. filσ #1.
  1133.  
  1134.  
  1135. è                      KEYLIST EXPLANATION 
  1136.  
  1137.      Aεá intege≥ fielΣ ma∙ bσ specifieΣ iε thσ CFIL┼ prograφ a≤ ß ì
  1138. ke∙á t∩á ß lis⌠ oµ strings«á  Iε thσ samplσá file≤á thσá employeσ ì
  1139. number≤ arσ thσ key≤ t∩ thσ employee'≤ name«á  Als∩ iε thσ samplσ ì
  1140. files the account numbers are the keys to the account names.     
  1141.      Iεá designinτá system≤á i⌠ i≤ usuall∙ bes⌠á t∩á avoiΣá usinτ ì
  1142. string≤á tha⌠á arσ useΣ a≤ pointer≤ o≥ iε an∙á calculation«á  Thσ ì
  1143. probleφáá witΦá usinτá string≤á i≤á tha⌠á the∙á arσá to∩áá easil∙ ì
  1144. incorrectly entered.  For example the strings :
  1145.      Stephen Anthony
  1146.      Stephen  Anthony
  1147.      Stephen Anthony, T
  1148.       Stephen Anthony
  1149.      Stephen T Anthony 
  1150. arσá al∞ seeε a≤ differen⌠ peoplσ b∙ thσ computer«á  Whilσ i⌠á i≤ ì
  1151. possiblσá t∩ writσ program≤ usinτ string≤ i⌠ usuall∙ cause≤á morσ ì
  1152. problems than it is worth.
  1153.      I⌠á i≤á easie≥á t∩ assigε eacΦ employeσá ßá number«á  I⌠á i≤ ì
  1154. usuall∙á easie≥ t∩ ente≥ ß numbe≥ thaε tr∙ t∩ typσ iε 2░ o≥á morσ ì
  1155. letter≤á iε thσ samσ exac⌠ order«á  However¼á peoplσ recognizσá ß ì
  1156. namσá easie≥ thaε the∙ caε recognizσ ß number«á  Fo≥ examplσ iµ ß ì
  1157. recorΣ show≤ ß paychecδ t∩ employeσ numbe≥ ▒ fo≥ $30░ yo⌡ ma∙ no⌠ ì
  1158. recal∞á wh∩á employeσ numbe≥ ▒ is«á  B∙á declarinτá thσá employeσ ì
  1159. numbe≥á t∩á bσ ß ke∙ t∩ ß lis⌠ ever∙ timσ thσ employeσ numbe≥á i≤ ì
  1160. showεá thσ employee≤ namσ wil∞ als∩ bσ shown«á  Thσ samσ i≤á truσ ì
  1161. fo≥á thσá accoun⌠ numbers«á  Yo⌡ caε seσ ho≈ thσá keylis⌠á optioε ì
  1162. work≤á b∙á readinτá ß recorΣ iε thσ samplσ filσá ▒á "JOURNALóá o≥ ì
  1163. samplσ filσ │ "PAYCHECK".
  1164.      Yo⌡á caεá definσ you≥ owε keylist«á  Wheεá usinτá thσá CFIL┼ ì
  1165. prograφ t∩ se⌠ u≡ you≥ files¼ yo⌡ ma∙ declarσ aε intege≥ valuσ t∩ ì
  1166. bσá ßá ke∙á t∩ ß list«á  Thσ keylis⌠ string≤ arσ storeΣá iεá filσ ì
  1167. numbe≥ 1░ "KEYLIST"«  Thσ keylis⌠ filσ i≤ se⌠ u≡ a≤ :
  1168.     Field 1 :  List Number 
  1169.     Field 2 :  Row Number
  1170.     Field 3 :  The Key  (the string)
  1171.  
  1172.      Thσá lis⌠á numbe≥á i≤á thσ lis⌠ numbe≥á t∩á whicΦá thi≤á ke∙ ì
  1173. corresponds«á  Thσ ro≈ numbe≥ i≤ thσ numbe≥ tha⌠ thσ intege≥á ke∙ ì
  1174. mus⌠ havσ fo≥ thσ compute≥ t∩ prin⌠ thσ string«á  Fo≥ example¼ t∩  ì
  1175. ente≥á ßá ke∙ fo≥ ß ne≈ employeσ Johε SmitΦ a≤ employeσ numbe≥á ╕ ì
  1176. usσá thσá maiεá prograφ t∩ ente≥ ß ne≈á recorΣá numbe≥á  (d∩á no⌠ ì
  1177. overwritσ an∙ olΣ record≤ unles≤ yo⌡ wan⌠ to⌐ iε thσ KEYLIS╘ filσ ì
  1178. numbe≥ 1░ a≤ ║ 
  1179.  
  1180.     Field 1 : 1  (the employee numbers have been assigned to 
  1181.                   list number one in the CFILE program) 
  1182.     FielΣ ▓ : ╕   (yo⌡ want employeσ numbe≥ eigh⌠ t∩ corresponΣ ì
  1183.                    to the below key)
  1184.     Field 3 : John Smith
  1185.  
  1186.      I⌠á doe≤á no⌠ matte≥ whicΦ recorΣ numbe≥ yo⌡ pu⌠á thσá abovσ ì
  1187. datß in«á  Thσ operation≤ program≤ read≤ thσ entirσ keylis⌠á filσ ì
  1188. int∩á memor∙á a⌠ thσ star⌠ oµ prograφ anΣ store≤ thσá string≤á iε ì
  1189. memory.  è
  1190.                      DATA BASE SPECIFICATION
  1191.                      (or memory limitation)
  1192.  
  1193.      The program as distributed has the following limitations:
  1194.  
  1195. 1. MAXIMUM NUMBER OF FILES    : 15     on one program data disk
  1196. 2. MAXIMUM NUMBER OF FIELDS   : 28
  1197. 3. MAXIMUM NUMBER OF RECORDS  : 16,000 per disk if disk space is 
  1198.                                        available 
  1199.                               : using Basic 2.0,   16 million
  1200. 4. MAXIMUM STRING LENGTH      : 55 characters
  1201.  
  1202.      Thσá maximuφá numbe≥ oµ file≤ pe≥ prograφ datß disδ anΣá thσ ì
  1203. maximuφ numbe≥ oµ field≤ arσ limiteΣ b∙ thσ memor∙ addressablσ b∙ ì
  1204. you≥á basiπá languagσá (probabl∙ 64K)«á  Thσá maximuφá numbe≥á oµ ì
  1205. record≤ pe≥ disδ i≤ limiteΣ eithe≥ b∙ thσ disδ spacσ availablσ o≥ ì
  1206. b∙á thσ larges⌠ intege≥ you≥ Basiπ wil∞ handlσ o≥ b∙ thσá larges⌠ ì
  1207. singlσá precisioεá numbe≥ iµ thσ GE╘ anΣ PU╘ statement≤á iεá you≥ ì
  1208. Basiπá languagσá caεá usσá singlσá precisioεá numbers«á  Iεá mos⌠ ì
  1209. application≤ yo⌡ wil∞ onl∙ bσ ablσ t∩ fi⌠ ß fe≈ thousanΣá record≤ ì
  1210. oε ß disk«  Yo⌡ caε usσ a≤ man∙ disk≤ fo≥ thσ filσ a≤ yo⌡ neeΣ s∩ ì
  1211. yo⌡á arσ no⌠ reall∙ limiteΣ witΦ regarΣ t∩ thσ maximuφ numbe≥á oµ ì
  1212. records«á  Thσá maximuφá strinτ lengtΦ wa≤ se⌠ t∩ 5╡ s∩á tha⌠á i⌠ ì
  1213. woulΣá fi⌠á oεá aε eight∙ columε screeε witΦ it≤ fielΣá namσá anΣ ì
  1214. number«á  Iµá yo⌡ neeΣ ß longe≥ strinτ yo⌡ caε alway≤ usσ tw∩á o≥ ì
  1215. morσ string≤ t∩ holΣ thσ samσ information.
  1216.      Yo⌡á caεá changσ thσ maximuφ numbe≥ oµ file≤ anΣá field≤á b∙ ì
  1217. increasinτá thσ dimension≤ oµ al∞ thσ variable≤ tha⌠ arσ requireΣ ì
  1218. fo≥ eacΦ filσ anΣ field«  Oµ coursσ yo⌡ arσ limiteΣ b∙ thσ memor∙ ì
  1219. tha⌠ you≥ Basiπ caε address«  Thσ compileΣ versioε wil∞ allo≈ yo⌡ ì
  1220. morσ memory«  Thσ compileΣ versioε wil∞ easil∙ allo≈ yo⌡ t∩ g∩ u≡ ì
  1221. t∩ 1╕ file≤ oµ 5░ variables«  Iµ yo⌡ arσ usinτ SANY╧ basiπ o≥ onσ ì
  1222. oµá thσ Basics that give≤ yo⌡ thσ ful∞ 64╦ memor∙ fo≥á datßá theε ì
  1223. you can easily use up to 18 files of 50 variables.  
  1224.      Yo⌡á caε alway≤ adΣ morσ file≤ b∙ usinτ tw∩ o≥ morσá prograφ ì
  1225. datßá disk≤ witΦ u≡ t∩ 1╡ differen⌠ file≤ oε eacΦá one«á  Howeve≥ ì
  1226. yo⌡á wil∞á no⌠á bσá ablσ t∩ transfe≥á datßá betweeεá file≤á whosσ ì
  1227. description≤ arσ oε tw∩ differen⌠ prograφ datß disks.
  1228.     
  1229. MAXIMUM FORM LENGTH                : 80 LINES
  1230. MAXIMUM NUMBER OF ENTRIES PER LINE : 10
  1231.  
  1232.      The maximum length of each form and the number of entries is 
  1233. limiteΣá b∙á thσ Dimensioε (DIM⌐ statemen⌠ iε thσ FOR═ anΣá CFOR═ ì
  1234. program«á  Yo⌡ caε increasσ thσ limit≤ b∙ changinτ thσ dimension≤ ì
  1235. oµ thσ variables.
  1236.  
  1237. MAXIMUM NUMBER OF TRANSFERS        : 10
  1238.    per data disk
  1239.  
  1240.      Thσá maximuφ numbe≥ oµ transfer≤ i≤ limiteΣ b∙ thσ dimensioε ì
  1241. statemen⌠ iε thσ TRANSFE╥ anΣ CTRANSF┼ program.
  1242.  
  1243. èMAXIMUM NUMBER OF SUBTOTALS        : ON 3 FIELDS 
  1244.                                    : integer values 1 to 200
  1245.  
  1246.      Iµ yo⌡ neeΣ t∩ subtota∞ on field≤ witΦ value≤ highe≥ thaε 20░ ì
  1247. thσn changσ thσ dimensioε oµ thσ SUMAF#(3,200⌐ t∩ SUMAF#(3,400⌐ o≥ ì
  1248. whateve≥ anΣ hopσ yo⌡ don'⌠ ruε ou⌠ oµ memory.
  1249.  
  1250.      Therσ arσ othe≥ mino≥ limitation≤ iε thσ program«á  Mos⌠ arσ ì
  1251. associateΣ witΦ limitation≤ iε thσ dimension≤ oµ variables«á  Fo≥ ì
  1252. examplσá yo⌡á caεá onl∙á adΣ u≡ t∩ ╢ othe≥á field≤á iεá aεá inpu⌠ ì
  1253. description«á  Iµ ruε int∩ aε "arra∙ ou⌠ oµ bound≤ erroró yo⌡ caε ì
  1254. probabl∙ redimensioε thσ arra∙ t∩ solvσ you≥ problem« 
  1255.  
  1256.                       PROGRAM LENGTH LIMITS    
  1257.  
  1258.      Dependinτá oε whicΦ versioε oµ Basiπ yo⌡ arσ usinτá yo⌡á ma∙ ì
  1259. havσ problem≤ witΦ thσ prograφ lengtΦ oµ thσ maiε program«á  Mos⌠ ì
  1260. version≤á oµ Basiπ restric⌠ yo⌡ t∩ 64╦ oµ prograφ anΣá variables«  ì
  1261. Thσá maiε prograφ i≤ current∙ jus⌠ abou⌠ a⌠ tha⌠ 64╦ limit«á  Thσ ì
  1262. compileΣá versioεá doe≤ no⌠ havσ thi≤ probleφ a≤á i⌠á allow≤á 64╦ ì
  1263. prograφáá plu≤á 64╦á oµá variables«áá  Iµá yo⌡á ruεá int∩á memor∙ ì
  1264. limitations¼á yo⌡á ma∙á wan⌠ t∩ deletσ unuseΣ part≤ oµá thσá maiε ì
  1265. program«  Fo≥ busines≤ application≤ i⌠ i≤ strongl∙ suggesteΣ tha⌠ ì
  1266. yo⌡ usσ ß compileΣ versioε oµ thi≤ program«á  ┴ compileΣá versioε ì
  1267. wil∞á ruε threσ t∩ teε time≤ faste≥ theε thσ Basiπ version«á  Thσ ì
  1268. compileΣá versioεá wil∞ allo≈ yo⌡ abou⌠ threσ time≤á thσá memory«  ì
  1269. Thσ basiπ versioε wil∞ ruε ou⌠ oµ memor∙ ver∙ fas⌠ iµ yo⌡ ente≥ ß ì
  1270. largσ keylis⌠ anΣ ta° table≤ etc« 
  1271.  
  1272.  
  1273.                           BASIC VERSION 
  1274.  
  1275.      Iεá thi≤ manua∞ wheε wσ refe≥ t∩ thσ basiπ versioεá wσá meaε ì
  1276. thσá interperteΣá Basiπ version«á  Wheε ╔ refe≥ t∩á thσá compileΣ ì
  1277. versioε wσ meaε thσ compileΣ Basiπ version«  Thσ compileΣ versioε ì
  1278. i≤á compileΣá iεá Microsof⌠á Basiπ anΣ doe≤á no⌠á usσá thσá Basiπ ì
  1279. languagσ oε you≥ computer«  Iµ yo⌡ arσ usinτ thσ compileΣ versioε ì
  1280. yo⌡áá d∩áá no⌠á havσá t∩á worr∙á abou⌠á an∙á oµáá thσáá followinτ ì
  1281. incompatabilit∙ problem≤ witΦ thσ Basiπ version«  
  1282.  
  1283.                        MEMORY REQUIREMENTS
  1284.  
  1285.      T∩á ruε thσ Basiπ versioε you≥ compute≥ need≤ a⌠á leas⌠á 64╦ ì
  1286. fo≥á thσá program≤á anΣ variable≤ plu≤ memor∙ fo≥á thσá operatinτ ì
  1287. system¼á basiπ interperter¼á anΣ possibl∙ fo≥ thσ screen«  Iµ yo⌡ ì
  1288. arσá usinτ ß compute≥ whicΦ ha≤ thσ basiπ iε RO═ theε yo⌡ ma∙á bσ ì
  1289. ablσ t∩ ruε thσ prograφ oε ß 128╦ computer«á  Mos⌠ computer≤ wil∞ ì
  1290. requirσ 192K« 
  1291. **********************  READ THIS SECTION  **********************
  1292.      Iµ yo⌡ arσ usinτ IB═ Basiπ yo⌡ wil∞ havσ t∩ invokσ thσ Basiπ ì
  1293. languagσá usinτ thσ BASI├ /S:51▓ t∩ allo≈ randoφ acces≤ file≤á u≡ ì
  1294. t∩ 51▓ bytes«  Yo⌡ wil∞ als∩ havσ t∩ ente≥ thσ commanΣ KE┘ OF╞ t∩ ì
  1295. turε off thσ lis⌠ oµ key≤ oε linσ 2╡ wheε usinτ thσ MAI╬ program«  ì
  1296. Yo⌡á ma∙ wan⌠ t∩ writσ thσ commanΣ KE┘ OF╞ int∩ thσ MAI╬á prograφ ì
  1297. iµ yo⌡ arσ usinτ IB═ basiπ ¿eg«á 5╡ KE┘ OF╞)«áWe  havσ no⌠ donσ ìèso for compatibility reasons.
  1298.  
  1299. *****************************************************************
  1300. READ THIS :
  1301.      Thσá Basiπá program≤á arσá distributeΣá iεá ACSI╔á forφá fo≥ ì
  1302. compatibilit∙ reasons«á  The∙ werσ saveΣ witΦ thσ ,┴ optioε (SAV┼ ì
  1303. "MAIN",A)«  Fo≥ faste≥ loadinτ oµ thσ programs¼ loaΣ eacΦ prograφ ì
  1304. theε savσ eacΦ prograφ withou⌠ usinτ thσ ,┴ optioε (SAV┼ "MAIN").
  1305. Iµá you≥ compute≥ use≤ 36░ ╦ disk≤ cop∙ thσ 32░ ╦ disk≤ t∩ 36░á ╦ ì
  1306. disks using " A: copy *.* b: ".
  1307. *****************************************************************
  1308.      Wσá havσ developeΣ thi≤ systeφ usinτ SANY╧ basiπ oε ßá SANY╧ ì
  1309. computer«á Wσá theε compilσ mos⌠ oµ m∙ program≤ oε thσá Microsof⌠ ì
  1310. Basiπá Compiler«á  SANY╧á Basiπ i≤ downwarΣ compatiablσ witΦá IB═ ì
  1311. Basic«á Iµá yo⌡ usσ IB═ Basiπ yo⌡ arσ goinτ t∩ ruε ou⌠ oµá memor∙ ì
  1312. ver∙á fast«á Wσá sugges⌠ usinτ ß compileΣ versioε rathe≥á theεá ß ì
  1313. basiπ version« 
  1314.        
  1315.                  Differences in Basic Languages: 
  1316.  
  1317.      Thi≤á prograφá use≤á thσá followinτ command≤á whicΦá ma∙á bσ ì
  1318. slightl∙ differen⌠ than the version of basic you are using.
  1319.      1. CLS - CLEAR SCREEN
  1320.      2. LOCATE - locates the position on the screen
  1321.      3. LOF( ) - returns the file length
  1322.      4. PRINT CHR$(8) - Moves the cursor back one space.
  1323.             ****  note IBM BASIC uses PRINT CHR$(29) ****  
  1324.     
  1325.      Iµá you≥á Basiπá doe≤á no⌠ suppor⌠ thesσá command≤á yo⌡á caε ì
  1326. usuall∙á simulatσá thσá command≤á iεá you≥á language«á Thσá abovσ ì
  1327. command≤ were used onl∙ oncσ iε eacΦ prograφ iε ß subroutine.
  1328.  
  1329.                           PRINT CHR$(8)
  1330.  
  1331. NOT┼ ║á W┼ DISTRIBUT┼ TH┼ DAT┴ BAS┼ WIT╚ EITHE╥ C╚ ╜ ╕ FO╥á USER╙ ì
  1332. O╞ MICROSOF╘ BASI├ O╥ C╚ ╜ 2╣ FO╥ IB═ BASIC«á  YO╒ MA┘ O╥ MA┘ NO╘ ì
  1333. HAV┼ T╧ MAK┼ TH┼ FOLLOWIN╟ CHANGE.
  1334.  
  1335.      Iµá yo⌡ tr∙ thσ program≤ anΣ thσ promp⌠ doe≤ no⌠ contaiε thσ ì
  1336. cursor yo⌡ probabl∙ havσ t∩ makσ thi≤ change«á  Thσ promp⌠ shoulΣ ì
  1337. look like :
  1338. >__<
  1339. with the cursor just to the left of the >. 
  1340.  
  1341.      Iµá PRIN╘á CHR$(8⌐ doe≤ no⌠ movσ thσ curso≥ bacδá onσá spacσ ì
  1342. theεá yo⌡ ma∙  neeΣ t∩ changσ thσ program«á  Looδ iεá you≥á BASI├   ì
  1343. manua∞á t∩á determinσ whicΦ ASCI╔ codσ wil∞ movσ thσ curso≥á bacδ ì
  1344. onσ space«  (IB═ BASI├ USE╥ I╘ I╙ CHR$(29⌐ )«  T∩ makσ thσ changσ ì
  1345. easie≥ fo≥ yo⌡ ╔  havσ useΣ PRIN╘ CHR$(CH⌐ s∩ tha⌠ yo⌡ onl∙á havσ ì
  1346. t∩á changσá thσá valuσ oµ thσ variablσá CH«á  Iεá thσá operation≤ ì
  1347. program≤ changσ linσ 6▒ from:
  1348.        61 CH = 8     TO
  1349.        6▒á C╚á ╜ 2╣    o≥ whateve≥ ASCI╔ characte≥ wil∞ movσá thσ ì
  1350. curso≥ back«  D∩ thσ samσ thinτ iε thσ Custoφ Program≤ a⌠ linσ 7░ ì
  1351. anΣ iε thσ sor⌠ prograφ a⌠ linσ 10.è
  1352.                                CLS
  1353.  
  1354.      Iµá you≥á compute≥á doe≤ no⌠ usσ CL╙ commanΣá t∩á clea≥á thσ ì
  1355. screeε theε yo⌡ mus⌠ replacσ i⌠ witΦ thσ commanΣ tha⌠ wil∞á clea≥ ì
  1356. you≥á screen«á  Thσá CL╙á i≤á a⌠ linσá 13000- iεá thσá operation≤ ì
  1357. program≤á linσ 500- iε thσ custoφ program≤ anΣ linσ 1500░ iεá thσ ì
  1358. sor⌠ program.
  1359.  
  1360.                              LOCATE 
  1361.  
  1362.      Iµ you≥ compute≥ doe≤ no⌠ usσ thσ LOCAT┼ commanΣ t∩ locatσ ß ì
  1363. positioε oε thσ screeε theε yo⌡ mus⌠ replacσ i⌠ witΦ thσá commanΣ ì
  1364. tha⌠á will«á  Thσá locatσ commanΣ i≤ useΣ oncσ iε thσá operation≤ ì
  1365. program≤ anΣ onl∙ oε linσ 13100- anΣ iε thσ CSCREE╬ program.
  1366.  
  1367.                              LOF( )
  1368.  
  1369.      Iµ you≥ compute≥ doe≤ no⌠ usσ thσ LO╞ commanΣ t∩ returεá thσ ì
  1370. filσá lengtΦá theε yo⌡ wil∞ havσ t∩ replacσ i⌠ witΦá thσá commanΣ ì
  1371. tha⌠á does«á  NOT┼á ***¬  Somσ version≤ oµ Microsof⌠á Basiπá wil∞ ì
  1372. suppor⌠á LOF¿á ⌐ bu⌠ i⌠ i≤ no⌠ documenteΣ iε thei≥ manua∞á  ****«  ì
  1373. Thσ Microsof⌠ Basiπ compile≥ wil∞ suppor⌠ thσ thσ LO╞ commanΣ bu⌠ ì
  1374. i⌠ i≤ no⌠ documenteΣ iε thei≥ manual«á Thσ commanΣ LOF¿ ⌐ i≤á no⌠ ì
  1375. useΣ iε thσ custoφ programs.
  1376.  
  1377.                     DISCLAIMER OF WARRANTIES
  1378.  
  1379. PRIO╥ T╧ USIN╟ THES┼ PROGRAM╙ REA─ THI╙ DISCLAIME╥ O╞á WARRANTIE╙ ì
  1380. AN─á TH┼ LICENS┼ AGREEMENT«á  I╞ YO╒ D╧ NO╘ AGRE┼ WIT╚ AL╠ O╞ TH┼ ì
  1381. CONDITION╙ THE╬ YO╒ AR┼ NO╘ LICENSE─ T╧ US┼ THI╙ PROGRAM.
  1382.  
  1383. Notσ ║ Thi≤ i≤ almos⌠ thσ samσ agreemen⌠ yo⌡ ge⌠ witΦ an∙ prograφ ì
  1384. yo⌡ purchasσ froφ IBM¼ Microsof⌠ o≥ an∙ othe≥ softwarσ firm.
  1385.  
  1386. Potomaπ Pacifiπ Engineerinτ Inc«á license≤ thi≤ prograφ solely oε ì
  1387. an "as is" basis.
  1388.  
  1389. Potomaπáá Pacifiπáá Engineerinτá shal∞á havσá n∩áá liabilit∙áá o≥ ì
  1390. responsibilit∙á t∩á Licenseσ o≥ an∙ othe≥ persoε o≥á entit∙á witΦ ì
  1391. respec⌠ t∩ an∙ liability¼á los≤ o≥ damagσ causeΣ o≥ allegeΣ t∩ bσ ì
  1392. causeΣ directl∙ o≥ indirectl∙ b∙ thi≤ product¼á includinτ bu⌠ no⌠ ì
  1393. limiteΣáá t∩á interuptioεá oµá services¼áá los≤á oµá busines≤á o≥ ì
  1394. anticipator∙ profit≤ o≥ consequentia∞ damage≤ resultinτ froφá thσ ì
  1395. usσ o≥ operatioε oµ thi≤ program.
  1396.  
  1397. Potomaπá Pacifiπ Engineerinτ make≤ n∩ warranties¼á eithe≥ expres≤ ì
  1398. o≥ implieΣ regardinτ thi≤ program¼ it≤ merchantibilit∙ anΣ o≥ it≤ ì
  1399. fitnes≤ fo≥ ß particula≥ purpose«á  Licenseσ agree≤ tha⌠á Potomaπ ì
  1400. Pacifiπáá Engineerinτáá shal∞áá no⌠á bσá helΣá liablσáá fo≥áá an∙ ì
  1401. consequentia∞á damages¼á eveε iµ Potomaπ Pacifiπ Engineerinτá ha≤ ì
  1402. beeε adviseΣ oµ thσ possibilit∙ oµ sucΦ damages« 
  1403.  
  1404.      Al∞ computer≤ anΣ compute≥ program≤ malfunctioε froφ timσ t∩ ì
  1405. time«  I⌠ i≤ thσ entirσ responsibilt∙ oµ thσ use≥ wh∩ design≤ thσ ìèsysteφ t∩ :
  1406. 1) Design backup procedures that will not allow you to incur  
  1407.      damages.
  1408. 2) Design procedures to prevent fraud.
  1409. 3⌐ Desigε manua∞ procedure≤ tha⌠ yo⌡ caε usσ whilσ you≥á compute≥ ì
  1410.      is out of order.    
  1411. 4) Design systems that will not cause you significant  damages
  1412.      if the program or computer fails.
  1413.  
  1414.                        LICENSE INFORMATION
  1415.  
  1416.     EacΦá Prograφ anΣ thσ Manua∞ i≤ CopyrighteΣ 198┤á b∙á Potomaπ ì
  1417. Pacifiπá Engineerinτá Inc«á  Thσá prograφ i≤á no⌠á sold«á  I⌠á i≤ ì
  1418. licenseΣ FRE┼ t∩ al∞ user≤ witΦ thσ followinτ restriction≤ :
  1419. 1«á  Yo⌡á ma∙á sel∞ o≥ givσ awa∙ an∙ prograφ tha⌠á contain≤á onl∙ ì
  1420. portion≤á oµ thσ operation≤ programs¼á o≥ spreadshee⌠á o≥á exper⌠ ì
  1421. systeφá withou⌠á paymen⌠ oµ royaltie≤  a≤ lonτ a≤á thσá followinτ ì
  1422. statement≤ arσ encloseΣ iε thσ manua∞ oµ you≥ prograφ :
  1423.                       
  1424. REQUIRED STATEMENTS FOR ALL PROGRAMS :
  1425.  
  1426.     Portions (C) Copyright
  1427.     Potomac Pacific Engineering Inc. 1984
  1428.     All rights reserved.
  1429. (end of required statement)
  1430.  
  1431. Wσá woulΣá appreciatσá i⌠ iµ yo⌡ referencσ ou≥á prograφá iεá you≥ ì
  1432. manual.  
  1433.                                                                       
  1434. 2«á Yo⌡ ma∙ no⌠ distributσ an∙ modifieΣ program≤ tha⌠ contaiε an∙ ì
  1435. portion≤á oµ thσ custoφ program≤ no≥ ma∙ yo⌡ usσ an∙ portion≤á oµ ì
  1436. ou≥á prograφá iε ß datß basσ prograφ tha⌠ wil∞ competσá witΦá ou≥ ì
  1437. program«  Yo⌡ ma∙ no⌠ usσ an∙ par⌠ oµ ou≥ program≤ iε ß differen⌠ ì
  1438. datß base¼ spreadshee⌠ o≥ exper⌠ systeφ inferencσ enginσ program«  ì
  1439. ┴á datß basσ prograφ i≤ defineΣ ß prograφ wherσ ß use≥ caε definσ ì
  1440. hi≤ owε file≤ (datß bases)«  
  1441.  
  1442. 3«á Iεá thσá interest≤ oµ standardizatioε yo⌡ ma∙ no⌠á distributσ ì
  1443. modifieΣ version≤ oµ thσ programms«á Thσ program≤ anΣ thσá manua∞ ì
  1444. ma∙ no⌠  bσ modified«á Wσ encouragσ yo⌡ t∩ writσ an∙ enhancement≤ ì
  1445. t∩á thσ programs«á  However¼á kee≡ an∙ enhancement≤ iε ß separatσ ì
  1446. prograφá tha⌠ caε bσ mergeΣ witΦ ou≥ program≤ iµ an∙á othe≥á use≥ ì
  1447. woulΣ likσ t∩ usσ you≥ enhancement«  Pleasσ senΣ u≤ ß cop∙ oµ an∙ ì
  1448. enhancement≤á o≥á modification≤ yo⌡ woulΣ likσ t∩ donatσá t∩á thσ ì
  1449. public¼ wσ wil∞ conside≥ addinτ theφ t∩ ou≥ program.
  1450.  
  1451. 4«á Club≤á anΣ user≤ group≤ man∙ distribute copie≤ oµ thσ prograφ ì
  1452. witΦá thσá change≤á necessar∙ fo≥ thσ prograφá t∩á ruεá oεá thei≥ ì
  1453. computers«á  Fo≥á examplσá iµ ß T╔ user'≤ grou≡ manage≤ t∩ ge⌠á ß ì
  1454. prograφá runninτ oε thσ T╔ theε the∙ ma∙ distributσ thσá modifieΣ ì
  1455. program«á  Onl∙ nonprofi⌠  group≤ ma∙ sel∞ thσ datß basσ anΣ onl∙ ì
  1456. fo≥á ßá nomina∞á feσ t∩ cove≥ costs«á  Thσ program≤á ma∙á no⌠á bσ ì
  1457. bundled with anything that is sold, without our written consent. 
  1458.      Wσá reservσ thσ righ⌠ t∩ withdra≈ thσ licensσ iµ an∙ oµá thσ ì
  1459. licensσ condition≤ arσ violated.è            HOW TO WRITE PROGRAMS USING OUR DATA BASE
  1460.  
  1461.      Yo⌡á caε reducσ you≥ programminτ timσ b∙ 60Ñ t∩ 90Ñ b∙ usinτ ì
  1462. our Data Base to:
  1463.      - Set up your files.
  1464.      - Handle the data entry.
  1465.      - Handle the file access and file entry.
  1466.      - Handle all the output.
  1467.      Firs⌠á checδá iµá yo⌡á caεá pu⌠á you≥á applicatioεá oεáá thσ ì
  1468. spreadsheet«á  Theεá yo⌡ shoulΣ checδ anΣ seσ iµ yo⌡ caε pu⌠ you≥ ì
  1469. applicatioεáá oεá thσá datßá basσá withou⌠á writinτá an∙áá custoφ ì
  1470. subroutines«áá  Thσáá Datßáá Basσá wa≤á designeΣáá fo≥áá busines≤ ì
  1471. applications«á  I⌠ caε handlσ comple° application≤ sucΦ a≤ Incomσ ì
  1472. Ta° form≤ anΣ Accountinτ withou⌠ modifications.
  1473.  
  1474.      Iµ you≥ applicatioε i≤ complex¼á i⌠ ma∙ requirσ yo⌡ t∩ writσ ì
  1475. somσá custoφ subroutines«á  Remembe≥ tha⌠ i⌠ i≤ ß lo⌠á easie≥á t∩ ì
  1476. writσá ß pagσ o≥ tw∩ oµ subroutine≤ thaε i⌠ i≤ t∩ writσ ßá thirt∙ ì
  1477. pagσ program«  
  1478.      
  1479.      Therσ arσ severa∞ eas∙ way≤ t∩ customizσ ou≥ datß base«  Thσ ì
  1480. firs⌠ i≤ t∩ customizσ thσ inpu⌠ routine« Fo≥ example¼ supposσ yo⌡ ì
  1481. wan⌠áá t∩á writσá ßá multivariatσá regressioεá analysi≤á program«  ì
  1482. Supposσá yo⌡ wan⌠ t∩ correlatσ ß person'≤ I╤ witΦá thei≥á grades« ì
  1483. You coulΣ se⌠ u≡ ß filσ like.
  1484.   Field 1 : Name
  1485.   Field 2 : IQ from test #1
  1486.   Field 3 : IQ from test #2
  1487.   Field 4 : IQ from test #3
  1488.   Field 5 : Median IQ test result
  1489.   Field 6 : Mean IQ test result
  1490.   Field 7 : High School Average Grade
  1491.   
  1492.      Usinτá thσá custoφá inpu⌠ prograφ yo⌡ coulΣ definσá al∞á thσ ì
  1493. entrie≤á t∩ bσ entereΣ b∙ thσ operato≥ excep⌠ Mediaε I╤ anΣá Meaε ì
  1494. IQ«á  Iεá thσ Custoφ Inpu⌠ prograφ definσ Mediaε I╤ t∩á bσá inpu⌠ ì
  1495. optioεá 1┤ anΣ Meaε I╤ t∩ bσ inpu⌠ optioε 15«á  An∙ inpu⌠á optioε ì
  1496. greate≥ thaε #1│ ha≤ t∩ bσ use≥ defined«  Movinτ bacδ t∩ thσ maiε  ì
  1497. prograφ looδ a⌠ linσ 4114░ whicΦ i≤ :
  1498. 41140 ON IOPT(N) GOSUB 41400,41400,....43600,41800,53000,54000.
  1499. Oεá thσ inpu⌠ optioε thσ compute≥ wil∞ g∩ t∩ thσ subroutinσá tha⌠ ì
  1500. wil∞ calculatσ thσ value«á  No≈ yo⌡ caε writσ you≥ subroutine≤ a⌠ ì
  1501. 53000,anΣ 54000.
  1502.  
  1503.      Durinτ thσ inpu⌠ optioε X(fielΣ number⌐ i≤ thσ valuσ oµá thσ ì
  1504. numeriπ fields«á Yo⌡ ma∙ wan⌠ t∩ writσ you≥ subroutinσ t∩ computσ ì
  1505. the mean IQ as:
  1506. 53000 REM *****  COMPUTES GEOMETRIC MEAN
  1507. 53100 TEMP# = X(2)*X(2) + X(3)*X(3) + X(4)*X(4)
  1508. 53110 I# = TEMP#/3
  1509. 53120 RETURN
  1510.  
  1511. Use the variable I# to return the value of the field.
  1512.  
  1513. Also note line 46140 printed below è46150 ON IOPT(N) GOSUB 46200,46200,.....43600,43800,53000,54000
  1514. Linσ 4615░ i≤ useΣ t∩ recomputσ you≥ field≤ iµ someonσ changσ onσ ì
  1515. oµá thσ fields«á  Fo≥ example¼á iµ thσ I╤ froφ tes⌠ ▒ wa≤ entereΣ ì
  1516. incorrectl∙á anΣá theεá iµ i⌠ wa≤ correcteΣ, thσá compute≥á woulΣ ì
  1517. recalculatσ thσ meaε fo≥ you.
  1518.  
  1519.      No≈ thσ compute≥ wil∞ calculatσ thσ meaε anΣ mediaε fo≥ you«  ì
  1520. Supposσá yo⌡á havσá entereΣ iε thσá datßá fo≥á 2░á students«á  T∩ ì
  1521. calculatσ thσ correlatioε yo⌡ mus⌠ reaΣ al∞ oµ thσ records¼ storσ ì
  1522. thσ result≤ int∩ memory¼á anΣ theε calculatσ thσ correlation«  Iµ ì
  1523. yo⌡á werσ writinτ thσ prograφ yourselµ yo⌡ woulΣ neeΣ t∩ opeε thσ ì
  1524. file¼á fielΣ i⌠ conver⌠ al∞ thσ string≤ t∩ decimals,theε opeε thσ ì
  1525. result≤ file¼á fielΣ it¼ conver⌠ al∞ thσ number≤ t∩ strings¼ etc«  ì
  1526. Usinτá thσ datß basσ yo⌡ caε usσ thσ filσ prograφ t∩ se⌠ u≡á you≥ ì
  1527. outpu⌠ o≥ result≤ file.
  1528.  
  1529. Fo≥ example¼ se⌠ u≡ thσ result≤ filσ iε thσ followinτ manner:
  1530.    Field 1. - Name of Test
  1531.    Field 2. - Date of Test
  1532.    Field 3. - Correlation
  1533.    Field 4. - Slope
  1534.    Field 5. - Intercept
  1535.  
  1536. Firs⌠á ║á Se⌠ u≡ ß transfe≥ t∩ transfe≥ thσ sum≤ froφá ou≥á firs⌠ ì
  1537. filσ t∩ ou≥ outpu⌠ file«á  Fo≥ Example¼ Suφ fielΣ ▓ oµ thσ sourcσ ì
  1538. filσá anΣá senΣ thσ result≤ t∩ fielΣ │ oµ thσá outpu⌠á file«á Suφ ì
  1539. fielΣ ▓ agaiε anΣ senΣ thσ result≤ t∩ fielΣ ┤ oµ thσ outpu⌠ file«  ì
  1540. Suφ fielΣ ▓ (o≥ an∙ field⌐ anΣ senΣ thσ result≤ t∩ fielΣ ╡ iε thσ ì
  1541. outpu⌠ file«á  Yo⌡ obviousl∙ d∩ no⌠ wan⌠ thσ sum≤ transfered¼á wσ ì
  1542. arσá jus⌠á settinτ u≡ thσ transfer«á  Wσ arσ goinτ t∩ modif∙á thσ ì
  1543. transfe≥á prograφ s∩ tha⌠ wσ wil∞ senΣ thσ correlation,slopσá anΣ ì
  1544. intercep⌠ t∩ thσ outpu⌠ field.
  1545.  
  1546. Iεá line≤ 21070-2151░ oµ thσ prograφ  transfe≥ thσ prograφá read≤ ì
  1547. eacΦ recorΣ iε thσ file«  Normall∙ thσ variable≤ arσ ove≥ writteε ì
  1548. eacΦ timσ ß recorΣ i≤ read«  Howeve≥ t∩ computσ thσ regressioε wσ ì
  1549. neeΣ t∩ kee≡ eacΦ variablσ iε memory«  SU#(field⌐ i≤ thσ valuσ oµ  ì
  1550. eacΦ numeriπ field«  Yo⌡ coulΣ changσ linσ 2150░ t∩ 
  1551.         21500 VAR(N,K) = SU#
  1552.         21505 NEXT K
  1553. o≥á yo⌡ coulΣ usσ somσ morσ comple° wa∙ oµ holdinτ thσ value≤á oµ ì
  1554. your variable.
  1555.      No≈ tha⌠ yo⌡ havσ you≥ variable≤ iε thσ computer'≤ memory, ì
  1556. yo⌡á wil∞á neeΣá t∩ writσ ßá subroutinσá t∩á computσá thσ ì
  1557. correlation¼ slopσ anΣ thσ intercept«  A⌠ thσ enΣ oµ thσ transfe≥ ì
  1558. optioεá thσ compute≥ wil∞ g∩ t∩ thσ subroutinσ 2560░ whicΦá move≤ ì
  1559. thσ sum≤  t∩ thσ targe⌠ file« G∩ t∩ you≥ subroutine« eg.:
  1560.         2560╡  GOSU┬ 55000
  1561.  
  1562.      Now¼á No≈á writσ you≥ subroutinσ computinτ thσá correlation¼ ì
  1563. slope, and the intercept.  Return the values as :
  1564.      SUM#(1) = (Correlation)
  1565.      SUM#(2) = (Slope)
  1566.      SUM#(3) = (Intercept)
  1567.      RETURN èThσá compute≥ wil∞ theε placσ thσ sum≤ iε thσ targe⌠ filσ iεá thσ ì
  1568. fielΣ numbe≥ yo⌡ specifieΣ wheε yo⌡ se⌠ u≡ thσ transfe≥ option.
  1569.  
  1570.                        SYSTEM DESIGN NOTES
  1571.  
  1572.      Wheεá designinτá ß systeφ i⌠ i≤ possiblσ t∩ writσá you≥á owε ì
  1573. menu≤á anΣ intergratσ theφ int∩ thσ program«á  Fo≥ examplσ iµ yo⌡ ì
  1574. werσ designinτ ß smal∞ hote∞ reservatioε systeφ i⌠ i≤ impractica∞ ì
  1575. t∩á traiε al∞ clerk≤ t∩ usσ thσ datß base«á  Als∩ usinτ thσá datß  ì
  1576. base¼ a≤ i⌠ is¼ woulΣ probabl∙ takσ t∩ mucΦ time«  Yo⌡ woulΣ wan⌠ ì
  1577. t∩ desigε ß singlσ screeε men⌡ witΦ simplσ choice≤ sucΦ a≤ :
  1578.     1. Check for open rooms
  1579.     2. Enter a reservation
  1580.     3. Cancel a reservation
  1581. Yo⌡á woulΣá theεá modif∙ ou≥ prograφ s∩ tha⌠ wheεá thσá "Ente≥á ß ì
  1582. reservationó optioε i≤ choseε thσ prograφ wil∞ g∩ straigh⌠ t∩ thσ ì
  1583. ne≈á entr∙á section«á  Wheε thσ "checδ fo≥ opeε roomóá optioεá i≤ ì
  1584. choseε thσ datσ shoulΣ bσ requested¼ conver⌠ thσ datσ t∩ ß recorΣ ì
  1585. numbe≥á anΣ theε sho≈ thσ recorΣ containinτ thσ numbe≥á oµá room≤ ì
  1586. open«á Wheε thσ cance∞ ß reservatioε i≤ choseε yo⌡ shoulΣ rewritσ ì
  1587. thσ prograφ s∩ tha⌠ goe≤ t∩ correc⌠ recorΣ option«  
  1588.  
  1589.      Yo⌡á neeΣ t∩ kno≈ ho≈ t∩ prograφ iε Basiπ t∩ writσ you≥á owε ì
  1590. menu≤ a≤ explaineΣ iε thσ examplσ above«á Thσ remark≤ program≤ oε ì
  1591. disδ ▓ wil∞ hel≡ yo⌡ t∩ understanΣ thσ maiε program«á  Thσá tricδ ì
  1592. i≤ t∩ usσ thσ subroutine≤ tha⌠ wσ havσ alread∙ written«á  Yo⌡ ma∙ ì
  1593. wan⌠á t∩á usσá flag≤ t∩ contro∞ thσ prograφá flow«á  Iµá yo⌡á arσ ì
  1594. designinτá ßá largσá systeφá yo⌡á ma∙ wan⌠á t∩á chaiεá thσá FORM¼ ì
  1595. TRANSFER¼ SORT¼ CHANG┼ anΣ SCA╬ program≤ froφ thσ maiε program«  
  1596.      
  1597.      Wheεá designinτ systems¼á i⌠ i≤ possiblσ t∩ avoiΣá accessinτ ì
  1598. thσá prograφ datß disδ b∙ writinτ thσ variable≤ iεá thσá program«  ì
  1599. I⌠á i≤á als∩á strongl∙á suggesteΣ tha⌠á yo⌡á distributσá compileΣ ì
  1600. version≤ a≤ the∙ ruε faste≥ anΣ caε usuall∙ acces≤ morσ memory.
  1601.  
  1602.                              REPORTS
  1603.      
  1604.      Yo⌡ caε generatσ simplσ report≤ usinτ thσ scaε program«á  Iµ ì
  1605. yo⌡á kno≈ ho≈ t∩ prograφ iε Basiπ yo⌡ caε modif∙ thσ scaε prograφ ì
  1606. to produce more complex reports.
  1607.  
  1608.                  INNER WORKINGS OF THE PROGRAMS 
  1609.  
  1610.      Thi≤á sectioεá describe≤ thσ programminτ detail≤ oµ ho≈á thσ ì
  1611. program≤ work«á  Yo⌡ d∩ no⌠ need t∩ reaΣ thi≤ sectioε t∩ usσá thσ ì
  1612. datß base«á  Thi≤ sectioε wa≤ writteε fo≥ programmer≤ wh∩ wan⌠ t∩ ì
  1613. modify the program. 
  1614.  
  1615.      Thσ custoφ program≤ arσ fairl∙ simple«á  Thσ custoφ program≤ ì
  1616. arσá useΣ t∩ se⌠ u≡ thσ prograφ datß disk«á  Thσ custoφá program≤ ì
  1617. arσá men⌡á driven«áá  The∙á asδá yo⌡á fo≥á information¼á se⌠á thσ ì
  1618. variables¼á anΣá storσ i⌠ oε thσ prograφ datß disk«á  Thσá custoφ ì
  1619. program≤ se⌠ u≡ thσ variable≤ tha⌠ describσ thσ files¼á thσ inpu⌠ ì
  1620. data¼á thσ forms¼á thσ transfer≤ betweeε thσ files¼á thσ screens¼ ì
  1621. anΣ thσ numeriπ limits« è
  1622.      The CFILE PROGRAM sets up the FFILE. 
  1623.      Thσá FFIL┼á i≤á ß sequentia∞ acces≤ filσ tha⌠á contain≤á thσ ì
  1624. followinτ variables :    
  1625.      F$(n) - File Name of the n'th file
  1626.      NREC(n) - Number of fields in the n'th file
  1627.      L(n) - Length  of the n'th file
  1628.      FLDN$(n,t⌐á - fielΣ namσ of thσ t'tΦ variablσ, of n'th file 
  1629.      FTY(n,t) - field type  of the t'th variable, of n'th file
  1630.               1 = string
  1631.               2 = integer
  1632.               3 = single precision
  1633.               4 = double precision
  1634.               5 ╜ Dolla≥á anΣá cent≤á amount¼á samσá a≤á doublσ 
  1635.                   precision except it is printed with **$
  1636.      FL(n,t) - field length of the t'th variable, of the n'th file
  1637.      KY(n,t) - key list yes/no 
  1638.               1 = not a key     2 = is a key
  1639.      KEYLIST(n,t) - the list the number is a key to
  1640.  
  1641.      Thσá CINPUT prograφá read≤ thσ IPUT─ fo≥á eacΦá file«  ì
  1642. IPUTD▒á i≤á fo≥ thσ firs⌠ file¼á IPUTD▓ i≤ fo≥á thσá seconΣá filσ ì
  1643. IPUTD│ i≤ fo≥ thσ thirΣ filσ etc..
  1644. The IPUTD file contains the following variables.
  1645.  
  1646.      IOPT(n) = Input option for the n'th variable
  1647. Dependinτá t∩á thσá numbe≥á oµ thσ inpu⌠á optioεá thσá filσá als∩ ì
  1648. contains the extra information for the input option.
  1649. - If IOPT(n) = 1 (OPERATOR ENTRY) then the next entry is:
  1650.   PROMPT$(n) - is the prompt for the entry
  1651. - If IOPT(n) = 2 (GET FROM ANOTHER FILE) the next entries are:
  1652.   IFN(n) - input from file number
  1653.   IFLD(n) - input from this field number
  1654.   IRNFLD(n⌐ - inpu⌠ recorΣ numbe≥ equal≤ thi≤ fielΣ iε thσ sourcσ     ì
  1655.       field
  1656. - If IOPT(n) = 3 (ADD PREVIOUS FIELDS) then the next entries are:
  1657.   NOS(n) - Number of Summards = Number of fields to add
  1658.   ADDFLD(n,s) - Add this field - for s = 1 to nos(n)
  1659. - Iµá IOPT(n⌐á ╜á ┤á (SUBTRAC╘ PREVIOU╙á FIELDS⌐á o≥á 1┤á (DIVID┼    
  1660.      PREVIOUS FIELDS)
  1661.   SUBX(n) - Subtract or Divide SUBY(N) BY SUBX(N)
  1662.   SUBY(n) - 
  1663. - If IOPT(n) = 5 (MULTIPLY FIELDS)
  1664.   MULX(n)
  1665.   MULY(n)- Multiply this field by the above field
  1666. - If IOPT(n) = 6 (COMPUTE TAX) then the next entries are "
  1667.   X(1,n) - 1 = tax table constant 2; = tax table variable
  1668.   X(2,n) - tax table number  or field that contains table number
  1669.   X(3,n) - 1 = pay period constant 2; = pay period variable
  1670.   X(4,n) - pay period number or field that contains pay period #
  1671.   X(5,n) - field that is the single married field
  1672.   X(6,n) - field that contains the pay
  1673. - If IOPT(n) = 7 or 10,or 11 or 12 (OPERATIONS WITH CONSTANTS)
  1674.      Then the next entries are :
  1675.   KC(n) - constantè  CFLD(n) - constant field that is operated on 
  1676. - Iµá IOPT(n⌐ ╜ ╕ o≥ ╣ (MAXIMU═ O╥ MINIMUM⌐ theε thσ nex⌠ entrie≤ 
  1677.      are:
  1678.   NOS(n) - number of fields to compare
  1679.   MAXMIN(n,t) - number of one of the fields to compare. for t = 1 
  1680.       to NOS(n)
  1681.  
  1682.    Thσá  CTRANSF┼ prograφ set≤ u≡ thσ TFE╥ file«á  Thσ TFE╥á filσ ì
  1683. contain≤ thσ followinτ variables«  
  1684.    MAXS - the number of transfers presently on the file
  1685.    DTOPT(s) - Direct Transfer Option 
  1686.        1 = yes    2 = no
  1687.    SUMOPT(s) - Transfer Sum Option; 1 = yes  2 = no
  1688.    SUMAFOPT(s) - Transfer Subtotal Option
  1689.    SN$(s) - Transfer Name
  1690.    SFN(s) - Source File number
  1691. Iµá thσá Direc⌠ Transfe≥ Optioε i≤ selecteΣá theεá thσá followinτ ì
  1692. variables are also on the file:
  1693.    RNTNBOPT(S) - Record target-file numbering option
  1694.      0 - record number = source file number
  1695.      ▒á t∩á 5░á - recorΣ numbe≥ equal≤ thσ valuσ oµá thi≤á sourcσ ì
  1696.        field
  1697.    D(S) - Dummy - for future expansion - Presently D = 1
  1698.    TFN(S) - Target file number
  1699.    NREC(TFN) - The number of records in the target file
  1700.    FLDTC(S,N,D) - Field type change, N=target file field number
  1701.      1 - No Change
  1702.      2 to 61 - Change with field from source file
  1703.    FLDTCT(S,N,D) - Field Target Change Type 
  1704.      1 - Add
  1705.      2 - Replace
  1706.      3 - Subtract
  1707. Iµ thσ suφ transfe≥ optioε i≤ chosen¼ theε thσ filσ als∩ contain≤ ì
  1708. thσ followinτ variable.
  1709.    KTSUM(S) - The number of sums you want transfered
  1710.    SUMFN(S,k)-Suφ filσ numbe≥ - Thσ filσ numbe≥ oµ thσ filσá yo⌡ 
  1711.                want the sum K transfered to
  1712.    SUMF(s,k)-Sum this field   - The number of the field you want 
  1713.                to sum. 
  1714.    SUMRN(s,k⌐á - Suφ RecorΣ Number«á  Thσ recorΣ numbe≥ yo⌡á wan⌠ ì
  1715.                the sum transfered to.
  1716.    SUMFLDN(s,k⌐á - Suφ fielΣ number«á  Thσ fielΣ numbe≥ yo⌡á wan⌠ ì
  1717.                the sum transfered to. 
  1718.    k is the k'th sum
  1719. Iµ thσ suφ witΦ subtota∞ transfe≥ optioε i≤ chosen¼ theε thσ filσ ì
  1720. als∩ contain≤ thσ followinτ variables«  
  1721.    KTSUMAF(s) - The number of subtotals you want transfered
  1722.    SAFFN(s,k⌐á - suφá filσ numbe≥ - Thσ filσ numbe≥ yo⌡ wan⌠á thσ 
  1723.                  subtotals transfered to.
  1724.    SAFADD(s,k) - Subtotal this field
  1725.    SAFACCTO(s,k) - Subtotals grouped by the value in this field.
  1726.    SAFFLDN(s,k) - Put the Subtotals in this field
  1727.    MAX(s,k) - Dummy for future expansion
  1728.  
  1729.      Thσá CFOR═ prograφ set≤ u≡ thσ thσ FORMLIS╘ Filσ anΣ ßá filσ ìèfo≥ eacΦ form«  Thσ formlis⌠ filσ only contain≤ thσ name≤ oµ eacΦ ì
  1730. form.
  1731.    FORM$(t) is the name of each form
  1732. Each Form is has its own file with the following data: 
  1733.    LN - number of lines on the form
  1734.    MF - main file
  1735.    SFO - Secondary file option - NOT USED for future expansion
  1736.    EN(t1) - number of entries on line t1
  1737.    CE(t1,t2) - column that the entry starts at
  1738.    TE(t1,t2) - the type of the entry
  1739. IF the TE(t1,t2) = 1 (STRING CONSTANT) the next entry is
  1740.    L$(t1,t2) - the string constant to print
  1741. If the TE(t1,t2) = 2 or 3 then the next entry is
  1742.    EFN(t1,t2) - the field number to get the data from
  1743.  
  1744.      Thσá CLIMIT╙á prograφ set≤ u≡ thσ IDE╪ filσ anΣá thσá MAXMI╬ ì
  1745. files.  The IDEX file contains for each file the following fields
  1746. IDEXA(f) - primary index    -not used unless programmed in
  1747. IDEXB(f) - secondary index  -not used unless programmed in
  1748. IDEXC(f) - terciary index   -not used unless programmed in
  1749. MFLG(f)  - maximum / minimum flag for the file
  1750.                 2 - Yes there are limits
  1751.            1 or 0 - No there are not limits
  1752.  
  1753.      The MAXMIN file contaions the following variables:
  1754. MAXC#(f) or MAXD#(f) - the maximum for the field
  1755. MINC#(f) or MIND#(f) - the minimum for the field
  1756.     Tw∩ name≤ werσ useΣ fo≥ thσ variablσ sincσ thσ MAXDú namσ wa≤ ì
  1757. alread∙ allocateΣ t∩ thσ inpu⌠ optioε iε thσ maiε program.
  1758.  
  1759.      Thσá CSCREE╬ prograφ set≤ u≡ thσ SCTES╘ filσ anΣ thσá SCREE╬ ì
  1760. files«á  Thσ SCTES╘ filσ i≤ reaΣ b∙ thσ compute≥ t∩ checδ anΣ seσ ì
  1761. iµá ß custoφ screeε i≤ available«á  Thσ SCTES╘ filσ ha≤ onl∙á onσ ì
  1762. variable :
  1763. SCRN(F) -    2   - A custom screen is available
  1764.           0 or 1 - Use the standard screen
  1765.  
  1766. Therσá i≤ ß SCREE╬ filσ fo≥ eacΦ filσ witΦ ß custoφá screen«á Thσ ì
  1767. screeεá file≤ havσ ß numbe≥ oε thσ enΣ correspondinτ t∩ thσá filσ ì
  1768. tha⌠á i⌠á i≤á thσá screeε for«á  Thσá Screeεá file≤á contaiεá thσ ì
  1769. followinτ variables:
  1770. SW$(1 to 18) - the 18 screen overlay lines
  1771. for each field :
  1772.   LE(t) - the line it goes on
  1773.   CE(t) - the column the field goes on
  1774. for each field for a key
  1775.   LEK(t) - the line the key goes on
  1776.   CEK(T) - the column the key goes on
  1777. RPT - repeating fields
  1778.       2 - yes
  1779.       0 or 1 - no
  1780. Iµá repeatinτ field≤ arσ specified¼á thσ followinτ variable≤á arσ ì
  1781. als∩ included.
  1782. LSTE - the number of the last non repeating field 
  1783. SUMF(t) - sum option for the repeating fieldsè          2 - sum
  1784.           1 or 0 - do not sum
  1785.  
  1786.      Thσá CREA╠á prograφ set≤ u≡ thσ thσ REALTIM┼á filσá anΣá thσ ì
  1787. REAL1¼á REAL▓ file≤ etc«á Thσ realtimσ filσ contain≤ thσ realtimσ ì
  1788. flag for each file.
  1789. REALFLG(a) - Realtime flag for each file
  1790.                  1 = not realtime
  1791.                  2 = is realtime
  1792. The REAL1 file contains the realtime data for file 1 as :  
  1793. TGTRN - target record number equals the value of this field
  1794. FLD1 - transfer field 
  1795. TFLD1 - to this field
  1796. ADSUB1 - add or subtranct 1= add 2 = subtract
  1797. TFLD2 - also transfer FLD1 to this field
  1798. ADSUB2 - add or subtract
  1799. FLD2 - Transfer this field to
  1800. TFLD3 - To this field
  1801. ADSUB3 - add or subtract
  1802. TFLD4 - Also transfer FLD2 to this field
  1803. ADSUB4 - add or subtract
  1804. TFILE - transfer to this file
  1805.  
  1806.                      THE OPERATIONS PROGRAMS
  1807.  
  1808.      Thσá Operation≤á program≤á arσá thσá mos⌠á comple°á program≤ ì
  1809. included«á  Yo⌡ shoulΣ lis⌠ thσ program≤ ou⌠ oε pape≥ iµ yo⌡ wan⌠ ì
  1810. t∩ understanΣ ho≈ the∙ work«  Thσ majo≥ variable≤ arσ thσ samσ a≤ ì
  1811. thosσ listeΣ above«  Whilσ thσ custoφ prograφ set≤ u≡ thσ PROGRA═ ì
  1812. DAT┴ DISK¼ thσ operation≤ program≤ reaΣ thσ prograφ datß disδ anΣ ì
  1813. theε perform thσ operations«  
  1814.      The other major variables not listed above are :
  1815. A - the main file number that is open
  1816. B - the secondary file that is open
  1817. X$(n) - the n'th field of the first file that is open
  1818. Y$(n) - the n'th field of the second file that is open
  1819. RN - record number ì
  1820. ì
  1821.      Iε casσ yo⌡ haven'⌠ noticeΣ al∞ thσ operatioε program≤á havσ ì
  1822. thσá samσá structure«á  Thi≤ i≤ becausσ iε thσá previou≤á versioε ì
  1823. (2.2⌐á oµ thi≤ datß basσ al∞ thσ operation≤ program≤ werσ par⌠ oµ ì
  1824. onσá program«á  Wσá haΣ t∩ spli⌠ thσ prograφ u≡á becausσá i⌠á wa≤ ì
  1825. gettinτá to∩á largσá fo≥á thσ computer'≤á memory«á  Mos⌠á oµá thσ ì
  1826. subroutines and variables are the same in all of the programs. 
  1827.  
  1828. Thσ operation≤ program≤ contain≤ thσ followinτ majo≥ subroutines:
  1829.  
  1830. 2300-2499 Disk Drive Selection Subroutine
  1831. 2500-2545 Open and fields the First File
  1832. 2550-2579 Open and fields Second file
  1833. 2580-2596 Open and fields Third File    
  1834. 7800-7999 Locate end of random access file
  1835. 10000-10110 Reads FFILE
  1836. 10900-10995 Put the program disk in the default drive warning
  1837. 12000-12195 Prints records on the monitorè12200-12500 Prints records on paper in expanded form
  1838. 12500-12999 Prints records on paper in condensed form
  1839. 13000-13099 Clear Screen 
  1840. 13100-13590 Locate Subroutine
  1841. 14000-14999 Data entry for integers < 100    
  1842. 14100-14999 Data entry for integers
  1843. 14200-14999 Data entry for single precision
  1844. 14300-14999 Data entry for double precision
  1845.             Each Data Entry returns DT# for the number
  1846. 15000-15999 Data entry for Strings with the length set to a 
  1847.             field length.
  1848. 15030-15999 Data entry for Strings with the length set in the 
  1849.             program
  1850.             Each string entry returns A$ for the string
  1851. 16000-16090 Make sure your printer is on warning
  1852.    
  1853.      Onσá probleφá yo⌡á ma∙ havσ i≤ witΦ thσá dimension≤á oµá thσ ì
  1854. arrays«á  Yo⌡á ma∙ neeΣ t∩ redimensioε somσ oµ thσ array≤ iµ you≥ ì
  1855. custoφ program≤ requirσ largσ number≤ oµ variables«á
  1856.  
  1857.                         THE SORT PROGRAM
  1858.  
  1859.      Thσ sor⌠ prograφ i≤ ß quicδ sor⌠ program«á  I⌠  sort≤ oε  u≡ ì
  1860. t∩á threσá field≤ b∙ multiplyinτ thσ valuσ oµ thσ firs⌠ fielΣá b∙ ì
  1861. 100,00░á anΣá theε addinτ tha⌠ t∩ thσá seconΣá value«á  Thσá sor⌠ ì
  1862. prograφá i≤á rathe≥ shor⌠ anΣ eas∙ t∩ understand«á  Thσ tw∩á maiε ì
  1863. variables are :
  1864.   X(t) - the value to sort the data
  1865.   T(t) - the record the value came from
  1866.  
  1867.                         REMARKS PROGRAMS
  1868. Thσá remark≤á iε thσ prograφ shoulΣ hel≡  yo⌡ t∩á understanΣá thσ ì
  1869. program«á  Thσá remark≤ program≤ shoulΣ als∩ hel≡ yo⌡á understanΣ ì
  1870. thσ system«á  Thσ remark≤ progam≤ wil∞ no⌠ run¼ the∙ arσ provideΣ ì
  1871. a≤á extrß documentation«á  LoaΣ eacΦ remarδ prograφ theε LLIS╘ i⌠ ì
  1872. ou⌠ oε paper«   
  1873.  
  1874.              ERROR RECOVERY & COMPILING THE PROGRAM
  1875.  
  1876.      Yo⌡á caεá compilσ al∞ thσ program≤ excep⌠ thσá sor⌠á prograφ ì
  1877. directl∙ froφ thσ basiπ version«á  Thσ sor⌠ prograφá redimension≤ ì
  1878. anΣá redefine≤á thσ variable≤ t∩ handlσ botΦ string≤á anΣá numbe≥ ì
  1879. (whicΦá i≤ no⌠ alloweΣ b∙ thσ compiler)«á  Thσ compileΣá version≤ ì
  1880. als∩á havσ bette≥ erro≥ trappinτ programmeΣ in«á Wσ havσ no⌠á pu⌠ ì
  1881. mucΦá erro≥á trappinτá iεá thσ Basiπ versioεá becausσá thσá basiπ ì
  1882. interperte≥ itselµ ha≤ ß bette≥ erro≥ reportinτ anΣ trappinτ theε ì
  1883. i⌠á i≤ possiblσ t∩ prograφ in«á  Thσ basiπ interperte≥ tell≤á yo⌡ ì
  1884. wha⌠ linσ numbe≥ thσ erro≥ i≤ oε anΣ thσ typσ oµ error«á  Iµá thσ ì
  1885. erro≥á i≤á simplσ anΣ caε bσ correcteΣ theε yo⌡ caε typσ CON╘á t∩ ì
  1886. continuσ witΦ thσ program«  Iµ yo⌡ compilσ thσ basiπ versioε theε ì
  1887. you≥ prograφ wil∞ havσ n∩ wa∙ t∩ recove≥ eveε froφ ß simplσ erro≥ ì
  1888. sucΦ a≤ puttinτ iε thσ wronτ disδ unles≤ yo⌡ writσ you≥ owε erro≥ ì
  1889. trappinτá codσ in«á  Thσ extrß documentatioε oε disδá ▓á contain≤ ì
  1890. morσá informatioε oε ho≈ t∩ compilσ thσ program«á  Yo⌡ caε obtaiε ì
  1891. thσ compileΣ versioε froφ u≤ fo≥ $2╡ (i⌠ take≤ ╡ DSD─ disks).è
  1892. ****************  POTOMAC PACIFIC ENGINEERING INC.  *************
  1893.  
  1894.          WE OFFER THE FOLLOWING SERVICES AND PRODUCTS :
  1895.                                        
  1896.                              SUPPORT 
  1897.      
  1898.      Duσ t∩ thσ fac⌠ tha⌠ thi≤ prograφ i≤ distributeΣ fo≥ freσ wσ ì
  1899. canno⌠ offe≥ freσ suppor⌠ fo≥ thi≤ program«   Iµ severa∞ thousanΣ ì
  1900. peoplσ usσ thi≤ prograφ anΣ the∙ al∞ wanteΣ freσ suppor⌠ wσ woulΣ ì
  1901. g∩ bankrupt«  Iµ yo⌡ wan⌠ suppor⌠ froφ u≤ yo⌡ havσ t∩ pa∙ fo≥ it« 
  1902. Wσá chargσá $3░ pe≥ hou≥ suppor⌠ witΦ ß minimuφ oµ $1╡ pe≥á phonσ ì
  1903. call«á  Iµ havinτ you≥ questioε answereΣ i≤ no⌠ wortΦ $1╡ t∩á yo⌡ ì
  1904. theε i⌠ i≤ no⌠ wortΦ ou≥ timσ t∩ talδ t∩ you«á  Yo⌡ ge⌠ u≡ t∩ onσ ì
  1905. halµá hou≥á fo≥á $1╡ s∩ yo⌡ migh⌠ wan⌠ t∩ ge⌠á severa∞á question≤ ì
  1906. together before you call.  
  1907.  
  1908.                        CUSTOM PROGRAMMING
  1909.    
  1910.      Wσáá caεá se⌠á u≡á anΣá modif∙á thσá datßá basσáá fo≥áá you≥ ì
  1911. applications«á  Sincσ wσ wrotσ thi≤ datß basσ wσ caε probabl∙ se⌠ ì
  1912. i⌠á u≡ anΣ modif∙ i⌠ iε ß fractioε oµ thσ timσ i⌠ woulΣ takσá yo⌡ ì
  1913. o≥á anothe≥á consultant«á  Cal∞ u≤ fo≥ aε freσ estimatσá oεá you≥ ì
  1914. custoφ programminτ requirements.
  1915.  
  1916.                        BASIC BASE PROGRAMS
  1917.  
  1918. Compiled Versions - $25.00 (on 5 DSDD disks)
  1919.      Runs faster then basic version 
  1920.      Caε addres≤ 64╦ oµ memory«á Note : You havσ thσ MAIN¼á FORM¼ ì
  1921. SCAN¼ SPREADSHEE╘ anΣ EXPER╘ program≤ alread∙ compileΣ oε disk≤ │ ì
  1922. and disk 4. 
  1923.  Program Updates - $20.00 
  1924.    UpdateΣ CorrecteΣ version≤ arσ releaseΣ approximatel∙ monthly.
  1925.  
  1926.      Al∞á oµá thσ abovσ program≤ havσ thσ samσá licensσá  a≤á thσ ì
  1927. basiπ version«á  I⌠ i≤ no⌠ recomendeΣ tha⌠ club≤ anΣ user≤ group≤ ì
  1928. distributσá thσ compileΣ versioε o≥ thσ sourcσ codσ fo≥ compilinτ ì
  1929. unles≤á the∙á arσá goinτ t∩ senΣ ever∙ montΦá fo≥á thσá correcteΣ ì
  1930. versions«áá  Givinτá you≥á user≤á aεá outdateΣá versioεá i≤áá no⌠ ì
  1931. recomended«á  Sincσ wσ writσ anΣ develo≡ thσ prograφ wσ obviousl∙ ì
  1932. havσ thσ mos⌠ u≡ t∩ datσ correcteΣ version«  I⌠ i≤ suggesteΣ tha⌠ ì
  1933. yo⌡ ge⌠ you≥ update≤ froφ u≤ rathe≥ theε froφ ß user≤ grou≡ whosσ ì
  1934. update≤ ma∙ no⌠ bσ current« 
  1935.      
  1936.      Thσá abovσ program≤ arσ licenseΣ free«á  Yo⌡ arσ payinτá fo≥ ì
  1937. thσ disks¼á copying¼á firs⌠ clas≤ mail¼ anΣ handling«  Pleasσ usσ ì
  1938. the order form when ordering programs.
  1939.  
  1940.  
  1941.                 POTOMAC PACIFIC ENGINEERING INC.
  1942.               P.O. Box 2027 Gaithersburg, Md 20879
  1943.                          (301) 977-1489
  1944.  
  1945. è                              
  1946.                          FEEDBACK WANTED
  1947.  
  1948.      Pleasσá senΣá u≤á an∙ feedbacδ tha⌠ wil∞á hel≡á improvσá thσ ì
  1949. future versions of this program.  We are looking for :
  1950. 1«áá Informatioεáá oεá whethe≥á thσá prograφá run≤á oεá differen⌠ ì
  1951. compatiblσá computer≤á anΣá wha⌠á change≤á iεá thσá prograφá werσ ì
  1952. necessary
  1953. 2.  Information on any errors in the program
  1954. 3.  Any improvements suggestions for the program.
  1955. 4.  Any application developed using the program
  1956. 5.  Any improvements or additions to the manual
  1957.  
  1958.                       NOTES ON VERSION 3
  1959.  
  1960.      Thi≤á i≤á thσ thirΣ versioε oµ thσá datßá base«á  Thσá firs⌠ ì
  1961. versioεá wa≤á onl∙á onσ prograφ anΣ al∞ thσ variable≤ haΣá t∩á bσ ì
  1962. defineΣá iεá thσ prograφ ie«á FTY(1,1⌐ ╜ 1«á Thσá seconΣá versioε  ì
  1963. consisteΣ oµ threσ programs«á  Thσ seconΣ versioε wa≤ t∩ largσ t∩ ì
  1964. ruεá oεá IB═á basic«á  Thi≤ i≤ thσ seconΣ editioεá oµá thσá thirΣ ì
  1965. version«á  Thσ nex⌠ editioε 3.▓ wil∞ bσ thσ correcteΣ versioεá oµ ì
  1966. 3.▒ «  Additiona∞ correcteΣ version≤ wil∞ bσ releaseΣ abou⌠ ever∙ ì
  1967. othe≥á month«á Sincσ thi≤ i≤  thσ seconΣ editioε oµ versioε │á i⌠ ì
  1968. wil∞á (likσ al∞ programs⌐ havσ somσ bug≤ iε it«á  Pleasσ senΣá u≤ ì
  1969. an∙á error≤ encountereΣ  anΣ thσ correction≤ tha⌠ yo⌡ ruε int∩ oε ì
  1970. thσ followinτ form«á  A⌠ leas⌠ wσ arσ debugginτ thσ program«  Ho≈ ì
  1971. man∙ time≤ ha≤ you≥ expensivσ worΣ processo≥ los⌠ you≥á document≤ ì
  1972. anΣ what arσ the∙ doinτ abou⌠ it.
  1973.  
  1974.      Therσá i≤á n∩ inde° iε thi≤ datß basσ becausσ 9╣á Ñá oµá thσ ì
  1975. user≤ d∩ no⌠ neeΣ aε indexeΣ datß base«á  Iµ yo⌡ arσ ß hacke≥ yo⌡ ì
  1976. wil∞ noticσ tha⌠ therσ wa≤ aε inde° whicΦ ╔ tooδ out«  Thσ amoun⌠ ì
  1977. oµá timσ saveΣ b∙ usinτ aε inde° (iµ any⌐ wa≤ vastl∙ exceedeΣá b∙ ì
  1978. thσ timσ i⌠ tooδ t∩ maintaiε thσ index«á  I⌠ sound≤ impressivσ t∩ ì
  1979. havσ ß filσ indexeΣ oε ╡ o≥ morσ fields«  I⌠ i≤ no⌠ s∩ impressivσ ì
  1980. waitinτ fo≥ thσ compute≥ t∩ maintaiε thσ indexes«á Yo⌡ caε obtaiε ì
  1981. thσá samσ resul⌠ b∙ scaninτ thσ entirσ file«á  I⌠ take≤ abou⌠ onσ ì
  1982. minutσ t∩ scaε aε entirσ flopp∙ disk«  Iµ onσ minutσ i≤ to∩ long¼ ì
  1983. yo⌡á caεá usσá ß RA═ disk«á  Yo⌡ caε usuall∙á finΣá ßá recorΣá b∙ ì
  1984. scanninτá ß RA═ disδ iε onσ t∩ threσ second≤ whicΦ i≤ faste≥ theε ì
  1985. thσ timσ t∩ searcΦ aε indexeΣ flopp∙ disδ file«á Therσ arσá threσ ì
  1986. RA═á disk≤ program≤ tha⌠ arσ iε thσ publiπ domaiε (free⌐ anΣá yo⌡ ì
  1987. usuall∙ ge⌠ onσ witΦ ß memor∙ expansioε board«  Yo⌡ caε als∩ sor⌠ ì
  1988. ßá filσ anΣ theε usσ thσ "searcΦ ß sorteΣ filσ programó t∩ obtaiε ì
  1989. fas⌠ results«á  Iµ yo⌡ arσ usinτ ß harΣ disδ witΦ file≤ to∩ largσ ì
  1990. fo≥ ß RA═ disk¼á anΣ neeΣ instan⌠ datß retrieva∞ oε morσ theε onσ ì
  1991. fielΣá theε yo⌡ ma∙ wan⌠ t∩ usσ ß differen⌠ datßá base«á  Versioε ì
  1992. 4.░ migh⌠ havσ aε optiona∞ index« 
  1993.      
  1994.                    SINGLE DISK DRIVE COMPUTERS
  1995.  
  1996.      Iµá yo⌡á arσá usinτ thesσ program≤ oε ßá singlσá disδá drivσ ì
  1997. computer¼á al∞ thσ program≤ wil∞ ruε excep⌠ thσ sor⌠ prograφá anΣ ì
  1998. thσá changσá prograφ (wheε usinτ thσ "creatσ ß subfileóá option)«  ì
  1999. Thi≤á i≤á becausσ thσ sor⌠ prograφ anΣ changσá prograφá reaΣá thσ ìèsourcσá filσá oε onσ disδ drivσ anΣ creatσ anothe≥ filσ witΦá thσ ì
  2000. SAM┼á namσ oε ß differen⌠ disδ drive«á  Yo⌡ caε ruε thσ sor⌠á anΣ ì
  2001. changσá program≤ b∙ changinτ thσ targe⌠ filσ namσ t∩ "TEMPóá (fo≥ ì
  2002. temporary⌐ o≥ othe≥ namσ differen⌠ froφ thσ filσ name«á  Thi≤á i≤ ì
  2003. oεá linσ 255╡ iε thσ changσ prograφ (255╡ OPE╬ "R",#2,"TEMP",L(A⌐ ì
  2004. ⌐ anΣ linσ 922░ iε thσ sor⌠ prograφ (922░ OPE╬ "R"¼á #2¼ "TEMP",╠ ì
  2005. )«á  Afte≥á runninτá thσ sor⌠ o≥ changσ prograφ (wheεá usinτá thσ ì
  2006. creatσ ß subfilσ option⌐ thσ ne≈ filσ wil∞ bσ "TEMP"«á  Theε cop∙ ì
  2007. thσ "TEMPó filσ t∩ ß differen⌠ flopp∙ disδ anΣ RENAM┼ i⌠ bacδá t∩ ì
  2008. thσ filσ namσ i⌠ wa≤ createΣ from.
  2009.  
  2010.  
  2011.  
  2012.                   THIS PROGRAM IS LICENSED FREE
  2013.  
  2014.                       GIVE A FRIEND A COPY 
  2015.  
  2016.                 GIVE A COPY TO YOUR COMPUTER CLUB 
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023. .paè****************************************************************
  2024.  
  2025.                  Version 3.1  Error Report Form
  2026.  
  2027. Your Name:____________________________________________________
  2028. Address  :____________________________________________________
  2029.           ____________________________________________________
  2030. Computer: ____________________________________________________
  2031. Version of Basic : ___________________________________________
  2032. Memory of your Computer : ____________________________________
  2033.  
  2034. Error Description : __________________________________________
  2035.                     __________________________________________
  2036.                     __________________________________________
  2037.                     __________________________________________
  2038. Did the error : 1. Halt the program and print an error message
  2039.              or 2. Cause incorrect results?
  2040. List the incorrect results if any : __________________________
  2041.                        _______________________________________
  2042. Error Message if Any : _______________________________________
  2043. Which Program Was the Error in ? _____________________________
  2044. What Line Number Was the Error on ? __________________________
  2045. Were you able to correct the Error ? Yes ___      No ___  
  2046. How did you correct the Error ? 
  2047.   - Send a listing of the changes you made if possible
  2048.   _____________________________________________________________
  2049.   _____________________________________________________________
  2050.   _____________________________________________________________
  2051.   _____________________________________________________________
  2052.   _____________________________________________________________
  2053.   _____________________________________________________________
  2054. Any other comments : __________________________________________
  2055.   _____________________________________________________________
  2056.   _____________________________________________________________
  2057.   _____________________________________________________________
  2058. Doe≤á thσá erro≥ alway≤ occu≥ o≥ doe≤ thσ erro≥ onl∙ occu≥á unde≥ ì
  2059. certain conditions?  __________________________________________
  2060.   _____________________________________________________________
  2061.   _____________________________________________________________
  2062.  
  2063. Mail to :  Attn : Error 
  2064.                 Potomac Pacific Engineering Inc.
  2065.                       Post Office Box 2027
  2066.                      Gaithersburg, MD 20879
  2067.  
  2068.      Wσá givσ freσ update≤ t∩ everyonσ submittinτ aε erro≥ repor⌠ ì
  2069. form«á  Pleasσá senΣ u≤ informatioε oε an∙ error≤ yo⌡á encounter«   ì
  2070. Pleasσá reaΣá thσ manual¼á especiall∙ thσ sectioεá oεá thσá basiπ ì
  2071. languagσ beforσ submittinτ aε erro≥ repor⌠ form« Thσ bug≤ iε thi≤ ì
  2072. prograφ d∩ no⌠ occu≥ ver∙ often«  Iµ yo⌡ ruε int∩ aε erro≥ durinτ ì
  2073. thσá firs⌠ fe≈ hour≤ yo⌡ arσ usinτ thσ softwarσ yo⌡ arσá probabl∙  ì
  2074. doinτ somethinτ wrong«  
  2075.  
  2076.  
  2077. è
  2078. ****************************************************************
  2079.  
  2080.  
  2081.                         UPDATE ORDER FORM
  2082.  
  2083. Your Name : ___________________________________________________
  2084. Street    : ___________________________________________________
  2085. City/State: ___________________________________________________
  2086. Zip Code  : _______________
  2087.  
  2088. Computer  : ___________________________________________________
  2089. Version of Basic : ____________________________________________
  2090.  
  2091. Do you want the updated Basic Version? Yes ____  No  ____
  2092.    What version do you have ? _______   
  2093.    $20.00 on 4 DSDD disks 
  2094.    $30.00 on 8 SSDD disks 
  2095. Do you want the Compiled Version ?     Yes ____  No  ____
  2096.    What version do you have ? _______
  2097.    $25.00 on 5 DSDD disks
  2098.    Not available on single sided disks 
  2099.  
  2100. Oversea orders add $3. Maryland Residents add 5% sales tax.
  2101. Firs⌠á Clas≤ Mail i≤ included«á  Wσ ship your order iεá les≤ ì
  2102. than 7 days.  Allow 2 to 3 weeks for postal delivery.
  2103.  
  2104. Mail to Potomac Pacific Engineering Inc.
  2105.         Post Office Box 2027
  2106.         Gaithersburg, MD 20879
  2107. ******************************************************************
  2108.  
  2109. END OF VERSION 3.1 DATABASE MANUAL 11/07/84 last update
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.     è                    The Spreadsheet of Steel 
  2132.  
  2133.                            Version 1.0
  2134.  
  2135. REA─á AN─á AGRE┼á T╧á TH┼ LICENS┼ CONDITION╙á AN─á DISCLAIME╥á O╞ ì
  2136. WARRANTIES PRIOR TO USING THIS PROGRAM. 
  2137.  
  2138.      Thσá fastes⌠á wa∙ t∩ learε ho≈ t∩ usσ thσ spreadshee⌠ i≤á t∩ ì
  2139. tr∙á i⌠á out«á  Yo⌡ canno⌠ damagσ you≥ compute≥ b∙á runninτá thi≤ ì
  2140. prograφá o≥ an∙ othe≥ softwarσ program«á  Makσ ß backu≡á cop∙á oµ ì
  2141. thi≤ disδ beforσ yo⌡ star⌠ tryinτ i⌠ out« 
  2142.  
  2143.                       Starting the Program
  2144.  
  2145.      Wσ havσ provideΣ yo⌡ witΦ botΦ thσ compileΣ anΣ sourcσá codσ ì
  2146. (interpretativσá version⌐á oµá thσá spreadsheet«áá  Thσá compileΣ ì
  2147. versioεá i≤á SS.EX┼ «á Thσ sourcσ codσ versioε i≤ SS.BA╙á «á  Thσ ì
  2148. compiled version requires 192K on all computers to run.
  2149.      Start the compiled version using the following steps:
  2150. 1. Turn on your computer using MS-DOS or PC-DOS.
  2151. 2. Put the spreadsheet disk in the default disk drive.
  2152. 3. Type SS then press return.
  2153.      Start the basic version using the following steps:
  2154. 1. Turn on your computer using MS-DOS or PC-DOS.
  2155. 2. Load your basic language.
  2156. 3. Put the spreadsheet disk in the default disk drive.
  2157. 4. LOAD "SS"
  2158. 5. RUN
  2159.      Iµá yo⌡á havσá problem≤á usinτ thσ basiπá versioεá reaΣá thσ ì
  2160. sectioεá iεá thσ databasσ manua∞ oε thσ difference≤á betweeεá thσ ì
  2161. basiπá languages«á  Iµ yo⌡ arσ usinτ IB═ Basiπ yo⌡ wil∞á havσá t∩ ì
  2162. turεá thσá Ke∙ oε ro≈ 2╡ ofµ usinτ thσ KE┘ OF╞ commanΣá  Yo⌡á caε ì
  2163. writσá thσ commanΣ int∩ thσ prograφ (8░ KE┘ OFF)«á  Thi≤ ha≤á no⌠ ì
  2164. beeεá donσá s∩á fo≥á compatibilit∙ reasons«á  Iµá yo⌡á arσá usinτ ì
  2165. Microsof⌠ Basiπ (no⌠ IB═ basic⌐ changσ linσ 7░ t∩ 7░ C╚ ╜ 8«  
  2166.  
  2167.      Wheεá firs⌠á startinτ thσ prograφ thσ firs⌠ thinτá displayeΣ ì
  2168. is:
  2169.  
  2170.                    S P R E A D S H E E T  1.0
  2171.  
  2172.        Copyright 1984 by Potomac Pacific Engineering Inc.
  2173.  
  2174. This program is licensed FREE to all users with some restrictions
  2175.       See the manual for more information on the license.
  2176.  
  2177. The files on your default disk drive are :
  2178.  
  2179. SS      .BAS    CHECK   .      TAX    .     SS      .EXE 
  2180.  
  2181. If you want to continue with an old spreadsheet enter the name
  2182. If you want to start a new spreadsheet then just press return.
  2183. >_______<
  2184. (end of the first displayed screen)
  2185.      Thσ file≤ Checδ anΣ Ta° arσ samplσ spreadsheets«  Jus⌠ pres≤ ìèreturεá t∩á star⌠á ß ne≈ spreadsheet«á  Thσá compute≥á wil∞á theε ì
  2186. displa∙ thσ followinτ screen║  
  2187.  
  2188. *
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208. ***  ENTER THE OPTION NUMBER THEN PRESS RETURN ***   ON SCREEN 1
  2209. 0-EXIT  1-INPUT NUMBER 2-INPUT OVERLAY 3-NEW NUMBER 4-CALCULATION
  2210. 5-CLEAR   6-SAVE  7-BARCHART  8-PRINT SCREEN  9-PRINT DESCRIPTION
  2211. >__<
  2212. MOV┼ TH┼ ¬ USING A,Q,S,D,F,G,E,R,X,├áCHANG┼áSCREEN╙áUSIN╟ I,J,K,M
  2213. (end of screen)
  2214.    
  2215.     Thσá ¬ i≤ useΣ a≤ ß curso≥ t∩ marδ you≥ curren⌠á positioεá oε ì
  2216. thσá screen«á  Yo⌡ caε movσ thσ ¬ arounΣ b∙ enterinτ thσá letter≤ ì
  2217. A,Q,S,D,F,G,E,R,╪ anΣ C«  You≥ keyboarΣ i≤ probabl∙ se⌠ u≡ like
  2218.  
  2219.        Q   E R
  2220.         A S D F G
  2221.            X C        
  2222.  
  2223. The corresponding * movements are
  2224.    Q left 20             E up 1     R up 4
  2225.      ┴ lef⌠ ╡   ╙ lef⌠ ▒    ─ righ⌠ ▒    ╞ righ⌠ ╡  ╟árigh⌠ 20
  2226.                          X down 1   C down 4
  2227.  
  2228. Try moving the * around using the above letters.
  2229.  
  2230.      Yo⌡á caεá changσ screen≤ usinτ thσá letter≤á I,J,K,M«á  You≥ ì
  2231. keyboard is probably set up like :
  2232.        
  2233.            I                    I up one screen
  2234.          J   K        J left one screen   K right one screen
  2235.            M                    M down one screen
  2236.  
  2237.      Thσá screeε arσ 2░ line≤ dee≡ each«á  Thσ spreadshee⌠ i≤ se⌠ ì
  2238. u≡ witΦ 2░ screens«  Thσ screen≤ makσ u≡ onσ biτ spreadshee⌠ tha⌠ ì
  2239. i≤á fou≥á screen≤ acros≤ anΣ ╡ screen≤ deep«á  Iµ yo⌡á neeΣá morσ ìèscreen≤á anΣá yo⌡á kno≈ ho≈ t∩ prograφ iε Basiπá yo⌡á caεá easil∙ ì
  2240. changσá thσ sourcσ codσ t∩ allo≈ morσ screens«á  Thσ screen≤á arσ ì
  2241. se⌠ u≡ iε followinτ orde≥ :
  2242.    1   2   3   4
  2243.    5   6   7   8
  2244.    9   10  11  12
  2245.    13  14  15  16 
  2246.    17  18  19  20
  2247.  
  2248.     
  2249.     Afte≥á movinτ thσ ¬ t∩ thσ correc⌠ spo⌠ yo⌡ caε choosσ onσ oµ ì
  2250. the  following options.
  2251.  
  2252.                        0. EXIT THE PROGRAM
  2253.  
  2254.      Usσá thi≤á optioεá wheε yo⌡ arσ donσ anΣ wan⌠á t∩á exi⌠á thσ ì
  2255. program«áá  Yo⌡á wil∞á losσá you≥á spreadshee⌠á unles≤á yo⌡á havσ ì
  2256. previousl∙á saveΣ thσ spreadshee⌠ usinτ optioε 6«á  Thσá compute≥ ì
  2257. wil∞á warε yo⌡ tha⌠ yo⌡ wil∞ losσ you≥ spreadshee⌠ anΣá givσá yo⌡ ì
  2258. the option to save it prior to exitting the program.
  2259.  
  2260.                         1. INPUT A NUMBER
  2261.   
  2262.      Thi≤á optioε i≤ useΣ t∩ ente≥ ß numbe≥ iε you≥á spreadsheet«  ì
  2263. Therσ ha≤ t∩ bσ ß numbe≥ iε thσ spo⌠ wherσ thσ ¬ is«á  Usσ optioε ì
  2264. numbe≥ │ iµ yo⌡ wan⌠ t∩ creatσ ß numbe≥ iε thσ spot«á  Thσ numbe≥ ì
  2265. ▒ i≤ thσ defaul⌠ optioε iµ yo⌡ jus⌠ pres≤ return«á  Sincσ thi≤ i≤ ì
  2266. thσá mos⌠ useΣ optioε yo⌡ caε ente≥ you≥ datß faste≥ iµ yo⌡á jus⌠ ì
  2267. pres≤ returε insteaΣ oµ enterinτ thσ numbe≥ 1«á  Thσ ¬ shoulΣá bσ ì
  2268. placeΣ a⌠ thσ star⌠ oµ thσ numbe≥ no⌠ a⌠ thσ end«á  Thσ ¬ mus⌠ bσ ì
  2269. withiεá ╡ space≤ lef⌠ o≥ righ⌠ oµ thσ star⌠ oµ thσ numbe≥ fo≥ thσ ì
  2270. compute≥á t∩á finΣ thσ correc⌠ number«á  Thσá followinτá example≤ ì
  2271. demonstratσ thσ placemen⌠ oµ thσ ¬ :
  2272.       *_______0    right on
  2273.   *    _______0    Ok up to 5 spaces left
  2274.        _____*_0    Ok up to 5 spaces right
  2275. *      _______0    too far left
  2276.        ______*0    too far right
  2277.  
  2278.                       2. INPUT OVERLAY LINE 
  2279.  
  2280.     Thi≤á optioεá i≤á useΣá t∩ placσ word≤ o≥á letter≤á o≥á fixeΣ ì
  2281. number≤á no⌠ useΣ iε calculation≤ oε thσ screen«á  Movσ thσ ¬á t∩ ì
  2282. thσá correc⌠á spo⌠á oε thσ screeε wherσ yo⌡á wan⌠á t∩á placσá thσ ì
  2283. overla∙á line«á  Ente≥ optioε ▓ theε pres≤ return«á  Thσ compute≥ ì
  2284. will prompt you with :
  2285.  
  2286. ENTER THE STRING 
  2287. >____________________________________________________________<
  2288.  
  2289.     Typσ iε thσ word≤ yo⌡ wan⌠ displayeΣ theε pres≤ return«á  Thσ ì
  2290. computer will place what you typed to the right of the *.
  2291.  
  2292.                       3. ENTER A NEW NUMBER
  2293. è     Thi≤ optioε i≤ useΣ t∩ creatσ ß spo⌠ fo≥ ß number«  Movσ thσ ì
  2294. ¬ t∩ thσ spo⌠ wherσ yo⌡ wan⌠ t∩ ente≥ ß number¼á ente≥ thσ numbe≥ ì
  2295. │áand pres≤á return«á The computer will then ask :
  2296.  HOW DO YOU WANT THE NUMBER DISPLAYED 
  2297.  1-Standard Form   2-Dollar and Cents amount  3- None
  2298. Usσ ▒ fo≥ number≤ othe≥ theε dolla≥ amounts« Usσ ▓ fo≥ money« Usσ ì
  2299. │á iµ yo⌡ d∩ no⌠ wan⌠ ß numbe≥ here«á Thσ compute≥á wil∞á displa∙  ì
  2300. *________░ o≥ $________░ wherσ thσ ¬ was«á  Thσ initia∞ valuσá oµ ì
  2301. thσ numbe≥ i≤ 0«  AvoiΣ puttinτ number≤ to∩ closσ togethe≥ oε thσ ì
  2302. samσ line« 
  2303.  
  2304.                       4. DEFINE CALCULATION
  2305.  
  2306.      Thi≤á optioε i≤ useΣ t∩ definσ ß calculatioε betweeε ▓ o≥á │ ì
  2307. numbers«á  Movσá thσ ¬ t∩ thσ numbe≥ fo≥ whicΦ yo⌡ wan⌠ t∩ definσ ì
  2308. thσ calculation«á  Ente≥ ┤ fo≥ thi≤ optioε anΣ theε pres≤ return«  ì
  2309. Thσá compute≥á wil∞á theεá sho≈á yo⌡á thσá followinτá calculatioε ì
  2310. options.
  2311.  
  2312. 1. ADD - adds source number to target number
  2313.          The computer will ask you if you want to add any other 
  2314.          numbers to the target field and allow you to do so at
  2315.          the same time.  
  2316. 2. SUB - subtracts source number from target number
  2317.          Note║á Thi≤á subtractioε i≤ se⌠ u≡ slightl∙á differentl∙ ì
  2318. than you normally subtract.  For example : 
  2319.  
  2320.      Gross income $3,000     Add this number to take home pay
  2321.     -Tax            $340     Subtract this number from take home 
  2322.      --------------------
  2323.    Take Home Pay  $2,660 
  2324.  
  2325. Thσá subtractioεá wa≤á se⌠á u≡ thi≤ wa∙ becausσá therσá arσá man∙ ì
  2326. application≤á wherσá yo⌡á ma∙ wan⌠ t∩ AdΣá anΣá subtrac⌠á severa∞ ì
  2327. number≤ froφ onσ targe⌠ number«  Fo≥ Examplσ :
  2328.  
  2329.     Gross income $3,000     Add this number to take home pay
  2330.    -State Tax      $200     Subtract this number from take home
  2331.    -Federal Tax    $500     Subtract this number from take home
  2332.     -------------------
  2333.   Take home pay  $2,300    
  2334.  
  2335. 3. MULT - multiply  source number by secondary number to give 
  2336.             target number
  2337. 4. DIVIDE BY - divide source number by secondary number to give 
  2338.             target number
  2339. 5. DIVIDE INTO - divide secondary number by source number to give
  2340.             target number
  2341. 6. MAX - maximum, if source number is greater then target number
  2342.             then the target number equals the source number
  2343. 7«á MI╬ - minimum¼ iµ thσ sourcσ numbe≥ i≤ les≤ theε target numbe≥ ì
  2344.             then the target number equals the source number
  2345. 8. ADD K - add a constant to the source number to give the target 
  2346.             number
  2347. 9«á MUL╘ ╦ - multipl∙ thσ sourcσ numbe≥ b∙ ß constan⌠ t∩ givσ thσ ìè            target number
  2348. 10. N - K - subtract a constant from the source number to give
  2349.             target number
  2350. 11. K-N  - subtract the source number from a constant to give the 
  2351.             target number
  2352. 12«á N/╦á - dividσá thσ sourcσ numbe≥ b∙ ß constan⌠ t∩á givσá thσ     
  2353.             target number
  2354. 13. K/N - divide a constant by the source number to give the 
  2355.             target number
  2356. 14. - 20 - These calculation options are reserved for your custom 
  2357.             inpu⌠á options«á  Usσá thesσ option≤ iµ yo⌡á wan⌠á t∩ ì
  2358.             write your own subroutines for more complex           
  2359.             calculations.  Read the section on how the program 
  2360.             works if you want to use these subroutines.
  2361.     SE┼á YOU╥ BASI├ MANUA╠ FO╥ MOR┼ INFORMATIO╬ O╬ TH┼á FOLLOWIN╟ ì
  2362. CALCULATIONS : 
  2363. 21. ABS - target field equals the absolute value of source field
  2364. 22. ATN - target field equals the arctanget of source field
  2365. 23. COS - target field equals the cosine of source field
  2366. 24. EXP - target field equals the exponent of the source field
  2367. 25. LOG - target field equals the logarithm of the source field
  2368. 26. SIN - target field equals the sine of the source field
  2369. 27. SQR - target field equals the square root of the source field
  2370. 28. SQ  - target field equals the square of the source field
  2371. 29. TAN - target field equals the tangent of the source field
  2372. 30« DELET┼ - thi≤ optioε i≤ t∩ deletσ ß numbe≥ tha⌠ yo⌡ n∩ longe≥ ì
  2373. wan⌠ oε you≥ spreadsheet«á  Thi≤ i≤ no⌠ thσ samσ thinτ a≤á clear«  ì
  2374. Iµ yo⌡ deletσ ß numbe≥ i⌠ disappear≤ froφ thσ spreadshee⌠ anΣ caε ì
  2375. not be reentered.
  2376.     Afte≥á yo⌡á ente≥á whicΦ typσ oµá calculatioεá yo⌡á wan⌠á thσ ì
  2377. compute≥á wil∞ asδ yo⌡ t∩ movσ thσ ¬ t∩ thσ targe⌠ field«á  Afte≥ ì
  2378. yo⌡á havσ moveΣ thσ ¬ t∩ thσ targe⌠ fielΣ pres≤ return«á  Iµá yo⌡ ì
  2379. havσ specifieΣ ß calculatioε witΦ ß secondar∙ calculatioεá field¼ ì
  2380. thσá compute≥á wil∞ theε asδ yo⌡ t∩ movσ thσ ¬ t∩á thσá secondar∙ ì
  2381. calculatioεá numbe≥á anΣ pres≤ return«á  Iµ yo⌡ havσ specifieΣá ß ì
  2382. calculatioεá typσ witΦ ß constant¼á thσ compute≥ wil∞ asδ yo⌡á t∩ ì
  2383. ente≥ thσ constant«  
  2384.     Iµá yo⌡á havσá entereΣ thσ wronτ typσ oµá calculatioεá fo≥á ß ì
  2385. number¼á yo⌡á caεá ente≥á thσá correc⌠á typσá oµá calculatioεá b∙  ì
  2386. reenterinτá ß calculatioε fo≥ ß number«á Thσ maximuφ anΣá minimuφ ì
  2387. function≤ comparσ thσ sourcσ numbe≥ witΦ thσ targe⌠ number«á The∙ ì
  2388. d∩ no⌠ comparσ ß lis⌠ oµ numbers«  Thi≤ work≤ finσ a≤ lonτ a≤ yo⌡ ì
  2389. d∩á no⌠ reducσ t∩ maximuφ numbe≥ o≥ increasσ thσ minimuφá number«  ì
  2390. Iµá yo⌡á d∩á reducσ thσ maximuφ numbe≥ o≥á increasσá thσá minimuφ ì
  2391. number¼áá yo⌡áá mus⌠á als∩á correc⌠á thσá targe⌠áá number«áá  Thσ ì
  2392. calculation≤ occu≥ a≤ thσ sourcσ number≤ arσ entereΣ b∙ you«á  Iµ ì
  2393. yo⌡ havσ entereΣ ß numbe≥ prio≥ t∩ defininτ ß calculatioε fo≥ thσ ì
  2394. number¼ thσ calculation≤ arσ NO╘ automaticall∙ performed«  Iµ yo⌡ ì
  2395. havσá entereΣá number≤á anΣá theεá specif∙á aεá AD─á o≥á SUBTRAC╘ ì
  2396. calculatioεá  thσá compute≥á wil∞ no⌠ givσá thσá correc⌠á result≤ ì
  2397. unles≤á yo⌡á havσ cleareΣ al∞ thσ number≤ o≥á changσá thσá targe⌠ ì
  2398. fielΣá t∩ thσ correc⌠ number«á  Thi≤ i≤ becausσ thσ compute≥ add≤ ì
  2399. o≥á subtract≤á onl∙á thσ changσ iε thσ sourcσá fielΣá becausσá i⌠ ì
  2400. assume≤ thσ origina∞ numbe≥ wa≤ alread∙ addeΣ o≥ subtracted«á  I⌠ ì
  2401. i≤á bes⌠ t∩ definσ al∞ thσ calculation≤ beforσ enterinτá numbers«  ìèAfte≥ clearinτ al∞ thσ number≤ thσ compute≥ wil∞ givσ thσ correc⌠ ì
  2402. results.
  2403.      Yo⌡á  caε onl∙ havσ onσ calculatioε typσ pe≥á number«á  Thi≤ ì
  2404. ma∙ bσ ß probleφ iµ yo⌡ wan⌠ t∩ adΣ acros≤ row≤ anΣ columns«  Yo⌡ ì
  2405. caεá alway≤á writσ you≥ owε subroutine≤ o≥ yo⌡ caε wai⌠á fo≥á thσ ì
  2406. nex⌠ versioε oµ thi≤ spreadsheet«  ┴ numbe≥ caε bσ ß targe⌠ fielΣ ì
  2407. fo≥áá onσá calculatioεá anΣá ßá sourcσá fielΣá fo≥á ßáá differen⌠ ì
  2408. calculation«á  ┴á numbe≥á caεá onl∙á bσ ß sourcσá fielΣá fo≥á onσ ì
  2409. calculation.
  2410.  
  2411.  
  2412.                             5. CLEAR
  2413.  
  2414.    Thi≤ optioε set≤ al∞ thσ number≤ t∩ zero«á  I⌠ doe≤ no⌠ changσ ì
  2415. an∙á oµ thσ string≤ o≥ an∙ oµ thσ calculatioεá types«á  Usσá thi≤ ì
  2416. optioεá wheεá yo⌡á wan⌠ t∩ ente≥ ß ne≈ se⌠ oµá number≤á fo≥á you≥ ì
  2417. spreadsheet«á  Yo⌡á shoulΣ savσ ß cop∙ oµ you≥ olΣ se⌠ oµ number≤ ì
  2418. beforσá usinτ thi≤ option«á  Thσ compute≥ wil∞ warε yo⌡ prio≥á t∩ ì
  2419. dumpinτ you≥ number≤ anΣ givσ yo⌡ thσ optioε t∩ savσ them.
  2420.  
  2421.                              6. SAVE
  2422.  
  2423.    Thi≤ optioε save≤ you≥ spreadshee⌠ oε disk«  Thσ compute≥ wil∞ ì
  2424. asδá yo⌡ thσ namσ oµ thσ spreadshee⌠ yo⌡ wan⌠ t∩ save«á  Thσ namσ ì
  2425. wil∞á bσ thσ filσ name«á  Al∞ filσ name≤ mus⌠ bσ ╕ character≤á o≥ ì
  2426. less«á  N∩á space≤á arσ allowed«á Thσ firs⌠ characte≥ mus⌠á bσá ß ì
  2427. letter«á  I⌠á i≤ suggesteΣ tha⌠ yo⌡ usσ ß shor⌠ descriptivσá namσ ì
  2428. followeΣá b∙ ß numbe≥ fo≥ eacΦ versioε oµ thσá spreadsheet«á  Fo≥ ì
  2429. examplσá ßá spreadshee⌠ tha⌠ i≤ useΣ t∩ balancσá ßá checkbooδá i≤ ì
  2430. "CHECK"«á CHECK▒ i≤ fo≥ January«  CHECK▓ i≤ fo≥ February«  CHECK│ ì
  2431. i≤ fo≥ March¼ etc« 
  2432.     Alway≤á makσá backu≡á copie≤ oµ importan⌠á data«á  Kee≡á ver∙ ì
  2433. inportan⌠á datßá oεá ßá pape≥á printou⌠á also«á  Iµá yo⌡á savσá ß ì
  2434. spreadshee⌠á witΦá thσ samσ namσ a≤ aε olΣ spreadshee⌠á yo⌡á wil∞ ì
  2435. overwritσ thσ olΣ spreadshee⌠ anΣ losσ it.
  2436.  
  2437.                            7. BARCHART
  2438.  
  2439.      Thi≤ optioε i≤ useΣ t∩ makσ ß simplσ asterisδ barchart«  Thσ ì
  2440. compute≥á wil∞ asδ yo⌡ t∩ movσ thσ ¬ t∩ eacΦ numbe≥ yo⌡ wan⌠á fo≥ ì
  2441. thσá barchart«á  Thσ compute≥ wil∞ theε asδ yo⌡ t∩ movσ thσ ¬á t∩ ì
  2442. thσá star⌠ oµ thσ labe∞ o≥ descriptioε yo⌡ wan⌠ printeΣá fo≥á thσ ì
  2443. number«á  Thσ compute≥ wil∞ theε asδ yo⌡ t∩ movσ thσ ¬ t∩ thσ enΣ ì
  2444. t∩á thσ labe∞ fo≥ eacΦ number«á  Thσ compute≥ wil∞ theε prin⌠ ou⌠ ì
  2445. fo≥á eacΦ number¼á it≤ label¼á it≤ numbe≥ anΣ aεá asterisδá grapΦ ì
  2446. proportiona∞ t∩ thσ othe≥ number≤ iε thσ graph.
  2447.  
  2448.                          8. PRINT SCREEN
  2449.  
  2450.     Thi≤ optioε print≤ thσ screeε oε pape≥ a≤ i⌠ i≤ showε oε you≥ ì
  2451. monitor«á  EacΦ screeε i≤ 2░ line≤ deep«  Thereforσ yo⌡ caε ge⌠ │ ì
  2452. screens on an 11 inch page using 6 lines per inch.  
  2453.     The computer will ask you :            
  2454. DO YOU WANT TO PRINT THE SCREENS TO THE RIGHT ALSO
  2455.  1- NO print only this screen  2- YES                    è
  2456.     Iµá yo⌡á chosσ "N╧ prin⌠ thi≤ screeε onlyó thσ compute≥á wil∞ ì
  2457. prin⌠ thσ screeε exactl∙ a≤ i⌠ i≤ showε oε you≥ monitor.
  2458.  
  2459.     Iµá yo⌡ choosσ "YESó yo⌡ caε prin⌠ thσ screeε oε you≥ monito≥ ì
  2460. anΣ thσ  ▓ screen≤ t∩ thσ righ⌠ oµ it«á  Iε somσ spreadsheet≤ yo⌡ ì
  2461. ma∙ wan⌠ t∩ usσ morσ theε thσ 8░ column≤ availablσ oε onσ screen«  ì
  2462. Yo⌡á caε usσ 16░ column≤ oε tw∩ screen≤ o≥ 24░ column≤á oεá threσ ì
  2463. screens«á  Yo⌡á caεá prin⌠ u≡ t∩ 24░ column≤ iµ you≥ printe≥á caε ì
  2464. prin⌠ 24░ columns«  Yo⌡ probabl∙ havσ t∩ se⌠ you≥ printe≥  to it≤ ì
  2465. condenseΣ prin⌠ modσ (seσ you≥ printer≤ manua∞ fo≥ ho≈ t∩ d∩ it)« ì
  2466. Thσ compute≥ wil∞ asδ yo⌡ ho≈ man∙ column≤ oµ thσ spreadshee⌠ yo⌡ ì
  2467. wan⌠ t∩ print«á  Thσ compute≥ wil∞ theε prin⌠ thσ screeε oεá you≥ ì
  2468. monito≥á anΣá thσ screen≤ t∩ thσ righ⌠ oµ i⌠ u≡ t∩ thσ numbe≥á oµ ì
  2469. column≤á yo⌡á wan⌠ printed«á  Yo⌡ caε alway≤á prin⌠á eacΦá screeε ì
  2470. separatel∙á thσn tapσ o≥ gluσ theφ togethe≥ iµ yo⌡ d∩ no⌠ havσá ß ì
  2471. widσ enougΦ printe≥ t∩ prin⌠ you≥ spreadsheet.
  2472.  
  2473.                       9. PRINT DESCRIPTION
  2474.  
  2475.     Thi≤á optioεá print≤ thσ value≤ oµ al∞á thσá variables«á  Yo⌡ ì
  2476. probably only want to use this option if you are a programmer.  
  2477.  
  2478.                   INNER WORKING OF THE PROGRAM
  2479.  
  2480.      Thσá remark≤á prograφ "SSREMARK.BASó i≤ thσá SS.BA╙á prograφ ì
  2481. witΦá remark≤á printeΣá ou⌠á oεá abou⌠ ever∙á linσá t∩á hel≡á yo⌡ ì
  2482. understanΣá thσ program«á  Iµ yo⌡ arσ goinτ t∩ writσá an∙á custoφ ì
  2483. subroutine≤á yo⌡ shoulΣ lis⌠ thσ prograφ ou⌠ oε pape≥ anΣ takσá ß ì
  2484. look at it to see how the program works.
  2485.  
  2486.      Thσá custoφá subroutine≤á 14,15,16,17,18,1╣ anΣá 2░á ma∙á bσ ì
  2487. writteε oε line≤ 29300¼á 29400¼á 29500¼á 29600¼ 29700¼ 29800¼ anΣ ì
  2488. 2990░ respectfully«á  Returε thσ valuσ oµ thσ targe⌠ valuσ a≤á X«  ì
  2489. Yo⌡ caε als∩ writσ somσ codσ oε line≤ 25300¼ 25400¼ 25500¼ 25600¼ ì
  2490. 25700¼á 25800¼á anΣ 2590░ iµ yo⌡ wan⌠ t∩ specif∙ targe⌠ field≤ o≥ ì
  2491. secondar∙á field≤á fo≥ you≥ calculations«á  Iµ yo⌡ arσá goinτá t∩ ì
  2492. writσá an∙á custoφá subroutine≤ yo⌡ shoulΣ lis⌠ ou⌠á thσá remark≤ ì
  2493. program¼ SSREM« 
  2494.  
  2495.                       NOTES ON VERSION 1.0
  2496.  
  2497.      Thi≤á i≤á thσ firs⌠ versioε oµ thσá Spreadsheet«á  Thσá nex⌠ ì
  2498. versioε wil∞ probabl∙ contaiε morσ feature≤ anΣ shoulΣ bσ a≤ use≥ ì
  2499. friendl∙ a≤ thi≤ version«á  Wσ plaε oε addinτ morσ graphics¼  anΣ ì
  2500. addinτ command≤ t∩ enablσ yo⌡ t∩ handlσ large≥ spreadsheets«   
  2501.      Therσá arσ n∩ royaltie≤ oε application≤ oµ thi≤ spreadsheet«  ì
  2502. END OF SPREADSHEET MANUAL LAST UPDATE 8/30/84
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509. è 
  2510.                    THE EXPERT SYSTEM OF STEEL
  2511.  
  2512.      Aε exper⌠ systeφ i≤ ß systeφ tha⌠ approximate≤ thσ judgemen⌠ ì
  2513. oµá ß humaε expert«á  Aε exper⌠ systeφ ma∙ bσ se⌠ u≡ t∩ ac⌠ a≤á ß ì
  2514. psychiatrist¼á automobilσ mechanic¼ ß physician¼ o≥ othe≥ expert«  ì
  2515. Aε Inferencσ Engine¼ whicΦ i≤ wha⌠ thi≤ exper⌠ systeφ technicall∙ ì
  2516. is¼ i≤ ß frameworδ tha⌠ use≤ variablσ rules¼ problems¼ questions¼ ì
  2517. problem≤á anΣá solutions¼á anΣ ß programmeΣ logiπ t∩á handlσá an∙ ì
  2518. numbe≥á oµ exper⌠ systems«á  Thσ advantagσ oµ aε inferencσ enginσ ì
  2519. i≤á tha⌠ yo⌡ caε se⌠ u≡ you≥ owε exper⌠ systeφ withou⌠ doinτá an∙ ì
  2520. programminτá jus⌠ b∙ enterinτá thσá questions¼á rules¼á problems¼ ì
  2521. solution≤ anΣ thei≥ relationship≤ Aε exper⌠ systeφ ask≤ question≤ ì
  2522. theεá provide≤ ß diagnosi≤ anΣ theε recommend≤ ßá solution«á  Thσ ì
  2523. firs⌠á halµá oµá thi≤ manua∞ explain≤ thσ basic≤ oµá thi≤á exper⌠ ì
  2524. systeφá anΣ ho≈ t∩ usσ thi≤ exper⌠ system«á  Thσ seconΣá par⌠á oµ ì
  2525. thi≤ manua∞ provide≤ informatioε oε ho≈ t∩ creatσ you≥ owε exper⌠ ì
  2526. systems« 
  2527.  
  2528.               How To Use The Expert System Of Steel
  2529.  
  2530.      Firs⌠ yo⌡ shoulΣ briefl∙ reaΣ thi≤ manual«á  Theε yo⌡ shoulΣ ì
  2531. jum≡á righ⌠ iε anΣ tr∙ usinτ thσ system«á Iµ yo⌡ don'⌠ understanΣ ì
  2532. anythinτ yo⌡ shoulΣ refe≥ bacδ t∩ thi≤ manua∞ fo≥ aε explanation« 
  2533.  
  2534.      Yo⌡á havσá beeεá provideΣ witΦ tw∩ version≤á oµá thσá exper⌠ ì
  2535. system¼ thσ compileΣ versioε ¿ EXPERT.EX┼ ⌐ anΣ thσ basiπ versioε 
  2536. ¿á EXPERT.BA╙á )«á  Usinτ thσ compileΣ versioε i≤ easie≥ anΣá thσ ì
  2537. prograφ run≤ faster«  Thσ basiπ versioε i≤ provideΣ becausσ i⌠ i≤ ì
  2538. thσá sourcσá codσ anΣ caε bσ modified«á  T∩á star⌠á thσá compileΣ ì
  2539. versioε :
  2540.          1« Turε you≥ compute≥ oε witΦ you≥ operatinτ systeφ disδ ì
  2541. (MS-DOS or PC-DOS) in the default disk drive.
  2542.          2«á Afte≥á enterinτ thσ timσ anΣ datσ you≥ compute≥ wil∞ ì
  2543. displa∙ A║ 
  2544.          3. Put the expert system disk in the default disk drive.
  2545.          4. Type "expert" then press return.
  2546. A:expert   (press return)
  2547.          5. The program will load.
  2548.          6. The first screen will look like :
  2549.  
  2550.      Put the Expert System disk in the default disk drive 
  2551.  
  2552.      ******  THEN PRESS ANY KEY TO CONTINUE  *****
  2553.  
  2554.     The expert system only uses the expert system disk
  2555. Kee≡á i⌠á iεá thσá defaul⌠ disδ drivσ a⌠ al∞á time≤á durinτá thi≤ ì
  2556. program
  2557.  
  2558. (end of first screen)
  2559.     
  2560.      Thσ exper⌠ systeφ disδ i≤ thσ disδ witΦ thσ file≤á QUESTION¼ ì
  2561. PROBLE═S anΣ SOLUTIO╬ oε it«á  Iε thi≤ casσ thσ prograφ EXPERT i≤ ì
  2562. oεá thσ samσ disδ anΣ thσ disδ shoulΣ alread∙ bσ iεá thσá defaul⌠ ì
  2563. disδá drivσ  sincσ yo⌡ loadeΣ you≥ prograφ froφ it«á  D╧ NO╘ TAK┼ ìèTH┼á DIS╦á OU╘ ANYTIM┼ DURIN╟ TH┼ PROGRAM«á  Pres≤á an∙á ke∙á t∩ ì
  2564. continue.
  2565.  
  2566.      The second screen should look like :
  2567.  
  2568.     E X P E R T   S Y S T E M   P R O G R A M   1.0
  2569.  
  2570.   Copyright 1984 by Potomac Pacific Engineering Inc.
  2571.  
  2572. This program is licensed free to all users with some restrictions
  2573.       See the manual for more information on the license
  2574.  
  2575. *******************  DO YOU WANT TO  *********************
  2576.                 1 - START A NEW PROBLEM
  2577.                 2 - CONTINUE WITH A PRIOR ANALYSIS
  2578. ********** ENTER THE NUMBER THEN PRESS RETURN  ***********
  2579.  
  2580. >__< 
  2581.  
  2582. (end of the second screen)
  2583.  
  2584.      Yo⌡á caεá eithe≥á star⌠ ß ne≈ probleφá o≥á continuσá witΦá ß ì
  2585. previou≤ analysis«á  Startinτ ß ne≈ probleφ mean≤ tha⌠ al∞ oµ thσ ì
  2586. answer≤á wil∞ bσ se⌠ a⌠ n∩ answe≥ anΣ thσ compute≥ wil∞ star⌠á a⌠ ì
  2587. thσá beginninτá b∙ askinτ yo⌡ al∞ oµ thσ introductor∙á questions«  ì
  2588. Thσá othe≥á optioε i≤ t∩ continuσ witΦ ßá prio≥á analysis«á  Wheε ì
  2589. continuinτá witΦá ßá prio≥ analysi≤ thσ compute≥á wil∞á reaΣá thσ ì
  2590. answer≤á tha⌠ yo⌡ o≥ someonσ elsσ ha≤ saveΣ oε thσ disδ anΣá theε ì
  2591. continuσ witΦ thσ analysi≤ a⌠ thσ star⌠ node« 
  2592.      
  2593.     Iµ yo⌡ ente≥ ▒ fo≥ "star⌠ ß ne≈ problemó thσ compute≥ wil∞ g∩ ì
  2594. througΦá eacΦ question¼á settinτ thσ answe≥ t∩ N╧ ANSWE╥, next iµ ì
  2595. thσá questioεá ha≤ beeε designateΣ b∙ thσ systeφ designe≥á a≤á aε ì
  2596. introductor∙á questioεá thσ compute≥ wil∞ asδ yo⌡ t∩á answe≥á thσ ì
  2597. question«á  Answe≥á thσ question«á  Iµ yo⌡ d∩ no⌠ kno≈á wha⌠á thσ ì
  2598. answe≥á i≤á yo⌡á ma∙ tel∞ thσ compute≥ tha⌠ yo⌡ d∩á no⌠á wan⌠á t∩ ì
  2599. answe≥ thσ questioε b∙ pressinτ thσ lette≥ ╬ fo≥ n∩ answer«  
  2600.  
  2601.     Iµá yo⌡á ente≥ ▓ fo≥ "continueΣ witΦ ßá prio≥á analysisóá thσ ì
  2602. compute≥á wil∞á displa∙ al∞ thσ file≤ oε thσ defaul⌠á disδá drivσ ì
  2603. theε asδ yo⌡ fo≥ thσ namσ oµ thσ filσ yo⌡ saveΣ thσ question≤ on, ì
  2604. tha⌠ yo⌡ wan⌠ t∩ continue.
  2605.  
  2606.     Oε you≥ firs⌠ timσ usinτ thσ systeφ ╔ woulΣ sugges⌠á enterinτ ì
  2607. "1óá t∩ star⌠ ß ne≈ problem«á  Thσ compute≥ wil∞ theε asδ yo⌡ thσ ì
  2608. introductor∙ questions.
  2609.  
  2610.      Thσá samplσ "expertó applicatioε i≤á ßá psychitrist«á  Don'⌠ ì
  2611. takσá thσá samplσá applicatioε to∩ seriousl∙ a≤á thσá rule≤á werσ ì
  2612. developeΣá mostl∙ fo≥ debugginτ purpose≤ anΣ no⌠ fo≥ thσá correc⌠ ì
  2613. psychoanalysis«á  ┴á rea∞ "expertó applicatioε woulΣ takσ u≡ mos⌠ ì
  2614. oµ thσ disδ spacσ whicΦ i≤ wh∙ sucΦ ß shor⌠ simplσ applicatioε i≤ ì
  2615. included«  
  2616.  
  2617.      Afte≥ yo⌡ answe≥ thσ introductor∙ question≤ o≥ thσá compute≥ ìèread≤á thσ answer≤ froφ thσ disδ thσ nex⌠ screeε shoulΣ looδ likσ ì
  2618. :
  2619.  
  2620. AT STARTING NODE 0
  2621.  # QUESTION                                   +  -  P  CK  CONT
  2622. 1  Bad Physical Shape                         90 0  7  PC  CONT
  2623. 5  Crazy (mental)                             90 70 9  NC  CONT
  2624. 6  Lazy                                       0  80 6  NC  CONT
  2625. 9  Stupid                                     0  0  5  NC  CONT
  2626. 13 Evil                                       0  0  4  NC  CONT
  2627. 16 Normal                                     50 0  2  C   CONT
  2628. BRANCH ? * NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS 
  2629.                              COMPUTER RECOMMENDS 5
  2630. (end of screen)
  2631.                    Explanation of the Screen
  2632. Probleφ Numbe≥ - i≤ showε a⌠ fa≥ left«á  I⌠ i≤ thσ numbe≥ oµ eacΦ 
  2633.      problem that is a subproblems of the current node. 
  2634. Problem Description - the name of each problem
  2635. Probability For - is shown right below the + on the screen
  2636.      Thσá cumulativσá probabilit∙  oµ al∞ thσ evidencσá tha⌠á thσ      ì
  2637.      probleφ exists
  2638.  Probability Against - right below the - on the screen
  2639.      The  cumulative probability of all the evidence that the    
  2640.      problem does not exist
  2641. Priority - Is shown right below the P on the screen. 
  2642.      The search priority 0 - lowest  9 - highest searched first
  2643. Checked - Is shown right below the CK on the screen
  2644.      C - all ready checked with all questions answered
  2645.      PC - partialy checked - already checked out 
  2646.           but not all of the questions have been answered
  2647.      NC - not checked
  2648. Continued - right below the CONT on the screen
  2649.      CONT - continued, there are further subproblems to this 
  2650.               problem
  2651.      END  - end, there are no further subproblems to this 
  2652.               problem
  2653.  
  2654.                    How The Problems are Set Up
  2655.  
  2656.      Thσá desigεá oµá thi≤á exper⌠ systeφ i≤ se⌠á u≡á iεá ßá treσ ì
  2657. structure«á  Thσá startinτ nodσ i≤ 0«á  Iε ou≥ samplσ applicatioε ì
  2658. the "tree" starts with the "branches"
  2659. 1  Bad Physical Shape
  2660. 5  Crazy (mental)
  2661. 6  Lazy
  2662. 9  Stupid
  2663. 13 Evil
  2664. 16 Normal
  2665.      
  2666.     EacΦá oµá Thesσ Branche≤ o≥ problem≤ branche≤ ou⌠á int∩á morσ ì
  2667. subproblems«á  Fo≥á examplσ thσ brancΦ "Craz∙ (mental)óá branche≤ ì
  2668. ou⌠ int∩ :
  2669. 21 Psychotic
  2670. 22 Neurotic
  2671. 23 Mental Breakdownè
  2672.     EacΦá oµá Thesσ Branche≤ o≥ problem≤ branche≤ ou⌠á int∩á morσ ì
  2673. subproblems«á  Fo≥á examplσ thσ "Psychotiπ ó branche≤ ou⌠ t∩á thσ ì
  2674. subproblems :
  2675. 24 Schizophrena
  2676. 25 Delusionary
  2677. 26 Megalomanic
  2678. 27 Can't distinguish between fact and fiction
  2679. 28 Paranoid
  2680. 29 Sadistic
  2681. 30 Masochistic
  2682.  
  2683.      Thσ ParanoiΣ brancΦ branche≤ ou⌠ t∩ paranoiΣ typσ ┴ anΣ Typσ ì
  2684. ┬ whilσ thσ othe≥ problem≤ d∩ no⌠ havσ an∙ furthe≥ subproblems.
  2685.  
  2686.      The tree of problems may also be visualized as :
  2687.  
  2688.                           0 - start node
  2689.     /        /         /      \          \              \
  2690.     1        5        6       9          13             16
  2691.   / /  \     |      /  \    /  \ \      /  \      /   /    \   \
  2692.  2  3  4     |     7    8   10 11 12   14  15    17  18    19  20
  2693.              |
  2694.         /    |     \             
  2695.       21     22    23
  2696.   continued  down through all the problems
  2697.  
  2698.     Thσ exper⌠ systeφ start≤ yo⌡ a⌠ thσ star⌠ node«  Thσ compute≥ ì
  2699. wil∞á recommenΣá tha⌠á yo⌡ explorσ thσ brancΦá witΦá thσá highes⌠ ì
  2700. priority tha⌠ ha≤ no⌠ alread∙ beeε explored«á  Thσ compute≥á wil∞ ì
  2701. continuσá t∩á explorσ thσ patΦ a≤ lonτ a≤ thσ probabilit∙ fo≥á i≤ ì
  2702. greate≥ thσ 4░ anΣ thσ probability agains⌠ i≤ les≤ theε 40«  
  2703.  
  2704.     Getting back to what is on your screen, the computer asks : 
  2705.  
  2706. BRANCH ? NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS
  2707.                                          COMPUTER RECOMMENDS 5
  2708.  
  2709.      You have three options here: 
  2710. ENTERING A POSITIVE NUMBER      
  2711.      If you enter a positive number the computer will ask you the
  2712. questions which confirm or deny the existence of the problem. 
  2713. ENTERING A NEGATIVE NUMBER 
  2714.      Iµ yo⌡ ente≥ ß  negativσ numbe≥ thσ compute≥ wil∞ switchì
  2715. control of the analysis to that node on the tree
  2716. ENTERING  9999 ( or any number greater then 9999 )
  2717.      The computer will switch control to the options
  2718.  
  2719.                        ANSWERING QUESTIONS 
  2720.  
  2721.      Iµá yo⌡ ente≥ ß positivσ number¼á thσ compute≥ wil∞ asδá yo⌡ ì
  2722. thσ question≤ whicΦ confirφ o≥ den∙ thσ existencσ oµ thσ problem«  ì
  2723. Thσ numbe≥ oµ question≤ ma∙ var∙ forφ ▒ questioε t∩ 2░ questions«  ì
  2724. Thσ question≤ wil∞ bσ displayeΣ oε thσ screeε a≤ :
  2725. è1   3   Are you 1-male  2-female                   1=1     80
  2726. 2   11  How many TV sets do you own               NA>3     60
  2727. 3   19  Can you run 5 miles 1-yes 2-no            NA=1    -70
  2728. 4   39  What is your IQ                           120>100 -80
  2729. WHICH QUESTION ? 1 to 4  ZERO FOR NONE , THEN ANSWER
  2730. (end of screen)
  2731.  
  2732. In this Screen :
  2733.     The first column is the number for the question. 
  2734.     The second column is the record number of the question.
  2735.     The words are obviously the question.
  2736.     Thσá fourtΦ columε i≤ thσ answe≥ fo≥ thσá question«á  Iµá thσ ì
  2737. question has not been answered then NA will be shown
  2738.     Thσ fifth columε i≤ thσ rule«  Thσ rulσ i≤ eithe≥ ╜ equals¼ ╛ ì
  2739. greater than, < less than or >< not equals.
  2740.     Thσá sixtΦá columεá i≤á thσ fac⌠ valuσá tha⌠á thσá answe≥á i≤ ì
  2741. compared against to determine if the rule is true or false.
  2742.     Thσá seventΦ anΣ las⌠ columε i≤ thσ probabilit∙ tha⌠ i≤á truσ ì
  2743. iµá thσ conditioε i≤ true«á  ┴ positivσ probabilit∙ support≤á thσ ì
  2744. existencσá oµ thσ probleφ whilσ ß negativσ probabilit∙ deny≤á thσ ì
  2745. existence of the problem. 
  2746.  
  2747.     The questions shown above may be read as follows:
  2748. 1. If "male" then there is a 80% chance that the problem exists.
  2749. 2. If more then 3 TV sets are owned there is a 60% chance that
  2750.     the problem exists.
  2751. 3. Iµá yo⌡á caεá ruεá ╡ mile≤ therσ i≤ ß 70Ñá chancσá tha⌠á thσ ì
  2752.     problem does not exist.
  2753. 4. If the IQ is greater than 100, there is a 80% chance that the
  2754.     problem does not exist.
  2755.  
  2756.     T∩á answe≥ thσ firs⌠ question¼á ente≥ thσ numbe≥ ▒ anΣá pres≤ ì
  2757. return«  Theε typσ iε thσ answer«  Al∞ thσ question≤ arσ answereΣ ì
  2758. witΦá numbers«á  Iµ thσ questioε ha≤ thσ option≤ 1-ye≤ 2-n∩á theε ì
  2759. ente≥ eithe≥ ▒ o≥ 2«  Thσ compute≥ wil∞ no⌠ accep⌠ an∙ alphabetiπ ì
  2760. character≤ excep⌠ fo≥ N«  Thσ lette≥ ╬ stand≤ fo≥ n∩ answer«  Yo⌡ ì
  2761. d∩ no⌠ havσ t∩ answe≥ an∙ oµ thσ question≤ iµ yo⌡ d∩ no⌠ kno≈ an∙ ì
  2762. oµ thσ answers«  Don'⌠ wastσ you≥ timσ reanswerinτ question≤ tha⌠ ì
  2763. arσá alread∙ answered«á  Yo⌡ ma∙ changσ an∙ oµ thσ answer≤ b∙ thσ ì
  2764. thσá samσá procedurσá oµ enterinτ thσ questioεá numbe≥á theεá thσ ì
  2765. answer«  
  2766.  
  2767.     Iε ou≥ samplσ se⌠ oµ fou≥ questions,thσ firs⌠ onσ i≤á alread∙ ì
  2768. answered«á  T∩á ente≥ aε answe≥ oµ teε fo≥ thσ seconΣ questioεá ¿ ì
  2769. ho≈ man∙ T╓ set≤ yo⌡ owε ⌐ thσ screeε wil∞ looδ likσ :
  2770.  
  2771. QUESTION ? 1 TO 4,  ZERO FOR NONE, THEN ANSWER
  2772. >2_<
  2773. >10______<
  2774. QUESTION ? 1 TO 4,  ZERO FOR NONE, THEN ANSWER
  2775. >0_<
  2776. (end of screen)
  2777.      Afte≥ yo⌡ ente≥ zer∩ fo≥ n∩ morσ questions¼ thσ prograφ wil∞ ì
  2778. recalculatσ thσ probabilit∙ fo≥ thσ problem«á  Iµ thσ probleφ ha≤ ì
  2779. morσá subproblem≤á anΣ thσ "probabilit∙ foró i≤ greate≥ theεá 40Ñ ìèanΣ thσ "probabilit∙ againstó i≤ les≤ theε 40%¼ thσ compute≥ wil∞ ì
  2780. changσá contro∞á t∩ displa∙ al∞ thσ subproblem≤á oµá thσá curren⌠ ì
  2781. problem«á   Yo⌡á ma∙ o≥ ma∙ no⌠ wisΦ t∩ explorσ thσá subproblems«  ì
  2782. Iµá yo⌡á d∩ no⌠ wan⌠ t∩ explorσ thσ subproblem≤ yo⌡ ma∙á ente≥á ß ì
  2783. negativσ numbe≥ afte≥ thσ promp⌠ :
  2784.      
  2785. BRANCH ? * NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS 
  2786.                                 COMPUTER RECOMMENDS 5
  2787. >______<
  2788.  
  2789.      Iµá yo⌡á ente≥ ß negativσ number¼á thσ compute≥ wil∞á switcΦ ì
  2790. contro∞á t∩ thσ subproblem≤ oµ thσ positivσ valuσ oµá thσá numbe≥ ì
  2791. yo⌡á entered«áá  Iµá thσá negativσá numbe≥á yo⌡á entereΣá ha≤á n∩ ì
  2792. subproblem≤ thσ compute≥ wil∞ promp⌠ yo⌡ fo≥ anothe≥ number«á  Iµ ì
  2793. yo⌡á don'⌠ understanΣ this¼á ruε thσ prograφ anΣ seσ wha⌠ happen≤ ì
  2794. wheε yo⌡ ente≥ ß negativσ number«  Yo⌡ wil∞ usuall∙ wan⌠ t∩ ente≥ ì
  2795. ßá numbe≥ tha⌠ i≤ morσ toward≤ thσ star⌠ nodσ 0«á  Skippinτá froφ ì
  2796. onσ par⌠ oµ thσ treσ t∩ ß differen⌠ par⌠ i≤ no⌠ ß recommendeΣ wa∙ ì
  2797. t∩á conduc⌠ ß search«á  Yo⌡ caε alway≤ jus⌠ follo≈á thσá compute≥ ì
  2798. recommendations«  
  2799.  
  2800.                              OPTIONS
  2801.  
  2802.      Iµ yo⌡ ente≥ thσ numbe≥ 999╣ o≥ an∙ numbe≥ greate≥ theε 999╣ ì
  2803. after the prompt:
  2804.  
  2805. BRANCH ? * NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS
  2806.                                 COMPUTER RECOMMENDS 5
  2807. >9999___<
  2808.     
  2809.      The computer will then prompt you with :
  2810.  
  2811. ** OPTIONS ** 0-NONE 1-SAVE 2-PRINT OPTIONS DISPLAYED ON PAPER
  2812. 3-REVIEW ALL PROBLEMS 4-ALL QUESTIONS AND ANSWERS 5-PRINT PROBLEM
  2813. 6-EXIT                                           
  2814. >__<
  2815.      The options are explained in the following sections:  
  2816.  
  2817.                             0 - NONE
  2818.  
  2819.      Thi≤á optioε return≤ yo⌡ t∩ thσ subproblem≤á yo⌡á previousl∙ ì
  2820. werσ exploring«   Thi≤ optioε i≤ usefull  iµ yo⌡ changσ you≥ minΣ ì
  2821. about using an option.
  2822.         
  2823.                             1 - SAVE
  2824.  
  2825.      Thi≤á optioε save≤ thσ answers¼á probabilitie≤ anΣ thσ path≤ ì
  2826. exploreΣá oε disδ s∩ tha⌠ yo⌡ ma∙ continuσ witΦ thσá analysi≤á o≥ ì
  2827. reexaminσá thσ result≤ latte≥ on«á  Thσ compute≥ wil∞ asδ yo⌡ fo≥ ì
  2828. thσ namσ oµ thσ filσ yo⌡ wan⌠ t∩ savσ i⌠ on«á  Thσ compute≥á wil∞ ì
  2829. theε savσ thσ informatioε oε thσ defaul⌠ disδ drive«  A≤ witΦ al∞ ì
  2830. files¼á iµá yo⌡á savσá thσ informatioε unde≥ thσá samσá namσá yo⌡ ì
  2831. previousl∙ used¼ yo⌡ wil∞ overwritσ (lose⌐ thσ origina∞ filσ witΦ ì
  2832. thσ samσ name«  
  2833.   è              2 - PRINT OPTIONS DISPLAYED ON PAPER
  2834.  
  2835.      Thi≤ optioε print≤ thσ problem≤ anΣ subproblem≤ displayeΣ oε ì
  2836. thσá screeεá oεá paper«á  I⌠ doe≤ no⌠ changσ an∙á oµá answer≤á o≥ ì
  2837. search path.  
  2838.  
  2839.                      3 - REVIEW ALL PROBLEMS
  2840.  
  2841.      The computer will display : 
  2842.  
  2843.                        PRINT OUT PROBLEMS
  2844.    
  2845. DO YOU WANT TO CHECK ALL PROBLEMS OR ONLY THOSE SEARCHED ?
  2846.            0 - RETURN
  2847.            1 - ONLY THOSE ALREADY SEARCHED
  2848.            2 - ALL - TAKES A LOT LONGER
  2849. >__<
  2850. (end of screen)
  2851.  
  2852.      Usσá ░á iµá yo⌡ havσ changeΣ you≥ minΣ anΣ d∩á no⌠á wan⌠á t∩ ì
  2853. revie≈ an∙ oµ thσ problems«á  Usinτ  optioε ▒ wil∞ checδ onl∙ thσ ì
  2854. option≤á tha⌠á yo⌡ lookeΣ at«á  Usinτ optioε ▓ wil∞á checδá ever∙ ì
  2855. probleφ anΣ takσ ß lo⌠ longer«  Iµ yo⌡ havσ searcheΣ thσ treσ anΣ ì
  2856. alread∙ lookeΣ a⌠ al∞ oµ thσ probablσ solution≤ yo⌡ probabl∙ onl∙ ì
  2857. neeΣ t∩ usσ optioε 1« 
  2858.     The computer will then display:
  2859. PRINT OUT ALL PROBLEMS WITH A PROBABILITY FOR HIGHER THEN 
  2860.     ENTER A NUMBER FROM -1 TO 100
  2861. >_____<
  2862.    AND WHOSE PROBABILITY AGAINST IS LOWER THEN 
  2863.     ENTER A NUMBER FORM  0 TO 101
  2864. >_____<
  2865. (end of screen)
  2866.     Thσá compute≥ wil∞ g∩ througΦ eacΦ probleφ anΣ displa∙ i⌠á iµ ì
  2867. i⌠ meet≤ thσ condition≤ yo⌡ entered«  Fo≥ examplσ yo⌡ ma∙ reques⌠ ì
  2868. thσá compute≥á t∩ displa∙ al∞ problem≤ witΦ ßá "probabilit∙á foró ì
  2869. highe≥á thaε 50Ñ anΣ ß "probabilit∙ againstó lowe≥ thaε 50%«á  Iµ ì
  2870. yo⌡á entereΣá CHEC╦á ONL┘ THOS┼á PROBLEM╙á ALREAD┘á SEARCHE─á thσ ì
  2871. compute≥á wil∞á displa∙ thσ problem≤ tha⌠ werσá alread∙á searcheΣ ì
  2872. tha⌠á mee⌠á thσ highe≥ thaε 50Ñ "probabilit∙ foró condition≤á anΣ ì
  2873. "probabilit∙ againstó lowe≥ thaε 50Ñ condition«á  Iµ yo⌡á entereΣ ì
  2874. CHEC╦á AL╠ PROBLEM╙ thσ compute≥ wil∞ displa∙ ever∙ probleφá tha⌠ ì
  2875. ha≤á ßá "probabilit∙á foróá highe≥ thaε 50Ñá anΣá ßá "probabilit∙ ì
  2876. againstóá lowe≥á thaεá 50%«á  Iµ yo⌡ se⌠á thσá searcΦá limit≤á a⌠ ì
  2877. "probabilit∙ foró greate≥ theε -▒ anΣ "probabilit∙ againstó lowe≥ ì
  2878. thaεá 10▒ al∞ thσ problem≤ wil∞ mee⌠ thesσ condition≤ anΣ wil∞ bσ ì
  2879. displayed«  Conversel∙ iµ yo⌡ se⌠ thσ limit≤ a⌠ "probabilit∙ foró ì
  2880. greate≥ thaε 10░ anΣ "probabilit∙ againstó les≤ thaε ░ theεá nonσ ì
  2881. oµ thσ problem≤ wil∞ mee⌠ thσ conditions«   
  2882.      Thσ compute≥ wil∞ theε displa∙ :
  2883.     D╧ YO╒ WAN╘ TH┼ PROBLEM╙ 
  2884. 1 - SHOWN ON THE SCREEN ONLY
  2885. 2 - PRINTED ON PAPER AND SHOWN ON THE SCREEN
  2886. 3 - PRINT ON PAPER WITH SUPPORTING RULES
  2887. >__<è(end of screen)
  2888.     Iµá yo⌡á ente≥ ▒ thσ compute≥ wil∞ prin⌠ thσ option≤á oεá thσ ì
  2889. screeε only«á  Iµ yo⌡ expec⌠ ß lo⌠ oµ problem≤ t∩ bσ printeΣ theε ì
  2890. yo⌡ ma∙ wan⌠ t∩ havσ theφ listeΣ oε pape≥ sincσ yo⌡ caε onl∙ vie≈ ì
  2891. 1░ problem≤ oε thσ screeε a⌠ onσ time« 
  2892.  
  2893.     Afte≥á thσá compute≥á ha≤ printeΣ ou⌠ al∞á thσá problem≤á thσ ì
  2894. computer will display : 
  2895.  
  2896. DO YOU WANT TO CONDUCT A SEARCH FOR ALL AND MULTIPLE SOLUTIONS
  2897.     1 - YES SEARCH
  2898.     2 - NO
  2899. >__<
  2900. (end of screen)
  2901.  
  2902.      Iµá yo⌡ choosσ 1-ye≤ thσ compute≥ wil∞ prin⌠ o≥ sho≈ oεá thσ ì
  2903. screeε al∞ thσ solution≤ tha⌠ solvσ an∙ onσ oµ thσ problem≤á tha⌠ ì
  2904. me⌠á thσá previou≤ conditions«á  Thi≤ optioε ma∙ no⌠ bσá useΣá iµ ì
  2905. therσá wa≤á morσ theε 25░ problem≤ tha⌠ mee⌠ thσá condition≤á yo⌡ ì
  2906. previousl∙á specifieΣá ¿ Thσ compute≥ wil∞ tel∞ yo⌡ iµ therσá arσ ì
  2907. more then 250 problems).
  2908.  
  2909.                   4 - ALL QUESTIONS AND ANSWERS
  2910.      
  2911.      Thi≤á optioε i≤ useΣ iµ yo⌡ wan⌠ t∩ revie≈ thσ question≤ anΣ ì
  2912. answer≤.  The computer will display :
  2913. DO YOU WANT
  2914.   1 - ONLY QUESTIONS ANSWERED SHOWN
  2915.   2 - ALL QUESTIONS SHOWN
  2916. >__<
  2917. DO YOU WANT
  2918.   1 - SHOWN ON THE SCREEN ONLY
  2919.   2 - SHOWN ON THEN SCREEN AND PRINTED ON PAPER
  2920. >__<
  2921. (end of screen)
  2922.     Thσ option≤ arσ selµ explanatory«  I⌠ shoulΣ bσ noteΣ tha⌠ iµ ì
  2923. yo⌡á request al∞ question≤ showε iµ ma∙ takσ ß whilσ t∩á looδá a⌠ ì
  2924. hundred≤á oµá question≤ iµ thσ applicatioε contain≤á hundred≤á oµ ì
  2925. questions.  
  2926.  
  2927.                         5 - PRINT PROBLEM 
  2928.  
  2929.      Thi≤á optioεá print≤á ß singlσ probleφá oεá pape≥á witΦá it≤ ì
  2930. supporting rules (questions).
  2931.  
  2932.                             6 - EXIT
  2933.  
  2934.     Thi≤á optioε i≤ useΣ t∩ exi⌠ thσ program«á  Prio≥ t∩á leavinτ ì
  2935. thσ prograφ thσ compute≥ wil∞ warε yo⌡ tha⌠ yo⌡ arσ abou⌠ t∩ losσ ì
  2936. thσá answer≤ yo⌡ havσ entereΣ iµ yo⌡ havσ no⌠ saveΣ theφ anΣ givσ ì
  2937. you the option not to exit the program.
  2938.  
  2939.           EXPLANATION OF THE PROBABILITY CALCULATIONS
  2940.  
  2941.      Thi≤á exper⌠á systeφ use≤ tw∩ distinc⌠á probabilities«á  Thσ ìèPROBABILITY FOR i≤ thσ probabilit∙ tha⌠ thσ probleφá exits«á  Thσ ì
  2942. PROBABILITY AGAINST i≤ thσ probabilit∙ tha⌠ thσ problem≤ doe≤ no⌠ ì
  2943. exist«á  Wσá havσá electeΣ t∩ usσ tw∩ separatσá probabilitie≤á a≤ ì
  2944. opposeΣá t∩á onσ singlσ probabilit∙ a≤ tw∩ probabilitie≤á providσ ì
  2945. morσ informatioε t∩ thσ users«  Thσ probabilitie≤ havσ ß limi⌠ oµ ì
  2946. ░á t∩á 100«á  Fo≥á examplσ thσá followinτá probabilitie≤á ma∙á bσ ì
  2947. interpreteΣ a≤ :
  2948.  Probability  
  2949. For    Against                Meaning      
  2950. 100    0               100% chance the problem exists
  2951.                        no evidence against
  2952. 90     0               90% chance the problem exists
  2953.                        no evidence against
  2954. 50     0               50% chance the problem exists
  2955.                        no evidence against
  2956. 0      100             100% chance the problem is ruled out
  2957.                        no evidence for
  2958. 0      80              80% chance the problem is ruled out
  2959.                        no evidence for
  2960. 0      50              50% chance the problem is ruled out 
  2961.                        no evidence for
  2962. 80     30              80% chance the problem exists
  2963.                        30% chance the problem is ruled out  
  2964. 60     60              60% chance the problem exists
  2965.                        60% chance the problem is ruled out
  2966. 90     90              90% chance the problem exists
  2967.                        90% chance the problem is ruled out 
  2968.                        This indicates probable incorrect answers
  2969.                          
  2970.       Firs⌠á yo⌡ shoulΣ noticσ tha⌠ thσ numbe≥ d∩ no⌠ havσ t∩ adΣ ì
  2971. u≡á t∩á 100«á  Iµá therσ i≤ evidencσ botΦ fo≥á anΣá agains⌠á eacΦ ì
  2972. probleφá thσá suφ oµ thσ probabilitie≤ ma∙ exceeΣá 100«á  Iµá thσ ì
  2973. probabilit∙ fo≥ anΣ agains⌠ arσ botΦ higΦ theε therσ i≤ ßá chancσ ì
  2974. onσ oµ thσ question≤ wa≤ answereΣ wrong«  
  2975.      Secondl∙á lo≈ probabilitie≤ botΦ fo≥ anΣ agains⌠ cance∞ eacΦ ì
  2976. othe≥ out«á  Fo≥ examplσ iµ therσ i≤ ß probabilit∙ fo≥ oµ 30Ñ anΣ ì
  2977. ßáá probabilit∙áá agains⌠áá oµá 30Ñá therσáá i≤áá probabl∙áá jus⌠ ì
  2978. circumstantia∞á evidencσ botΦ wa∙ anΣ mean≤ abou⌠ thσ samσ a≤á 0Ñ ì
  2979. probabilit∙ fo≥ anΣ 0Ñ probabilit∙ against«  Oε thσ othe≥ hanΣ iµ ì
  2980. therσá i≤ ß probabilit∙ fo≥ oµ 80Ñ anΣ ß probabilit∙á agains⌠á oµ ì
  2981. 80Ñá yo⌡ probabl∙ answereΣ onσ o≥ morσ oµ thσ question≤ wronτá o≥ ì
  2982. thσ systeφ wa≤ se⌠ u≡ poorly« 
  2983.      
  2984.                HOW THE PROBABILITES ARE CALCULATED
  2985.  
  2986.      Fo≥á examplσ supposσ thσ probleφ "poo≥ physica∞á shapeóá ha≤ ì
  2987. the following rules :
  2988. 1   Can you run 5 miles 1-yes 2 no               NA=1   -70
  2989. 2   Can you swim 2 miles 1-yes 2 no              NA=1   -60
  2990. 3   How many times a week do you exercise        NA<3    50
  2991. 4   How for can you walk in miles                NA<3    60
  2992.  
  2993.     Thσá "NAóá Stand≤ fo≥ n∩ answer«á  Supposσá tha⌠á yo⌡á answe≥ ì
  2994. questioεá  threσá tha⌠á yo⌡á exercisσ zer∩á time≤á pe≥á weeδá anΣ ì
  2995. questioεá fou≥ tha⌠ yo⌡ caε walδ onl∙ onσá mile«á  Now¼á questioε ìèthreσá ha≤ probabilit∙ fo≥ oµ 5░ anΣ questioε ┤ ha≤ ßá proabilit∙ ì
  2996. fo≥á oµ 60«á  Yo⌡ migh⌠ thinδ tha⌠ wσ shoulΣ adΣ u≡ thσ 5░ anΣ 6░ ì
  2997. whicΦ equal≤ 110«  Howeve≥ yo⌡ canno⌠ havσ ß probabilit∙ oµ 110%«  ì
  2998. Iµá yo⌡ remembe≥ bacδ t∩ you≥ day≤ iε probabilit∙ anΣá statistic≤ ì
  2999. wheεáá addinτá tw∩á probabilitie≤á yo⌡á havσá t∩áá subtrac⌠áá thσ ì
  3000. probabilit∙áá oµáá thei≥áá intersection«áá  Assuminτáá tha⌠áá thσ ì
  3001. probabilitie≤á arσ independen⌠ thσ probabilit∙ oµ aε intersectioε ì
  3002. i≤ .╡ time≤ .╢ whicΦ i≤ .│ «  110Ñ - .│ ╜ 80Ñ «  Aε easie≥ wa∙ t∩ ì
  3003. calculatσá thσ probabilit∙ assuminτ independen⌠ event≤ i≤á merel∙ ì
  3004. t∩á multipl∙ thσ differencσ betweeε thσ curren⌠ probabilit∙á froφ ì
  3005. onσá hundred¼á multipl∙á tha⌠á b∙ thσ probabilit∙á tha⌠á yo⌡á arσ ì
  3006. adding¼ theε adΣ t∩ thσ olΣ probability«  Fo≥ example
  3007.        50% old probability + 60 %
  3008.                     100
  3009.                    - 50  old probability
  3010.                    ----
  3011.      + 30            50  x 60 = .30
  3012.        --
  3013.        80 new probability
  3014.      Thσ compute≥ doe≤ al∞ thσ abovσ calculations«á  Thσ example≤ ì
  3015. are just provided to show you what the computer is doing.
  3016.     Al∞á thσá subproblem≤á oµ ß probleφá assumσá thσá probabilit∙ ì
  3017. agains⌠ oµ al∞ thσ branche≤ tha⌠ i⌠ belong≤ to«á  Thi≤ i≤ becausσ ì
  3018. iµá therσá i≤á evidencσá tha⌠ yo⌡ arσ no⌠á craz∙á theεá thσá samσ ì
  3019. evidencσá anΣ probabilit∙ applie≤ t∩ yo⌡ no⌠ beinτá psychotiπá o≥ ì
  3020. neurotic«á  However¼á notσá tha⌠á subproblem≤ d∩ no⌠á assumσá thσ ì
  3021. probabilit∙ fo≥ oµ thσ branche≤ the∙ belonτ to«á  Thi≤ i≤ becausσ ì
  3022. iµá yo⌡ arσ craz∙ i⌠ doe≤ no⌠ indicatσ tha⌠ yo⌡ arσ psychotiπá a≤ ì
  3023. yo⌡ coulΣ bσ anothe≥ subprobleφ oµ crazy.
  3024.  
  3025.                 NOTES ON USING THIS EXPERT SYSTEM
  3026.  
  3027.     Firs⌠á oµ al∞ thi≤ exper⌠ systeφ o≥ an∙ exper⌠ systeφ ha≤á n∩ ì
  3028. commoε sense«  An∙ exper⌠ systeφ know≤ onl∙ thσ rules¼ questions¼ ì
  3029. problem≤á anΣá solution≤ tha⌠ i⌠ ha≤ beeεá programmeΣá with«á  Aε ì
  3030. exper⌠á systeφ doe≤ no⌠ kno≈ anythinτ outsidσ oµ thσ areß i⌠á ha≤ ì
  3031. beeεá programmeΣ in«á  Thi≤ exper⌠ systeφ wa≤ designeΣ t∩ bσ useΣ ì
  3032. a≤á aε aid¼á no⌠ thσ solσ authorit∙ iε arrivinτ a⌠á problem≤á anΣ ì
  3033. solutions«áá  Thσá subproblems¼áá rules¼á anΣá probabilitie≤á arσ ì
  3034. displayeΣ mos⌠ oµ thσ times«  Computer≤ arσ gooΣ a⌠ keepinτ tracδ ì
  3035. oµá hundred≤á oµ rules¼á questions¼á anΣá answers«á  Howeve≥á thσ ì
  3036. compute≥ doe≤ no⌠ havσ an∙ commoε sensσ thereforσ i⌠ i≤ u≡ t∩ yo⌡ ì
  3037. t∩ providσ thσ commoε sense«  
  3038.      Secondl∙á an∙á applicatioεá i≤ onl∙ a≤ gooΣá a≤á thσá rules¼ ì
  3039. questions¼á problems¼ anΣ solution≤ witΦ whicΦ i⌠ wa≤ se⌠ up« Thσ ì
  3040. samplσá applicatioεá shoulΣ demonstratσ thi≤ point«á  N∩á onσá i≤ ì
  3041. perfec⌠ anΣ eveε expert≤ disagreσ oε man∙ things«á  Thσ poin⌠á i≤ ì
  3042. jus⌠á becausσá aεá exper⌠á systeφá i≤ ruε oεá ßá compute≥á i≤á n∩ ì
  3043. indicatioε tha⌠ thσ result≤ i⌠ give≤ arσ correct«  
  3044.      
  3045. ****************************************************************
  3046.  
  3047.                 HOW TO SET UP YOUR EXPERT SYSTEM
  3048.  
  3049.      Thi≤á sectioε provide≤ thσ informatioε necessar∙ t∩ se⌠ you≥ ìèowεá exper⌠ system«á  I⌠ i≤ no⌠ necessar∙ t∩ reaΣá o≥á understanΣ ì
  3050. thi≤á sectioε iµ yo⌡ arσ onl∙ goinτ t∩ bσ usinτ aε exper⌠á systeφ ì
  3051. tha⌠á someonσá elsσá se⌠á u≡. 
  3052.  
  3053.      Thσá firs⌠á thinτ yo⌡ havσ t∩ decidσ i≤ whethe≥ thi≤á exper⌠ ì
  3054. systeφá caεá handlσá you≥ application«á  Thi≤á exper⌠á systeφá i≤ ì
  3055. limiteΣ b∙ thσ numbe≥ oµ questions¼á problems¼ anΣ solution≤ tha⌠ ì
  3056. caε bσ processed«á  Thσ wa∙ thσ systeφ i≤ currentl∙ se⌠ u≡ i≤ fo≥ ì
  3057. ßá maximuφá oµ 300░ questions¼á 100░  problem≤ anΣá aεá unlimiteΣ ì
  3058. numbe≥ oµ solutions«á  You≥ exper⌠ system≤ ma∙ bσ limiteΣ b∙á thσ ì
  3059. memor∙á addressablσ b∙ you≥ BASI├ languagσ anΣ thσ storagσá spacσ ì
  3060. oε you≥ flopp∙ disks«á  Yo⌡ caε alway≤ modif∙ thσ prograφ t∩ reaΣ ì
  3061. botΦá drivσ ┴ anΣ ┬ o≥ ß harΣ disδ o≥ yo⌡ coulΣ spli⌠ you≥ exper⌠ ì
  3062. systeφá int∩á severa∞ exper⌠ system≤ witΦ thσá samσá introductor∙ ì
  3063. questions« 
  3064.      Therσá arσ ß lo⌠ oµ application≤ tha⌠ arσ bette≥á solveΣá b∙ ì
  3065. algorithmiπá programs«á  Fo≥ examplσ ches≤ program≤ anΣ operatioε ì
  3066. researcΦ program≤ arσ bes⌠ designeΣ b∙ algorithmiπ programs« 
  3067.      Iµ yo⌡ d∩ no⌠ kno≈ mucΦ abou⌠ exper⌠ system≤ yo⌡ ma∙ wan⌠ t∩ ì
  3068. reaΣá ß booδ o≥ tw∩ oε exper⌠ system≤ beforσ yo⌡ tr∙ t∩ desigε aε ì
  3069. exper⌠ system«  Unfortunaltl∙ mos⌠ oµ thσ book≤ oε exper⌠ system≤ ì
  3070. arσá expensivσ anΣ nonσ tha⌠ ╔ havσ reaΣ werσ tha⌠ gooΣ s∩á ╔á d∩ ì
  3071. no⌠ havσ an∙ t∩ recommend« 
  3072.  
  3073.      Any expert system requires that the area of expertise have:
  3074.   1. a finite and known number of problems
  3075.   2. definable rules that support or deny each problem
  3076.   3. a finite number of known solutions
  3077.  
  3078.      Fo≥ example¼ i⌠ i≤ presentl∙ impossiblσ fo≥ aε exper⌠ systeφ ì
  3079. t∩á desigεá ßá housσá becausσ therσá i≤á aεá infinitσá numbe≥á oµ ì
  3080. combination≤ oµ rooms¼á dimensions¼ materials¼ etc« anΣ therσ arσ ì
  3081. n∩á definablσá rule≤ tha⌠ indicatσ wheε t∩ usσá whicΦá materials¼ ì
  3082. color≤á etc«á   Oεá thσá othe≥ hanΣ i⌠ i≤ possiblσ t∩á desigεá aε ì
  3083. exper⌠á systeφá t∩ diagnosi≤ fixinτ ß ca≥ becausσ thσá numbe≥á oµ ì
  3084. problem≤á i≤ finitσ anΣ therσ arσ knowε rule≤ t∩ determinσá iµá ß ì
  3085. par⌠ oµ thσ ca≥ i≤ broken« 
  3086.  
  3087.      Obviousl∙á i⌠ help≤ iµ yo⌡ arσ aε exper⌠ o≥ ge⌠ hel≡ froφ aε ì
  3088. exper⌠ t∩ ge⌠ thσ correc⌠ rules¼ problem≤ anΣ solution≤ otherwisσ ì
  3089. yo⌡á coulΣ enΣ u≡ witΦ aε applicatioε a≤ incorrec⌠ a≤á m∙á samplσ ì
  3090. application.
  3091.  
  3092.      Sincσ thi≤ prograφ i≤ writteε iε BASI├ anΣ yo⌡ arσá supplieΣ ì
  3093. witΦá thσá sourcσá codσá yo⌡ caε easil∙ modif∙ i⌠á t∩á adΣá extrß ì
  3094. feature≤á yo⌡á ma∙ neeΣ fo≥ you≥á exper⌠á system«á   Thσá prograφ ì
  3095. REM.BA╙á oεá disδ ┤ contain≤ remark≤ oε almos⌠ ever∙ linσ oµá thσ ì
  3096. program«á  Thσ remark≤ prograφ wil∞ no⌠ run«  Iµ yo⌡ arσ goinτ t∩ ì
  3097. modif∙ thσ prograφ yo⌡ shoulΣ loaΣ thσ prograφ REM.BA╙ theεá lis⌠ ì
  3098. i⌠ ou⌠ oε paper«  
  3099.  
  3100.                         SYSTEM STRUCTURE
  3101.  
  3102.      Thσá exper⌠á systeφá use≤ threσá file≤á QUESTION¼á PROBLEMS¼ ì
  3103. SOLUTION«  Thσ file≤ arσ se⌠ u≡ anΣ maintaineΣ usinτ thσ databasσ ìèprograφ MAIN.EX┼ «á  ReaΣ thσ Databasσ manua∞ fo≥ instruction≤ oε ì
  3104. ho≈ t∩ usσ thσ database«á   Usσ disδ 4¼á thσ exper⌠ systeφá disk¼ ì
  3105. fo≥ thσ prograφ datß disk« 
  3106.  
  3107.                           QUESTION FILE
  3108.  
  3109.      The question file has the following four fields :
  3110. 1 Question             String with maximum length 50
  3111. 2 Always Asked         Integer
  3112. 3 Continued on Record  Integer
  3113. 4 Dummy                Integer
  3114.     Thσá questioεá i≤ thσ questioε tha⌠ yo⌡ wan⌠ asked«á  Iµá yo⌡ ì
  3115. wan⌠á thσ questioε alway≤ askeΣ a≤ aε introductor∙ questioεá theε ì
  3116. ente≥ numbe≥ ▓ iε fielΣ 2«  Iµ yo⌡ caε no⌠ fi⌠ thσ questioε iε oε ì
  3117. 5░á character≤ yo⌡ ma∙ continuσ i⌠ b∙ enterinτ thσ recorΣá numbe≥ ì
  3118. thσá questioε i≤ continue≤ oε iε fielΣ 3«á  Ente≥ ░ o≥ ▒á iεá thσ ì
  3119. continueΣá oεá recorΣ numbe≥ iµ yo⌡ d∩ no⌠ wan⌠ t∩á continuσá thσ ì
  3120. question«á  Iµá yo⌡ arσ oε aε ß continueΣ recorΣ ente≥ -▒ iµá thσ ì
  3121. questioεá i≤á no⌠ furthe≥ continueΣ o≥ -╪ ¼á ╪ beinτá thσá recorΣ ì
  3122. number the question if further continued on. 
  3123.  
  3124.                             PROBLEMS
  3125.  
  3126.      The problem file contains the following fields :
  3127. 1. Description          String with maximum length 50
  3128. 2. Subproblem to        Integer
  3129. 3. Priority             Integer
  3130. 4. Primary Solution     Integer
  3131. 5. Continued on Record  Integer
  3132. 6. Dummy                Integer
  3133. 7. Rule-Type 1          Integer
  3134. 8. Question-Rule 1      Integer
  3135. 9. Fact Value 1         Single Precision
  3136. 10. Probability 1       Single Precision
  3137. 11. Rule-Type 2         Integer 
  3138. 12. Question-Rule 2     Integer
  3139. 13. Fact Value 2        Single Precision
  3140. 14. Probability 2       Single Precision
  3141. 15. Rule-Type 3         Integer 
  3142. 16. Question-Rule 3     Integer
  3143. 17. Fact Value 3        Single Precision
  3144. 18. Probability 3       Single Precision
  3145. 19. Rule-Type 4         Integer 
  3146. 20. Question-Rule 4     Integer
  3147. 21. Fact-Value 4        Single Precision
  3148. 22. Probability 4       Single Precision
  3149. 23. Rule Type 5         Integer
  3150. 24. Question-Rule 5     Integer
  3151. 25. Fact Value 5        Single Precision
  3152. 26. Probability 5       Single Precision
  3153.  
  3154.      Thσá "descriptionóá i≤á thσá namσá oµá thσáá problem«áá  Thσ ì
  3155. descriptioε i≤ limiteΣ t∩ 5░ character≤ anΣ ma∙ no⌠ bσ continued.
  3156.      Thσá "subproblem t∩" numbe≥ i≤ thσ numbe≥ thσ probleφá i≤á ß ì
  3157. subprobleφá to«áá  Ente≥á ░á i⌠á i≤á ßá star⌠á nodσá anΣá ha≤á n∩ ìèsubproblems«á   Ente≥á 500░á iµ thi≤ recorΣ i≤ ß continuatioεá oµ ì
  3158. anothe≥ problem« 
  3159.      Thσá "priorityó i≤ thσ searcΦ patterε priority«á   Thσ rangσ ì
  3160. i≤ froφ ▒ (lowest⌐ t∩ ╣ (highest)«á  Thσ number≤ witΦ thσ highes⌠ ì
  3161. priorit∙ arσ searcheΣ first«   
  3162.      Thσá "primaryó solutioε i≤ thσ recorΣ numbe≥ oµ thσ solutioε ì
  3163. tha⌠ i≤ thσ mos⌠ recommend solutioε fo≥ thσ problem.
  3164.      Thσá"continueΣ" oε recorΣ numbe≥ i≤ thσá recorΣá numbe≥á thσ ì
  3165. probleφ i≤ continueΣ on«  Onl∙ thσ rule≤ ma∙ bσ continued«  Ente≥ ì
  3166. ▒ o≥ zer∩ iµ thσ probleφ i≤ no⌠ continued«á  Usσ -X¼á ° beinτ thσ ì
  3167. recorΣá numbe≥á thσá probleφ i≤ continueΣ oεá iµá thσá recorΣá i≤ ì
  3168. alread∙á continued«á  Ente≥á -▒ iµ thσ recorΣ i≤ thσ las⌠á recorΣ ì
  3169. that the problem is continued on. 
  3170.      Thσ dumm∙ variablσ i≤ no⌠ used«á  I⌠ ma∙ bσ useΣ fo≥ writinτ ì
  3171. specia∞ feature≤ int∩ thσ system.
  3172.      
  3173.      Oεá eacΦ recorΣ thσ probleφ ma∙ havσ fivσ rules«á  EacΦ rulσ ì
  3174. has four parts to it :
  3175.   Rule Type :  1 =, 2 <, 3 >, 4 ><
  3176.   Question-Rule : The question that corresponds to the rule
  3177.   Fact Value : The value the answer is compared against
  3178.   Probability : positive for probability for 
  3179.                 negative for probability against
  3180.  
  3181.                           SOLUTION FILE 
  3182.  
  3183.      The solution file contains the following fields :
  3184.  
  3185. 1. Description         String with maximum length 50
  3186. 2. Continued on Record Integer
  3187. 3. Dummy               Integer
  3188. 4. Solves Problem 1    Integer
  3189. 5. Success Rate 1      Integer
  3190. 6. Solves Problem 2    Integer
  3191. 7. Success Rate 2      Integer
  3192. 8. Solves Problem 3    Integer
  3193. 9. Success Rate 3      Integer
  3194. 10. Solves Problem 4   Integer
  3195. 11. Success Rate 4     Integer
  3196. 12. Solves Problem 5   Integer
  3197. 13. Success Rate 5     Integer
  3198.  
  3199.     Thσ descriptioε i≤ thσ namσ oµ thσ solution«  Thσ descriptioε ì
  3200. may not be continued. It is limited to 50 characters. 
  3201.     Thσ continueΣ oε recorΣ numbe≥ i≤ thσ numbe≥ thσ solutioεá i≤ ì
  3202. continueΣá oε «á  Ente≥ ░ o≥ ▒ iµ thσ solutioε i≤ no⌠á continued«  ì
  3203. Ente≥á -x¼á ° beinτ thσ numbe≥ thσ continueΣ oε recorΣ numbe≥á iµ ì
  3204. thσá solutioεá i≤á alreaΣy continued«á  Ente≥ -▒á iµá enterinτá ß ì
  3205. continued record that is not being further continued. 
  3206.     Thσá dumm∙ variablσ i≤ no⌠ used«á  I⌠ ma∙ bσ useΣ iεá writinτ ì
  3207. modification≤ t∩ thσ system«  Ente≥ an∙ numbe≥ yo⌡ want.
  3208.        
  3209.     Each record stores up to five solutions.
  3210. Solves Problem - the record number of the problem it solves
  3211. Success Rate - the success rate of the solution on this problem è    You can enter  a  negative success rate if the solution has
  3212.     a negative impact on certain problems that you want to point
  3213.     out.
  3214.  
  3215.      Yo⌡á ma∙ wan⌠ t∩ lis⌠ ou⌠ thσ file≤ PROBLEMS¼á SOLUTIO╬á anΣ ì
  3216. QUESTIO╬á fo≥á thσ samplσ applicatioε t∩ seσ ho≈ the∙ arσ se⌠á u≡ ì
  3217. anΣá ho≈ the∙ affec⌠ thσ wa∙ thσ systeφ runs«á  Usσ thσá databasσ ì
  3218. prograφ MAIN.BA╙ t∩ prin⌠ ou⌠ thσ files« 
  3219.  
  3220.  
  3221.               NOTES ON DESIGNING YOUR EXPERT SYSTEM
  3222.  
  3223.      Wσ woulΣ recommend tha⌠ yo⌡ desigε anΣ revie≈ you≥ systeφ oε ì
  3224. pape≥ beforσ yo⌡ star⌠ typinτ thσ datß iε t∩ thσ files«  
  3225.     Wσá recommendá thσ followinτ step≤ iε designinτá you≥á exper⌠ ì
  3226. system.  
  3227.     1. Write down on paper all the possible problems.
  3228.     2. Group the problems as subproblems of other problems.
  3229.          Kee≡á iεá minΣá tha⌠ peoplσ worδ bes⌠á witΦá ╖á o≥á les≤ ì
  3230. alternative≤á s∩á yo⌡á migh⌠ wan⌠ t∩ tr∙ t∩ limi⌠ thσá numbe≥á oµ ì
  3231. subproblem≤á t∩  7«á  Als∩ therσ i≤ onl∙ 2╡ row≤ oε computer≤á oµ ì
  3232. whicΦ thσ prompt≤ anΣ othe≥ informatioε take≤ u≡ severa∞ line≤ s∩ ì
  3233. yo⌡ shoulΣ tr∙ t∩ kee≡ thσ numbe≥ oµ subproblem≤ t∩ les≤ theε 10.
  3234.     3« Choose the questions.
  3235.          Iµá possiblσá i⌠ i≤ bes⌠ t∩ havσ ╡ o≥á fewe≥á questions«  ì
  3236. Yo⌡ ma∙ havσ u≡ t∩ 2░ questions«á  Iµ possiblσ chosσ ▓ o≥ │á eas∙ ì
  3237. t∩á answe≥ question≤ tha⌠ givσ thσ highes⌠ probabilit∙ fo≥ anΣá ▓ ì
  3238. o≥á │á question≤ tha⌠ wil∞ givσ thσ highes⌠ probabilit∙ tha⌠á thσ ì
  3239. highes⌠á probabilit∙ against«á  Iµ therσ arσ question≤á tha⌠á arσ ì
  3240. eas∙á t∩ answe≥ tha⌠ wil∞ virtuall∙ confirφ o≥ den∙ thσ existencσ ì
  3241. oµ thσ probleφ d∩ no⌠ wastσ you≥ ou≥ you≥ user≤ timσ oε question≤ ì
  3242. tha⌠ providσ circumstantia∞ evidence«  Yo⌡ shoulΣ als∩ tr∙ t∩ usσ ì
  3243. thσá samσ questioε fo≥ morσ theε onσ probleφ iµ possiblσ t∩ lowe≥ ì
  3244. thσ numbe≥ oµ question≤ thσ use≥ mus⌠ answer«  Als∩ remembe≥ tha⌠ ì
  3245. al∞á question≤ mus⌠ bσ answereΣ witΦ ß numbe≥ s∩ yo⌡ arσá limiteΣ ì
  3246. t∩ multiplσ choicσ question≤ o≥ askinτ fo≥ numerica∞ data.
  3247.      3. Choose the solutions.
  3248.      I⌠ i≤ best¼á iµ possible¼á t∩ lis⌠ tw∩ o≥ morσ solution≤ fo≥ ì
  3249. eacΦá problem«á  Thi≤á i≤ becausσ therσ ma∙ bσ onσ solutioεá tha⌠ ì
  3250. wil∞ solvσ severa∞ oµ thσ problems«  
  3251.      4«á Ente≥á thσá questions¼á problem≤ anΣ solution≤ ont∩á thσ ì
  3252. file≤ usinτ thσ databasσ prograφ MAIN«  Usσ disδ ┤ a≤ thσ prograφ ì
  3253. data disk
  3254.      5«á  Tes⌠ anΣ debuτ you≥ application«  Yo⌡ caε modif∙ an∙ oµ ì
  3255. your files using the database program  MAIN. 
  3256.  
  3257.      Somσá application≤ ma∙ no⌠ neeΣ t∩ usσ thσ solutioεá featurσ ì
  3258. oµá thi≤á exper⌠ system«á  Yo⌡ havσ thσ sourcσ codσá s∩á yo⌡á caε ì
  3259. remove the solution options rather easily if you know BASIC. 
  3260. (end of Expert System Manual, last update 11/8/84)