THÅ DATABASÅ OÆ STEEL THE SPREADSHEET OF STEEL THE EXPERT SYSTEM OF STEEL Copyright 1984, by Potomac Pacific Engineering Inc. Licensed FREE to all users with some restrictions. Reaä   anä   agreå  tï  thå  licenså   conditonó   anä   ouò disclaimeò oæ warrantieó prioò tï usinç thió program. TABLE OF CONTENTS Introduction 2 OPERATIONS PROGRAMS Main Program 3 Scan Program 5 Change Program 5 Sort Program 6 Print Form Program 6 Transfer Program 7 ASCII Program 7 ASCII Test Program 7 CUSTOM PROGRAMS CFORM Program 8 CFILE Program 8 CINPUT Program 9 CTRANSFE Program 12 CLIMITS Program 13 CSCREEN Program 13 CREAL Program 14 APPLICATIONS Accounting 15 Payroll 16 Inventory 17 Accountó Receivableó anä Payablå 17 PROGRAM LOGIC Initiaì Menuó foò Custoí Programó 18 Lisô oæ Fileó 19 Datá Entrù 19 Filå Explanatioî 20 Subrecordó ¯ Repeatinç Fieldó 21 Keylisô Explanatioî 22 Specificationó 23 Prograí Lengtè Limitó 24 Basiã Languagå Versioî 24 Disclaimeò oæ Warrantieó 26 Licenså Informatioî 27 Writinç Programó Usinç thå Datá Baså 28 Systeí Desigî Noteó 30 Inneò Workingó oæ thå Prograí 30 Compilinç thå Prograí ¦ Erroò Trappinç 35 Otheò Productó anä Serviceó froí Potomaã Pacifiã Engineerinç Inã 36 Feedbacë Requesteä 37 Erroò Reporô Forí 39 SPREADSHEEÔ MANUAÌ 41 EXPERT SYSTEM MANUAL 48 Š INTRODUCTION Thå  Datá  Baså consistó oæ fifteeî programs®  Thå  fifteeî programó falì intï twï groups®  Thå firsô grouð oæ programó  arå thå operationó programs® Theså programó arå listeä below® 1® MAIÎ PROGRAM 2® FORÍ PROGRAM 3® TRANSFEÒ PROGRAM 4® SCAÎ PROGRAM 5® CHANGÅ PROGRAM 6® SORÔ PROGRAM 7® ASCIÉ PROGRAM 8® TESTASCÉ PROGRAM Thå  seconä grouð oæ programó arå thå custoí programs®  Thå custoí programó arå useä tï seô uð thå datá base® Notå thaô eacè custoí prograí haó á "C¢ aó thå starô oæ it'ó name®  Thå  custoí programó arå listeä below. 9® CFILÅ PROGRAM 10® CINPUÔ PROGRAM 11® CSCREEÎ PROGRAM 12® CTRANSFEÒ PROGRAM 13® CFORÍ PROGRAM 14® CLIMITÓ PROGRAM 15® CREAL Mosô  useró  wilì  bå usinç onlù  thå  operationó  programs® Therå  ió nï neeä tï learî anythinç abouô thå custoí programó tï uså thå operationó programs®  Thå custoí programó wilì  probablù onlù  bå  useä  bù thå persoî whï haó tï seô uð  thå  files¬  thå forms¬ anä thå transfeò descriptions. Thoså  oæ yoõ whï arå onlù goinç tï bå usinç  thå  operationó programó  shoulä reaä thå operationó parô oæ thió manuaì whicè ió onlù  á fe÷ pageó long®  Thoså oæ yoõ whï arå goinç tï bå  usinç botè thå operationó programó anä thå custoí programó shoulä  reaä thå entirå manual. Thå  easiesô waù tï learî ho÷ tï uså thió systeí ió tï geô oî thå  computeò  anä trù differenô things®  Iô  ió  impossiblå  tï damagå  thå  computeò  bù  runninç thió  oò  anù  otheò  softwarå package® However¬ makå surå yoõ arå usinç á samplå oò extrá datá filå  beforå  yoõ  starô  usinç thå  programs®  Iô  ió  stronglù suggesteä thaô yoõ makå á backuð copù oæ thå program. GETTINÇ STARTED Afteò brieflù lookinç oveò thió manuaì yoõ shoulä jumð  righô iî  anä trù usinç thå programs®  Trù runninç thå prograí "MAIN"® Yoõ  havå  tï loaä thå operatinç systeí (MS-DOÓ oò  PC-DOS©  intï memorù  firsô  beforå yoõ trù loadinç anù programs®  Iæ  yoõ  arå usinç thå basiã versioî theî yoõ alsï havå tï loaä youò basiã in® Iæ  yoõ  arå  usinç thå basiã versioî reaä thå  sectioî  oæ  thió manuaì oî thå Basiã Languagå Versioî beforå runninç thå program. Š 1® Trù thå "MAIN¢ prograí 2® Trù thå "FORM¢ prograí 3® Trù thå "SCAN¢ program Afteò  yoõ  trù  ouô thå programó yoõ  wilì  havå  á  betteò understandinç  oæ ho÷ theù work®  Theî iô wilì bå easieò foò yoõ tï understanä thå manual. OPERATONÓ PROGRAÍ MANUAL ***********************ª MAIÎ PROGRAÍ ************************* Yoõ  wilì  firsô bå askeä whicè filå yoõ wanô tï  accesó  anä whicè disë drivå iô ió on®  Alì thå fileó wilì bå listeä bù namå anä number®  Tï begiî enteò thå numbeò theî presó  return®  Seå thå Datá Entrù Sectioî foò morå information®  Alì thå disë driveó wilì  bå listeä bù letteò anä correspondinç optioî  number®  Yoõ shoulä  kno÷ oò finä ouô whicè disë drivå A¬  disë drivå B¬  etc® Afteò  yoõ enteò thå filå numbeò anä disë drivå yoõ  wilì  bå askeä  whaô yoõ wanô tï dï witè thå filå anä giveî thå  followinç optionó º 1® REAÄ Á SPECIFIàRECORÄ 2® PRINÔ OÎ PAPEÒ ALÌ OÒ SEVERAÌ SEQUENTIAÌ RECORDS 3® SCAÎ SEVERAÌ RECORDÓ IÎ Á FILE 4® SEARCÈ Á NOÎ SORTEÄ FILE 5® NE× ENTRY 6® SEARCÈ Á SORTEÄ FILE 7® RECALCULATÅ ALÌ THÅ RECORDÓ IΠÁ FILÅ Somå  oæ  thå optionó arå explaineä below®  Thå otheró arå  selæ explanatory. REAÄ Á SPECIFIà RECORÄ OPTION Thå "reaä á specifiã record¢ optioî ió selæ explanatory. Thió optioî alsï includeó : 1® Correcô oò Changå á record 2® Prinô á singlå recorä oî paper 3® Sho÷ alì thå relateä subrecords (iæ thå filå ió seô uð witè subrecords) NE× ENTRÙ OPTION Thå "ne÷ entrù option¢ ió useä tï enteò aî entirå ne÷ recorä intï  á file®  Mosô oæ thå fieldó arå entereä bù yoõ oò  anotheò operator®  Howeveò  somå  oæ  thå fieldó  arå  computeä  bù  thå computer®  Foò examplå iî á payrolì filå thå fielä totaì paù maù bå  computeä  bù multiplyinç houró workeä (á differenô field©  bù hourlù  paù  (anotheò field)®  Thå computeò  wilì  automaticallù computå somå fieldó anä displaù theí oî thå screen. Iæ yoõ arå enterinç datá foò á filå thaô haó thå  "subrecorä repeatinç  fields¢ optioî theî yoõ maù enteò á subrecorä bù usinç Šthå "enteò á subrecord¢ option®  Thå computeò wilì theî asë  yoõ tï  enteò  thå  repeatinç  fieldó anä displaù theí  oî  thå  samå screen®  Iæ anù sumó arå specifieä foò thå repeatinç fieldó theî thå  sumó wilì appeaò oî thå lasô line®  Dï noô enteò  anù  morå subrecordó  iæ thå screeî ió alreadù filleä witè  subrecords®  Iæ thå screeî ió filleä witè subrecords¬  enteò thå nexô recorä theî continuå  witè subrecords®  Makå surå yoõ makå thå seconä pagå oæ subrecordó  differenô froí thå firsô page®  Writå "continued¢  oò "seconä  pagå oæ two¢ iî thå descriptioî otherwiså  thå  computeò wilì  noô  kno÷  wherå  thå  firsô  screeî  ends®   Thå  prograí identifieó  thå enä oæ thå subrecordó bù detectinç anù changå  iî anù onå oæ thå nonrepeatinç fields. SEARCÈ Á SORTEÄ FILE Firsô  yoõ  shoulä onlù uså thió optioî oî á sorteä filå  oò thå  searcè wilì noô finä thå recorä yoõ arå lookinç  for®  Thió optioî  ió useä tï finä thå recorä numbeò whicè haó thå valuå  iî thå fielä thaô yoõ arå lookinç for®  Foò examplå yoõ maù wanô tï searcè  á  sorteä filå oæ paycheckó foò thå recorä iî  whicè  thå employeå numbeò ió 15®  Iæ morå theî onå recorä haó thå employeå numbeò  equaì  tï 1µ theî thå lowesô recorä numbeò iî  whicè  thå recorä  numbeò  ió  1µ  ió returned®  Agaiî  thå  filå  yoõ  arå searchinç  musô havå beeî sorteä oî thå fielä yoõ  arå  searchinç for. SEARCÈ Á NONSORTEÄ FILE Thió  optioî  ió similaò tï thå abovå option®  Yoõ maù  uså thió optioî oî á nonsorteä oò sorteä file® Thió searcè ió onlù á sequentiaì scaî oæ thå filå tï searcè foò thå valuå yoõ  specify® Thå  computeò wilì asë yoõ whicè recorä numbeò yoõ wanô tï  starô thå searcè at®  Thå computeò wilì theî sho÷ yoõ thå firsô recorä thaô containó thå valuå yoõ arå searchinç for® Iæ yoõ theî presó thå  returî keù foò optioî #± (sho÷ thå nexô record© thå computeò wilì  sho÷  yoõ  thå  nexô recorä thaô  haó  thå  valuå  yoõ  arå searchinç  for®  Aô thå enä oæ thå filå thå computeò wilì returî tï thå filå options®  Iæ nonå oæ thå recordó iî thå filå contaiî thå  valuå yoõ arå lookinç for¬  thå prograí wilì returî tï  filå options. RECALCULATE ALL RECORDS OPTION Uså thió optioî onlù iæ yoõ kno÷ whaô yoõ arå  doing®  Thió optionó  onlù haó tï bå useä afteò usinç thå transfeò prograí  oò afteò  usinç thå changå program®  Thió optioî wilì uså thå inpuô descriptioî  tï  recalculatå  alì thå recordó  iî  á  file®  Foò example¬  iæ  yoõ  transfeò  youò accountinç  entrieó  froí  thå journaì tï thå accounô summary¬  thå balancå fielä maù bå ouô  oæ balance® Thió optioî wilì gï througè alì thå recordó iî thå filå anä  recalculatå thå balancå iî eacè file®  Thió optioî wilì noô recalculatå taø informatioî (inpuô optioî 6© noò wilì iô geô datá froí anotheò filå (inpuô optioî 2)® Š***********************ª SCAÎ PROGRAÍ ************************* Thå scaî prograí scanó thå recordó lookinç foò recordó  thaô meeô  conditionó thaô yoõ specify®  Foò examplå yoõ maù wanô  tï scaî  youò customeò recordó readinç onlù thå recordó iî whicè thå customeò ordereä oveò $1,00° oæ goodó iî thå pasô year® Thå scaî prograí alsï haó thå optionó tï suí thå fieldó  anä suí witè subtotaló bù anotheò field. Thå  computeò  wilì  sho÷  yoõ eacè fielä anä  asë  yoõ  whaô conditioî  yoõ  wanô  foò  thå  field®   Thå  optionó  arå  selæ explanatorù anä arå listeä belo÷ : - equaló á certaiî value oò equaló onå oæ severaì multiplå values - greateò thaî á valuå yoõ specifù - lesó thaî á valuå yoõ specify - betweeî twï valueó yoõ specify - anù valuå ió acceptable Iæ  yoõ  specifù  á  conditioî foò thå  fielä  tï  meeô  thå computeò wilì theî asë yoõ iæ yoõ wanô thå conditioî tï bå : 1® Logicaì Anä 2® Logicaì Or Foò examplå yoõ maù wanô tï prinô ouô thå recorä oæ alì youò customeró  whï havå ordereä oveò $1000.0° wortè oæ  widgetó  froí yoõ ANÄ havå ordereä anù merchandiså withiî thå pasô month. Oî  thå otheò hand¬  yoõ maù wanô tï prinô ouô thå recorä oæ alì customeró whï havå ordereä oveò $1000.0° wortè oæ widgetó  OÒ whï  havå ordereä anù merchandiså withiî thå pasô month®  Iî  thå logicaì ANÄ botè conditionó musô bå met®  Iî thå logicaì OÒ onlù onå conditioî haó tï bå meeô foò thå recorä tï bå accepted®  Thå resô oæ thå optioî ió selæ explainatory. **********************ª CHANGÅ PROGRAÍ ************************ Thå  changå prograí ió similaò tï thå "SCAN¢  program®  Thå differencå  ió thaô thå changå prograí wilì changå thå valueó  oæ thå  fieldó  thaô yoõ specify®  Yoõ wilì bå ablå tï specifù  thå samå  conditonó thaô yoõ specifù iî thå scaî program®  Yoõ  wilì theî bå ablå tï changå eacè recorä thaô meetó thå conditionó  yoõ specify®  Foò eacè fielä iî thå file¬  thå computeò wilì asë yoõ whaô typå oæ changå yoõ wanô bù givinç yoõ thå followinç options: 1® Nï change. 2® Seô thå fielä equaì tï á constant. 3® Adä á constanô tï olä field'ó valuå (uså á negativå tï subtract). 4® Multiplù thå olä valuå bù á constant. 5®  Adä  á  constanô  tï  á differenô fieldó  valuå  (uså  á negativå tï subtract). 6® Multiplù á differenô fieldó valuå bù á constant. Foò example¬  iæ yoõ wanteä tï raiså alì youò priceó bù  10¥ Šyoõ coulä uså optioî #´ tï multiplù thå pricå fielä bù 1.± ®  Iæ yoõ  wanteä tï seô alì youò priceó tï 200¥ oæ youò cosô yoõ coulä uså  optioî #¶ tï multiplù youò cosô fielä bù ² tï generatå  youò pricå  field®  Iæ  yoõ  onlù wanteä tï changeó  youò  priceó  iî departmenô  #5¬  theî  yoõ coulä specifù thaô yoõ  onlù  wanô  tï changå thå pricå iî thaô department. **ª ALWAYÓ MAKÅ Á BACKUÐ COPÙ BEFORÅ RUNNINÇ THIÓ PROGRAÍ *** CREATINÇ SUBFILEÓ Yoõ  caî  makå  á copù oæ thå changeä filå  oî  á  differenô drive®  Yoõ  caî  alsï makå á copù oæ alì thå recordó thaô  meeô certaiî  conditions®  Yoõ  caî  specifù  "NÏ  CHANGE¢  foò  eacè variablå  iæ  yoõ onlù wanô tï makå á copù oæ recordó  thaô  meeô certaiî conditions® DELETINÇ RECORDS Iô ió usuallù noô advisablå tï deletå recordó unlesó iô  ió absolutelù  necessary®  Iô  ió  possiblå  tï  overwritå  recordó insteaä oæ deletinç records®  Yoõ caî deletå recordó bù changinç thå valuå oæ onå fielä tï itó maximuí anä theî usinç thå "CHANGE¢ prograí  tï  copù alì valueó lesó theî thå maximuí  tï  á  seconä file®  Foò  examplå iæ yoõ havå á customeò lisô anä yoõ wanô  tï deletå  somå inactivå customeró yoõ coulä changå theiò zið  codeó tï 9999¹ theî uså thå "CHANGE¢ prograí tï copù alì zið codeó lesó thaî 9999¹ tï á seconä file® ***********************ª SORÔ PROGRAÍ ************************* Sortinç  fileó ió aî extremelù valuablå tool®  Fileó maù  bå sorteä bù morå theî onå variable®  Foò examplå tï sorô á filå bù datå yoõ wilì probablù havå tï sorô thå filå bù thå montè theî bù thå day® Thå sorô optioî caî sorô á fileó bù uð tï threå fields. Wheî  sortinç oî ² oò ³ numeriã fields¬  thå sorô prograí maù noô sorô  properlù iæ thå valueó oæ thå fieldó diffeò bù morå thå  µ orderó oæ magnitude® Thå   sorô  optioî  wilì  alsï  sorô  strinç  variableó   iî alphabeticaì  order®  Foò alphabeticaì sortó á filå maù onlù  bå sorteä bù onå variable® Thå sorô optioî createó á seconä sorteä filå oî thå  floppù disë  drive®  Thå originaì filå oî thå firsô floppù disë ió  noô changed® Thå  Sorô optioî maù takå á fe÷ minuteó wheî  sortinç  fileó oveò  1,00° records®  Usinç thå compileä versioî wilì reducå  thå sortinç  timå  bù 75¥ tï 90%®  Iæ yoõ arå usinç á computeò  thaô doeó  noô  havå twï disë driveó yoõ cannoô uså thå  sorô  prograí withouô extensivå modificationó tï thå sorô program. ******************ª PRINÔ (form© PROGRAÍ ******************** Alì yoõ havå tï dï ió choså whicè forí tï print® Theî choså whicè  recorä  tï  starô printinç thå formó aô  anä  choså  whicè Šrecorä  tï  stoð  printinç thå formó at®  Eacè forí  ió  jusô  á selectivå printinç ouô oæ thå recordó iî á file. *********************ª TRANSFEÒ PROGRAÍ *********************** Thå transfeò prograí ió useä tï transfeò datá froí onå  filå tï another. DÏ  NOÔ  USÅ THIÓ PROGRAÍ OÎ YOUÒ FILEÓ UNLESÓ YOÕ KNO× WHAÔ  YOÕ ARÅ DOING® Usinç thå transfeò prograí ió ratheò simple®  Alì yoõ  havå tï  dï  ió enteò whicè transfeò yoõ want¬  thå  startinç  recorä numbeò tï transfeò anä thå lasô recorä numbeò tï transfer. ***********************ª ASCIÉ PROGRAÍ ************************ Thå  "ASCII¢ prograí ió useä tï converô thå datá fileó  thaô yoõ  enteò  froí  thå basiã randoí accesó forí tï  aî  sequentiaì ASCIÉ  form®  Iî  thå basiã randoí accesó filå thå  numberó  arå storeä  iî  á condenseä binarù forí whicè saveó spacå buô ió  noô readablå  bù  otheò  programs®  Thió prograí  wilì  converô  thå recordó  yoõ  specifù intï sequentiaì forí  witè  thå  followinç formaô : "Johî Doå ",23´ ¬ 12³ ¬ 3.4µ Alì  stringó  wilì bå surroundeä bù quotes®  Comaó  arå  placeä betweeî fields® Aô thå enä oæ eacè recorä therå wilì bå thå linå feeä  anä carriagå returî ASCIÉ code®  Thå targeô filå wilì havå thå namå "ASCIDATA"® Thå  computeò wilì asë yoõ whicè recorä numbeò yoõ  wanô  tï starô  convertinç datá at®  Nexô thå computeò wilì asë yoõ whicè recorä  numbeò  yoõ wanô tï enä convertinç  datá  at®  Nexô  thå computeò  wilì  converô  theså recordó tï thå  ASCIÉ  form®  Thå computeò wilì theî agaiî asë yoõ whicè recorä numbeò yoõ wanô  tï starô  convertinç  datá  at®   Enteò  zerï  wheî  yoõ  arå  donå convertinç  data®  Foò  examplå  yoõ maù onlù  wanô  tï  converô recorä  numberó 1° througè 2° anä 3° througè 5° tï uså iî á  worä processinç program® Yoõ  maù  wanô tï uså thió prograí tï uså somå recordó oî  á worä  processor®  Yoõ caî mergå thå "ASCIDATA¢ filå witè onå  oæ youò  texô  fileó  iæ  thió optioî  ió  availablå  oî  youò  worä processor®  Manù  otheò commerciaì programó sucè aó Mailstaò uså datá iî thå sequentiaì ASCIÉ form® TESTASCÉ PROGRAÍ Thå TESTASCÉ prograí ió á verù shorô program®  Alì iô  doeó ió  reaä  thå "ASCIDATA¢ datá filå thaô waó createä bù thå  abovå prograí anä showó thå filå oî thå screen®  Yoõ shoulä uså  thió prograí  tï  makå surå yoõ converteä thå correcô recordó  iî  thå abovå program. Š CUSTOÍ PROGRAMS Thå  "Custoí Programó arå useä tï customizå thå  files¬  thå forms¬  thå transfeò options¬  thå screens¬ seô thå limits® Theså programó  shoulä onlù bå useä bù personó authorizeä tï seô anä oò changå  anù oæ thå filå descriptions¬  formó oò transfeò  optionó etc®  Obviouslù thå peoplå whï dï noô uså theså programó dï  noô havå  tï  learî ho÷ tï uså them®  Thió cutó dowî greatlù oî  thå timå iô takeó tï traiî personnel. ***********************ª CFORÍ PROGRAÍ ************************ Thå  forí  definitioî  programó arå useä  tï  enteò  á  forí description®  Thå  forí  definitioî prograí ió divideä intï  twï majoò partó º 1® Enteò á ne÷ form 2® Reaä á forí description witè - corrections/changå description - prinô forí descriptioî oî paper Beforå enterinç á ne÷ forí yoõ shoulä figurå ouô thå  layouô oæ  youò form®  Decidå ho÷ manù lineó yoõ neeä foò thå forí  anä ho÷ manù columnó oveò thå differenô entrieó oî eacè linå wilì be. Aî entrù oî á forí maù bå eitheò : 1® Á strinç oò numeriã constant 2® Copieä froí thå file 3® Thå valuå correspondinç tï á key 4® Blank Eacè forí correspondó tï onå recorä iî á file® ***********************ª CFILÅ PROGRAÍ ************************ Thå  filå definitioî programó arå useä tï enteò anä reaä thå filå descriptions® Thå optionó oî thå initiaì menõ arå : 1® Enteò á filå description 2® Reaä á singlå filå description 3® Reaä alì thå filå descriptions 4® Prinô oî papeò onå filå description 5® Prinô oî papeò alì thå filå descriptions Tï enteò á filå descriptioî thå computeò wilì asë yoõ foò 1®  Thå  filå namå - Musô bå ¸ characteró  oò  less¬  nï spaces® Thå firsô  characteò musô bå á letter® Thå computeò will noô accepô aî invaliä filå namå iô  wilì  asë  foò  anotheò  name® 2® Thå numbeò oæ fieldó iî eacè recorä - ± tï 28 3® Foò eacè fielä thå computeò wilì asë yoõ : A® Ió thå fielä á numbeò oò string? Iæ  yoõ  answeò á numbeò thå computeò wilì  theî                  asë yoõ iæ thå numbeò ió : a© aî integeò - maù bå declareä á keù tï á list b© singlå precisioî - ¶ digitó accuracy c© doublå precisioî - 1¶ digitó accuracù d© dollaò anä centó amount Š Iæ  yoõ answeò á strinç theî thå  computeò  wilì asë yoõ whaô ió thå maximuí lengtè oæ thå string Wheî yoõ enteò á ne÷ filå thå prograí automaticallù º 1® Setó thå inpuô optioî foò eacè filå tï ± foò operatoò entrù anä setó thå prompô tï thå nulì string. 2® Setó thå limitó flaç tï "nï limits". 3® Setó thå thå screeî flaç tï "nï custoí screen". 4® Setó thå realtimå flaç tï "nï realtimå transfer". Oncå yoõ seô uð á filå usinç thå CFILÅ prograí yoõ maù starô usinç  thå file®  Usinç thå CSCREEN¬  CLIMITS¬  CINPUÔ anä CREAÌ programó ió optional® Dï  noô changå oò overwritå thå KEYLISÔ oò thå  TAXSCÈ  filå unlesó yoõ kno÷ whaô yoõ arå doing. **********************ª CINPUÔ PROGRAMÓ *********************** Thå  inpuô descriptioî programó arå useä tï seô uð thå  ne÷ datá  entrù iî thå maiî program®  Foò example¬  yoõ maù wanô  tï declarå  thaô  onå  fielä ió equaì tï thå producô  oæ  twï  otheò fields® Thå threå optionó oî thå initiaì menõ arå : 1® Enteò á ne÷ inpuô description. 2® Reaä á inpuô description. 3® Prinô oî papeò á inpuô description. Tï  enteò á ne÷ inpuô descriptioî thå computeò wilì asë  yoõ whicè  filå  yoõ  wanô tï customize®  Theî foò eacè fielä  iî  á recorä  oæ thå filå thå computeò wilì asë yoõ whaô typå oæ  inpuô yoõ wanô foò thå fielä anä wilì givå yoõ thå followinç options. 1® OPERATOÒ ENTRY Thå computeò operatoò wilì enteò thå numbeò oò strinç aô thå keyboard®  Yoõ wilì bå askeä tï givå á prompt®  Thå prompô wilì bå displayeä durinç thå maiî prograí wheî thå inpuô ió  required® Thå  fielä namå ió alsï displayeä wheî thå inpuô ió requireä sï yoõ  dï noô havå tï duplicatå thå fielä namå iî thå  prompt®  Foò examplå  iæ  yoõ havå á fielä witè á namå "Worë Center¢  yoõ  maù wanô tï havå á prompô witè somethinç likå : "± - saleó 2-accountinç 3-shippinç 4-officå 5-legaì 6-R&Ä " sï thaô thå operatoò wilì noô becomå confused. 2® GEÔ FROÍ ANOTHEÒ FILE Thå  valuå oæ thå fielä wilì bå obtaineä froí anotheò  file® Thå  computeò  wilì asë yoõ froí whicè filå yoõ wanô tï  geô  thå data®  YOÕ  MAÙ ONLÙ GEÔ DATÁ FROÍ ONÅ FILÅ ®  Yoõ maù noô  geô datá  froí thå payrolì filå foò fielä ± anä theî trù tï geô  datá froí  thå inventorù filå foò fielä 2®  Bù efficientlù  designinç youò fileó sï thaô onå filå caî obtaiî alì thå datá iô needó froí ONÅ  otheò  filå yoõ wilì greatlù simplifù youò  datá  managemenô task® (Iæ yoõ musô geô datá froí morå theî onå filå yoõ caî writå youò owî custoí inpuô subroutine.) Š Thå computeò wilì asë yoõ a© froí whicè filå yoõ wanô thå data® b© froí whicè fielä yoõ wanô thå data® c© whicè fielä oæ currenô entrù ió equaì tï thå  recorä numbeò froí whicè yoõ wanô thå data®  Foò example¬ iî enterinç á recorä  iî  thå  paychecë  filå thå firsô  entrù  shoulä  bå  thå employeå number® Theî thå employeå numbeò shoulä bå equaì tï thå recorä  numbeò iî thå employeå filå wherå yoõ wanô tï obtaiî somå morå datá froí (likå hió paù ratå anä deductions). 3® ADÄ SEVERAÌ PREVIOUÓ FIELDS 4® SUBTRACÔ TWÏ PREVIOUÓ FIELDS 5® MULTIPLÙ TWÏ PREVIOUÓ FIELDS 13® DIVIDÅ TWÏ PREVIOUÓ FIELDS Yoõ maù onlù perforí theså operationó oî loweò numbeò fieldó iî thå samå recorä numbeò thaô havå alreadù beeî  computed®  Thå computeò  wilì  noô  leô yoõ perforí anù oæ theså  operationó  oî stringó (Yoõ cannoô adä letters). 8® MAXIMUÍ OÆ PREVIOUÓ FIELDS 9® MINIMUÍ OÆ PREVIOUÓ FIELDS Yoõ  maù  onlù  perforí theså operationó  oî  loweò  numbeò fieldó  iî thå samå recorä numbeò thaô havå alreadù beeî  entereä oò  computed®  Yoõ  maù comparå ² tï µ  differenô  fields®  Thå computeò wilì asë yoõ whicè fieldó yoõ wanô tï compare. 7.CONSTANT Thå  fielä  ió alwayó equaì tï thå samå  number®  Yoõ  wilì probablù  onlù  neeä tï uså á constanô wheî lateò usinç onå  oæ thå arithmetiã typeó oæ input®  Foò examplå whilå computinç youò taxeó  yoõ maù wanô thå computeò tï automaticallù  multiplù  youò neô  incomå  bù .09³ tï paù youò selæ  employmenô  taxes®  Yoõ coulä   firsô  enteò  thå  constanô  .09³  intï  á  fielä  beforå multiplying. 10.MULTIPLÙ BÙ Á CONSTANT 11.ADÄ Á CONSTANT 12.SUBTRACÔ Á CONSTANÔ FROÍ Á PREVIOUÓ FIELD Theså optionó asë yoõ tï enteò á constanô whicè wilì bå useä tï perforí onå oæ thå abovå operations®  Foò example¬ iî thå taø listeä  abovå  yoõ coulä jusô uså thå optioî #1° "multiplù  bù  á constant¢  ratheò  theî lettinç thå constanô takå uð á  fielä  iî youò file. 6.COMPUTÅ USINÇ TAØ TABLES Thió  optioî  allowó yoõ tï computå mosô  taxes®  Thå  taø tableó  arå  containeä  iî thå filå  "TAXSCH¢  anä  containó  thå followinç fieldsº Š 1© DESCRIPTIOÎ - Doeó noô affecô anù oæ thå calculations iô ió jusô useä tï keeð itó descriptioî tï enablå yoõ tï remembeò whicè taø tablå iô ió parô of. 2)FEÄ OÒ STATÅ NUMBEÒ - Yoõ maù wanô tï keeð thå taø tableó foò thå Federaì Taø anä onå oò morå states®  Leô thå Federaì taø havå numbeò 1¬ anä thå statå taø tableó havå numbeò 2,3,... 3)PAÙ  PERIOÄ NUMBEÒ - Iæ yoõ uså morå thaî  onå  payrolì period¬ sucè aó weeklù foò somå employeeó anä monthlù foò others¬ yoõ wilì neeä tï uså twï withholdinç taø schedules®  Foò examplå numbeò  thå  weeklù paù perioä numbeò 1¬  thå monthlù paù  perioä numbeò ² .... 4)MARRIED/SINGLÅ - ± ½ singlå ¬  ² ½ marrieä ,Yoõ maù  wanô tï  uså ³ ½ unmarrieä heaä oæ householä iæ yoõ livå iî Californiá oò somå otheò statå thaô haó differenô taø tables 5)MINIMUÍ FOÒ RATÅ - Thió ió thå dollaò amounô thaô onå musô earî iî thå payrolì perioä tï havå thió taø ratå applù . 6)MAXIMUÍ FOÒ RATÅ - Thió ió thå highesô dollaò amounô  thaô onå caî earî whilå stilì remaininç iî thió brackeô 7)TAX¤  - Thió ió thå baså dollaò amounô iî taxeó onå  wilì havå tï paù 8)PLUÓ  - Onå  wilì alsï havå tï paù thå taø ratå  oî  anù earningó oveò thå nexô field®  ENTEÒ THIÓ FIELÄ AÓ Á DECIMAÌ NOÔ Á PERCENTAGÅ OÒ YOUÒ CALCULATIONÓ WILÌ BÅ 10° TIMEÓ OFF 9)OVEÒ  THIÓ AMOUNÔ - Onå wilì havå tï paù thå taø ratå oî anù earningó oveò thió amount®  Thió amounô ió usuallù thå  samå aó thå minimuí foò thå rate. Tï  enteò  thå thå taø tablå uså thå MAIÎ prograí tï  accesó thå  filå "TAXSCH¢ ®  Yoõ wilì neeä tï enteò aî entirå recorä  iî thå filå "TAXSCH¢ foò eacè linå oæ thå taø table. Foò example¬ á statå taø tablå maù looë like: WEEKLÙ PAÙ PERIOD SINGLÅ Minimuí tï Maximuí Taø ió Pluó ¥ Oveò thió $ ---------------------------------------------------------- $° $2¸ ° ° 0 $28.0± $5¹ ° 3¥ $28 $59.0±     $12°     $1.7·     4¥     $6° $120.0± nï limiô $4.1· 5¥ $120 Tï enteò thió datá intï thå "TAXSCH¢ filå yoõ musô enteò á recorä foò eacè linå oæ thå taø table®  Foò examplå thå fourtè linå  oæ thå taø tablå woulä bå entereä intï anù recorä iî thå "TAXSCH¢ aó 1© DESCRIPTIOÎ - state/weekly/single 2© FEÄ OÒ STATÅ NUMBER- 2 Š 3© PAÙ PERIOÄ NUMBEÒ - 1 4© MARRIEÄ SINGLÅ - 1 5© MINIMUÍ FOÒ RATÅ - $120.01 6© MAXIMUÍ FOÒ RATÅ - $999,999.0° ***ª NOTÅ enteò 999,999 7© TAØ ¤ - $4.1· - noô "nï limit" 8© PLUÓ - .0µ ***ª NOTÅ ENTEÒ DECIMAÌ NOÔ % 9© OVEÒ THIÓ AMOUNÔ - $120 Iô doeó noô matteò whaô recorä numbeò thå datá ió storeä iî aó thå computeò searcheó thå entirå "TAXSCH¢ filå lookinç tï foò thå righô taø rate® Iî  thå Inpuô Descriptioî Prograí thå computeò wilì asë yoõ whicè fielä ió thå a© Feä oò Statå Number b© Paù Perioä Number c© Married/Single d© Paù beforå tax. Thå  abovå  datá musô bå iî thå loweò numbeò  fieldó  iî  thå file®  Thå  "computå  tax¢ optioî wilì returî thå "tax¢ noô  thå "paù afteò tax"® Subtracô "tax¢ froí "paù beforå tax¢ tï computå "paù  afteò tax"®  Alsï remembeò tï figurå iî anù allowancå  foò deductioî anä oò taø credits. 14® - 19® CUSTOÍ INPUÔ OPTIONS Inpuô  optionó  numbeò 1´ througè 1¹ arå provideä  foò  youò customization®  Iæ yoõ uså theså options¬ yoõ musô writå youò owî subroutinå tï computå thå fieldó value®  Reaä thå sectioî oî ho÷ tï writå programó usinç thå datá baså beforå yoõ uså thió option® Inpuô   optioî  numberó  14,15,16,17,18,1¹  corresponä  tï   thå subroutineó      thaô     yoõ     maù     writå     oî      lineó 53000,54000,55000,56000,5700° anä 5800° respectfullù iî thå  MAIÎ program. NOTÅ OÎ CORRECÔ Á RECORÄ OPTIOÎ º Iæ  yoõ definå inpuô optionó otheò theî operatoò entrù theî eacè  timå yoõ correcô á recorä iî thå maiî prograí thå  computeò wilì recalculatå thå valueó iî thå record®  Iî thå  recalculatioî afteò  thå  "correcô á record¢ ió executeä thå computeò wilì  noô geô thå datá froí anotheò filå noò wilì iô recalculatå anù  taxeó unlesó yoõ changå thå maiî prograí aô lineó 4600° - ® ********************** CTRANSFER PROGRAM ********************** Thå  transfeò  descriptioî  prograí  ió  useä  tï  customizå transferó  betweeî  files®   Therå  arå  threå  maiî  typeó   oæ transfers: 1®  Direcô  transfeò froí onå fielä iî onå filå tï anotheò fielä  iî á differenô file®  Thå datá froí thå sourcå filå  maù eitheò º a© replace b© addeä tï thå targeô field c© subtracteä froí thå targeô field. Š 2®  Thå  sumó  oæ  fieldó  iî thå  sourcå  fielä  maù  bå transferreä tï thå targeô file. 3®  Thå subtotaló oæ fieldó iî thå sourcå fielä maù  bå transferreä tï thå targeô file®  Thå subtotaló maù bå transferreä tï anù filå oò fielä howeveò thå recorä numbeò ió fixeä tï bå thå valuå  oæ thå fielä thå fieldó werå subtotaleä on®  Foò example¬ thå  subtotaì  oæ  wageó  paiä tï  employeå  numbeò  1°  wilì  bå transferreä  tï  recorä  numbeò 10®  Thå subtotaló  oæ  employeå numbeò 1± wilì bå transfereä tï recorä numbeò 11. Thå Sourcå filå ió thå filå thå datá ió originallù in®  Thå targeô  filå  ió thå filå wherå thå thå datá ió  transferreä  to® Thå sourcå filå ió noô changeä bù anù transfeò operation®  Iô ió stronglù adviseä tï makå á backuð copù oæ thå targeô filå  beforå transferrinç data. **********************ª CLIMITÓ PROGRAÍ *********************** Thå  CLIMITÓ  prograí  ió useä tï seô  maximuí  anä  minimuí limitó  foò thå numericaì fields®  Yoõ caî alsï uså thió prograí tï turî thå limitó checë oî anä off® Tï enteò limitó foò á file¬ yoõ  musô  firsô turî thå limitó checë tï oî anä theî  enteò  thå limitó foò eacè fielä iî thå file®  Foò example¬ yoõ maù wanô tï seô thå limitó oî aî employeå numbeò fielä tï á minimuî oæ ±  anä á  maximuí oæ 2¶ iæ yoõ onlù havå 2¶ employees®  Durinç thå maiî prograí iæ someonå enteró á numbeò lesó theî ± oò greateò theî 2¶ youò computeò wilì buzú twice® Thå limitó checë wilì noô prevenô thå  entrù  oæ thå numbeò iô wilì onlù buzz®  Sincå  thå  limitó checë wilì onlù buzú anä noô prevenô thå entrù iô ió possiblå  tï seô  thå limitó closeò together®  Foò examplå oî aî employeå paù fielä  yoõ  maù wanô tï seô thå limitó tï $9.9¹ tï  $999.9¹  eveî thougè  oncå iî á whilå someonå ió paiä lesó theî $9.9¹  oò  morå theî $999.99® Bù settinç thå limitó closå togetheò yoõ wilì picë ouô  anù mistakeó causeä bù leavinç ouô á digiô oò addinç á digiô bù  mistakå oò bù puttinç thå decimaì poinô iî thå  wronç  space® Foò  examplå enterinç $1256.· insteaä oæ $125.6· ®  Iô ió alwayó possiblå tï uså thå scaî prograí tï looë foò extremå valueó  thaô shoulä noô bå iî youò file. *********************** CSCREEN PROGRAM ********************** Thå  screeî  descriptioî prograí ió useä tï seô uð ho÷  eacè recorä iî thå filå wilì bå displayeä oî thå screen® Thå toð linå oæ  eacè screeî ió reserveä foò thå filå namå anä recorä  number® Lineó  20-2µ  arå  reserveä foò thå  optionó  menu¬  datá  entry¬ correctionó, etc®  Yoõ  may onlù uså lineó ² thougè 19  foò  thå screen®  Eacè screeî descriptioî consistó oæ 1¸ "overlays¢ lineó anä  foò  eacè  fielä  thå  linå anä columî wherå  iô  ió  tï  bå displayed®  Thå overlaù lineó arå printeä oî thå screeî oî lineó ²  tï  19®  Theî  eacè fielä ió placeä oî thå screeî  aó  iô  ió entereä oò read® Aî examplå oæ á screeî ió belo÷ : *********** FILE : ACCOUNTS RECORD NUMBER : 12 ************* (1) DAY: 1 (2) MONTH: 11 (3) YEAR: 83 (4) DESCRIPTION: SALE OF EQUIPMENT , TRACTOR Š (5)ACCOUNT # (6)ACCOUNT NAME (7)CREDIT (8)DEBIT 20 SALES $0.00 $2500.00 30 CASH $2500.00 $0.00 ************************************************************** Youò  screeî wilì bå 8° columnó widå whereaó thió manuaì  ió onlù  6µ  columnó wide®  Iô ió stronglù advisablå tï  lisô  eacè fielä  numbeò  iî  thå overlaù becauså yoõ wilì  neeä  thå  fielä numbeò tï changå oò correcô eacè field'ó entry®  Iô ió suggesteä thaô yoõ lisô eacè fielä numbeò iî (© oò [Ý tï avoiä confusion. Thå  computeò wilì asë yoõ foò thå 1¸ overlaù lines®  Then¬ foò  eacè fielä thå computeò wilì asë yoõ whicè linå  anä  columî thå  entrù  ió  in®  Thå computeò wilì asë yoõ iæ yoõ  wanô  anù repeatinç fieldó oò subrecords®  Iæ yoõ arå goinç tï seô uð  thå repeatinç  fieldó yoõ musô seô theí uð oî thå samå line®  Iî thå abovå examplå thå accounô number¬  accounô name¬ debiô anä crediô arå  thå  repeatinç  fields®  Durinç thå "enteò  á  ne÷  record¢ portioî oæ thå Maiî prograí iæ á subrecorä witè repeatinç  fieldó ió  entereä  thå computeò wilì sho÷ anù repeatinç fieldó  oî  thå nexô linå down® Iæ yoõ specifù anù sumó foò thå repeatinç fieldó theî thå sumó wilì bå showî oî linå 19®  Thå sumó arå noô storeä iî  memory®  Theù arå recalculateä eacè timå alì thå  subrecordó arå shown. ************************ CREAL PROGRAM ************************ Thå  CREAÌ prograí filå ió useä tï seô uð realtimå transferó betweeî thå files®  Yoõ maù specifù á realtimå transfeò foò ± oò ² oæ thå fieldó iî thå sourcå file® Yoõ maù transfeò eacè oæ thå fieldó tï eitheò onå oò twï fieldó iî thå targeô file®  Yoõ  maù either add or subtract each field to its target file. Iî  ouò  samplå  filå "JOURNAL¢ wå havå seô  uð  á  realtimå transfer®  Thå fieldó DEBIÔ ¤ anä CREDIÔ ¤ arå transfereä tï thå "ACTSUM¢  file®  Thå recorä numbeò oæ "ACTSUM¢ filå ió equaì  tï thå accouô numbeò iî thå JOURNAÌ file®  Thå fielä "CREDIÔ ¤ ¢ ió addeä  tï  thå  "CREDIÔ  TOTAL¢ anä  subtracteä  froí  thå  fielä "BALANCE¢ iî thå "ACTSUM¢ file®  Thå fielä "DEBIÔ $¢ ió addeä tï thå "BALANCÅ TOTAL¢ iî thå "ACTSUM¢ filå anä ió alsï addeä tï thå "BALANCE¢ iî thå samå field. Tï  enteò  á realtimå descriptioî foò á filå yoõ musô  firsô seô   thå  realtimå  switcè  tï  YES¬   theî  enteò  á   realtimå description®  Iî  enterinç á realtimå descriptioî  thå  computeò 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å yoõ wanô tï transfeò thå data¬ anä iæ yoõ wanô tï adä oò subtracô thå sourcå fielä froí thå targeô field. Iæ yoõ seô uð á realtimå transfer¬ wheneveò yoõ enteò á ne÷ entrù  usinç thå maiî prograí thå computeò wilì transfeò thå datá tï thå targeô file®  Iæ yoõ oveò writå á previouó recorä  numbeò thå computeò wilì automaticallù correcô thå targeô realtimå filå bù erasinç thå olä valuå froí thå targeô file®  Iæ yoõ changå oò correcô  thå  sourcå filå thå realtimå targeô filå wilì  alsï  bå corrected®  Eveî iæ yoõ changå thå fielä iî thå sourcå filå thaô pointó  tï thå recorä numbeò iî thå seconä filå thå computeò wilì eraså  thå  transfeò  tï thå incorrecô  recorä  numbeò  anä  theî transfeò thå datá tï thå correcô recorä number. Iæ  yoõ  seô uð realtimå transfeò yoõ shoulä alsï seô  uð  á regulaò  transfeò  tï check/correcô thå datá iî thå targeô  file® Transferinç datá betweeî twï fileó ió onå oæ thå mosô erroò pronå areaó iî computeò programming® Iæ thå computeò crasheó afteò thå recorä  ió  writteî oî thå sourcå filå anä beforå thå  recorä  ió writteî oî thå targeô filå youò datá wilì bå incorrect® Yoõ  caî  alwayó uså thå changå prograí tï  seô  thå  targeô fieldó  tï  zerï anä theî uså á regulaò transfeò tï  correcô  thå targeô  filå  foò  anù erroò thaô maù havå crepô iî  durinç  thå realtimå transfers. Iî  settinç  uð thå realtimå transfer¬  thå pointeò  tï  thå targeô  recorä  numbeò  musô  bå  aî  integeò  anä  thå   recordó transfereä  musô  bå eitheò doublå precisioî oò dollaò anä  centó amounts®  Alsï iæ yoõ arå goinç tï subtracô durinç thå  realtimå transfeò seô uð thå subtractioî aó thå seconä oæ thå transfers® APPLICATIONS Ouò entirå systeí waó designeä froí thå grounä uð tï  handlå accounting¬  payrolì accounting¬  inventory¬ accountó receivablå anä accountó payable®  Bù usinç onå systeí tï handlå alì oæ youò businesó  applicatioîs yoõ savå oî traininç time®  Somå  oæ  thå suggesteä applicationó arå listeä below. ACCOUNTING Onå  possibilitù  ió  tï  seô uð á journaì  filå  witè  thå followinç fieldó : FIELD 1 : Transaction Number FIELD 2 : Month FIELD 3 : Day FIELD 4 : Transaction Explanation FIELD 5 : Account Number FIELD 6 : Debit $ Amount } use only field 6 or 7 FIELD 7 : Credit $ Amount } FIELD 8 : Cost Center ****** optional ******* Thå drawbacë tï thió methoä ió thaô yoõ havå tï enteò thå twï oò morå recordó foò eacè transaction®  Howeveò bù usinç thå "=¢ anä thå  "^¢  iî  thå  ne÷ entrù optioî yoõ  caî  easilù  enteò  thå repetitiouó  fields®  Firsô yoõ havå tï enteò á recorä foò thå Šdebiô account®  Theî yoõ enteò á recorä foò thå crediô  account® Yoõ maù enteò morå theî ² accountó foò á singlå transactioî whicè ió  onå  oæ  thå  advantageó oæ storinç  youò  datá  in  separatå records®  Seô uð thå accounô number¬  accounô name¬  debiô ¤ anä crediô  ¤ aó repeatinç fields®  Yoõ maù wanô tï havå thå debiô ¤ anä crediô ¤ summeä tï prevenô entrù errors. Iæ  yoõ sorô thå Journaì filå bù thå Accounô Numbeò yoõ wilì havå jusô createä á ledger®  Thió closå relationshið betweeî thå journaì   anä   thå  ledgeò  makeó  "posting¢   mistakeó   almosô impossible® Yoõ maù uså eitheò á transfeò optioî oò thå scaî prograí  tï adä tï thå totaló foò eacè account® Yoõ maù wanô tï uså á custoí transfeò tï transfeò thå sumó foò eacè filå tï aî "ACCOUNTS¢ filå witè thå formaô : FIELD 1: Account Name FIELD 2: Debit total FIELD 3: Credit Total FIELD 4: Balance Iæ thå bookó arå ouô oæ balancå yoõ caî uså thå scaî prograí tï  adä thå debitó anä creditó oæ alì thå transactions®  Iæ  thå totaì   debitó  doeó  noô  equaì  thå  totaì  creditó  foò   eacè transaction¬ theî therå ió á mistakå iî enterinç thå transaction® Iæ  mosô  oæ youò transactionó affecô onlù twï accountó theî  anù transactioî entrù mistakeó shoulä stanä ouô iî thå journal® Alsï usinç thå "^¢ iî thå maiî prograí wilì minimizå entrù errors. PAYROLL Foò payrolì calculationó iô ió suggesteä thaô yoõ seô uð twï files®  Aî Employeå paù summarù containinç payrolì informatioî oî eacè employeå anä Á paychecë filå containinç thå paychecks. Yoõ maù wanô tï seô uð thå "PAYSUM¢ likå : FIELÄ 1.º Employeå number FIELÄ 2.º Employeå name FIELÄ 3.º Sociaì Securitù Number FIELÄ 4.º Streeô Address FIELÄ 5.º City/State/Zið Code FIELÄ 6.º Hourlù Paù FIELÄ 7.º Statå Taø Numbeò » correspondinç tï taø tablå number FIELÄ 8.º Married/singlå codå number FIELÄ 9.º Fixeä Dollaró Deductions FIELÄ 10º Payrolì Period FIELÄ 11º Totaì Earningó tï Date FIELÄ 12º Federaì Taø withhelä tï Date FIELÄ 13º Statå Taø withhelä tï Date FIELÄ 14º Federaì allowancå foò deductioî peò period FIELÄ 15º Statå allowancå foò deduction FIELÄ 16º ¥ Deductionó iæ anù º Optional Thå paychecë filå coulä bå seô uð somethinç likå : FIELÄ ± :Employeå Number FIELÄ ² :Regulaò houró worked Š FIELÄ ³ :Overtimå houró worked FIELÄ ´ :Regulaò paù ratå -Geô froí abovå file FIELÄ µ :Overtimå paù ratå -1.µ timå regulaò pay FIELÄ ¶ :Regulaò paù -houró workeä Ø rate FIELÄ · :Overtimå paù -houró workeä Ø rate FIELÄ ¸ :Totaì paù beforå taxeó -adä thå ² above FIELÄ ¹ :Singlå Marrieä Codå Numbeò -Geô froí abovå file FIELÄ 10:Statå taø tablå numbeò -Geô froí abovå file FIELÄ 11:Allowancå foò statå deduction-Geô froí abovå file FIELÄ 12:Federaì Taø -Computå usinç taø tables FIELÄ 13:Statå Taø -Computå usinç taø table FIELÄ 14:Paù afteò statå taø -Paù minuó statå tax FIELÄ 15:Paù afteò federaì taø -Abovå fielä minuó feä tax Aó  yoõ caî seå yoõ onlù havå tï enteò thå firsô ³  fields®  Thå resô arå automaticallù computed® Uså thå custoí inpuô prograí tï seô uð thå automatiã calculations. Yoõ  coulä  alsï seô uð thå paychecë filå sï  thaô  thå  operatoò enteró thå beforå taø pay®  Foò salarieä employeeó whï geô thå samå  paù everù weeë yoõ coulä geô theiò paù froí theiò  employeå paù record. INVENTORY Therå   arå  severaì  differenô  wayó  oæ  maintainninç   aî inventory®  Therå arå perpetuaì anä periodiã systems® Therå arå alsï  severaì  differenô  wayó  oæ  figurinç  thå  valuå  oæ  thå inventorù  iî stocë sucè aó FIFO,LIFO¬  loweò oæ cosô oò  market¬ retaiì  method¬  etc®  Iî alì therå arå aô leasô á dozeî possiblå wayó  tï  maintaiî aî inventory®  Belo÷ ió á  simplå  methoä  oæ keepinç tracë oæ youò inventory® Uså  á  singlå filå witè thå followinç fieldsº  FIELÄ ± :iteí number FIELÄ ² :numbeò iî stock FIELÄ ³ :cosô oæ eacè item FIELÄ ´ :totaì cosô - numbeò iî stocë timeó cosô peò item Morå  compleø anä informativå inventorù  managemenô  designó arå available® ACCOUNTÓ RECEIVABLÅ ANÄ ACCOUNTÓ PAYABLE Therå  arå  severaì  differenô wayó oæ storinç  anä  keepinç tracë  oæ  youò  accounô  receivableó  anä  accountó   payable® Accountó  payablå  anä accountó receivableó arå prettù  similar® Thå differencå ió thaô witè accountó receivablå peoplå owå  yoõ moneù whilå witè accountó payablå yoõ owå peoplå money. Thió   manuaì   wilì   onlù  coveò   accountó   receivable® Howeveò  yoõ  shoulä  bå ablå tï seô uð aî  accountó  payablå  iî almosô thå samå format. Yoõ  wilì  probablù wanô tï seô twï files®  Á  masteò  filå containinç º FIELÄ ± º Name Š FIELÄ ² º Streeô Address FIELD 3 : City/State/Zip FIELD 4 : Total amount owed FIELD 5 : Credit limit FIELD 6 : Debitor number and a transaction file containing : FIELD 1 : Debitor number FIELD 2 : Items Bought FIELD 3 : Total Charged FIELD 4 : Date Thå totaì chargeä caî bå addeä tï thå totaì amounô oweä bù  usinç á  custoí  transfer®  Yoõ  coulä enteò anù paymenô  aó  negativå amounô chargeä oò yoõ coulä havå á separatå filå foò  paymentó set up likå thå transactioî file. INITIAL MENUS FOR THE CUSTOM PROGRAMS - CFORM - NEW CUSTOM FORMS - READ A FORM DESCRIPTION with - CORRECTIONS - PRINT ON PAPER - CFILE - ENTER A FILE DESCRIPTION - READ A SINGLE FILE DESCRIPTION - READ ALL FILE DESCRIPTIONS - PRINT ON PAPER ONE FILE - PRINÔ ON PAPER ALL THE FILE DESCRIPTIONS - CTRANSFE - ENTER A TRANSFER DESCRIPTION - READ A TRANSFER DESCRIPTION - PRINÔ A TRANSFER DESCRIPTION - CINPUT - ENTER A NEW INPUT DESCRIPTION - READ A CUSTOM INPUT DESCRIPTION - PRINT A CUSTOM INPUT DESCRIPTION - CSCREEN - ENTER A NEW SCREEN DESCRIPTION - READ A SCREEN DESCRIPTION - PRINT A SCREEN ON PAPER - CORRECT A SCREEN - CLIMITS - READ THE LIMITS SWITCH - PRINT THE LIMITS SWITCH ON PAPER - READ THE LIMITS - PRINT THE LIMITS ON PAPER - ENTER ALL NEW LIMITS FOR A FILE - ENTER NEW LIMITS FOR ONE FIELD - CREAL - READ THE REALTIME SWITCH - PRINT THE REALTIME SWITCH ON PAPER - READ THE REALTIME TRANSFER DATA - PRINT THE REALTIME DATA ON PAPER Š - ENTER REALTIME DATA LIST OF FILES I. Program Files : 1. MAIN 2. FORM 3. TRANSFER 4. SCAN 5. CHANGE 6. SORT 7. ASCII 8. CFILE 9. CINPUT 10.CSCREEN 11. CTRANSFE 12. CFORM 13. CLIMITS 14. CREAL 15. TESTACSI II. Program Data Files 1. FFILE - Contains files specifications 2. TFER - Contains Transfer Specifications 3. FORMLIST - Contains a list of all forms 4. IDATA1, IDATA2, IDATA3,..... - One for each file - contains the input description 5. SCTEST - Contains a list of all files with screens 6. SCREEN1,SCREEN2,SCREEN3 ..... the screen descriptions 7. IDEX - Contains a list of all files with limits 8. MAXMIN1,MAXMIN2,MAXMIN3, ..... the limits for each file 9. REALTIME - Contains the realtime flags for each file 10. REAL1,REAL2 - Contains the realtime data for a file III. Form Data Files : 1. The specifications for each form are each stored on a separate file with the form name being the same as the file name. IV. User Data Files : 1. KEYLIST - The names corresponding to each key 2. TAXSCH - Tax tables 3. All other files you may wish to add DATA ENTRY The prompt for an entry is : >__< or >_______< or >___________________< For integers you may only enter 1,2,3,4,5,6,7,8,9,0, or - For single precision number you may enter : 1,2,3,4,5,6,7,8,9,0,-,+,$,% For double precision numbers you may enter : 1,2,3,4,5,6,7,8,9,0,-,+,$,% ŠFor strings you may enter any number or letter or other character except <,>,= as they are used for control in the new entry. If you try to enter a letter when a number is required the computer will not accept the letter and sound a beep. NEW DATA ENTRY In the new data entry section the characters <,>, and = are used for control. " < " restarts the data entry at the first field. " > " is to escape the data entry process before the last field. " = " sets the current field to the same value that the same field in the last record entered had. ¢ Þ ¢ setó thå currenô fielä tï thå samå valuå  thaô  thå nexô  higheò numbeò fielä  iî  thå  lasô record entered had. This is for use in entering journal entries where the credit amount is equal to the debit amount in the last entry. ENTRY CONTROLS RETURN : Press return when you are done with the entry. CONTROL-Ñ  oò BACKSPACÅ º  Moveó thå cursoò bacë anä  eraseó  thå lasô character. CONTROL-S OR LEFT ARROW : Moves the cursor left. CONTROL-D OR RIGHT ARROW: Moves the cursor right. CONTROL-F OR INSERT : Inserts a space where the cursor is. CONTROL-Á OÒ DELETÅ º  Deleteó thå characteò oò spacå  wherå thå cursoò is. Thió  ió onå oæ thå areaó oæ incompatibilitù  betweeî  basiã languages®  Thå  prograí  readó thå ASCIÉ codå oæ  thå  keyboarä entrieó  anä goeó tï thå subroutinå thaô performó thå  insertion¬ deletion¬  etc® Thió ió iî lineó 14590- 1462° anä 15190-1525° oæ thå MAIÎ program® ****ª DEFAULÔ VALUEÓ ***** Foò alì numbeò thå defaulô valuå ió 1®  Iæ yoõ presó returî withouô  enterinç anù otheò numberó theî thå computeò wilì assumå yoõ wanô thå numbeò one®  Iî manù oæ thå optionó thå numbeò  onå optioî  wilì bå useä thå most®  Bù jusô pressinç returî yoõ wilì bå ablå tï enteò youò informatioî faster®  Iî thå MAIÎ prograí iæ yoõ  presó thå spacå baò theî presó returî thå defaulô valuå  foò numberó changeó tï zero® For all strings the default value is a blank string. FILE EXPLANATION Alì  oæ  youò  datá ió storeä iî  files®  Á  filå  containó records®  Eacè  recorä containó informatioî storeä iî  different fields . A simple example of a file is shown below. FILE : TELEPHONE ŠRECORD # 1 FIELD # 1 FIELD NAME : NAME ENTRY : John Doe FIELD #2 FIELD NAME : TELEPHONE NUMBER ENTRY : 123-4567 RECORD # 2 FIELD # 1 FIELD NAME : NAME ENTRY : John Smith FIELD # 2 FIELD NAME : TELEPHONE NUMBER ENTRY : 345-6789 RECORD #3 FIELD # 1 FIELD NAME : NAME ENTRY : Tom Brown FIELD # 2 FIELD NAME : TELEPHONE NUMBER ENTRY : 333-1111 Yoõ  shoulä  kno÷ thå followinç factó tï geô thå besô uså oæ  anù datá baså systeí : 1. A file may contain any number of records up to the storage limits of your floppy disks. 2®  Eacè  record  containó  thå samå numbeò, type and names of the fields. 3®  Youò informatioî ió storeä iî á fielä whicè ió parô oæ  á record. All the records make up the entire file Therå  arå severaì typeó oæ fields®  Foò morå informatioî seå thå Custoí prograí section®  Iæ yoõ arå ne÷ tï computeró anä dï  noô understanä thå concepô oæ files¬  records¬  anä fieldó wå suggesô readinç á booë oî beginninç basiã programming. SUBRECORDS / REPEATING FIELDS Thå   subrecord/repeatinç  fieldó  optioî  ió  á  methoä  oæ enterinç  severaì  recordó thaô sharå similaò  datá  and/oò  havå repeatinç  fields®  Consideò  thå  examplå showî iî  thå  samplå screen® Doublå entrù accountinç requireó twï oò morå entrieó foò eacè transaction®  Thå datå anä descriptioî staù thå samå  whilå thå  accounô  number¬  accounô  name¬  crediô anä debiô  arå  thå repeatinç  fields®  Aî entirå recorä ió storeä oî thå  disë  foò eacè subrecord®  Yoõ maù specifù thaô sumó oæ eacè subrecordó bå displayed®  Thå  sumó  arå noô storeä iî memory®  Thå sumó  arå recalculateä eacè timå thå subrecordó arå displayed®  Thå  sumó arå  displayeä oî thå nineteentè linå iî thå columî thaô theù arå summeä  from®  Iæ yoõ dï noô understanä thå abovå trù usinç  thå maiî  prograí anä uså thå subrecorä optionó iî enterinç datá  foò filå #1. Š KEYLIST EXPLANATION Aî  integeò fielä maù bå specifieä iî thå CFILÅ prograí aó á keù  tï  á lisô oæ strings®  Iî thå samplå  fileó  thå  employeå numberó arå thå keyó tï thå employee'ó name®  Alsï iî thå samplå files the account numbers are the keys to the account names. Iî  designinç  systemó  iô ió usuallù besô  tï  avoiä  usinç stringó  thaô  arå useä aó pointeró oò iî anù  calculation®  Thå probleí   witè  usinç  stringó  ió  thaô  theù  arå  toï   easilù incorrectly entered. For example the strings : Stephen Anthony Stephen Anthony Stephen Anthony, T Stephen Anthony Stephen T Anthony arå  alì seeî aó differenô peoplå bù thå computer®  Whilå iô  ió possiblå  tï writå programó usinç stringó iô usuallù causeó  morå problems than it is worth. Iô  ió  easieò  tï assigî eacè employeå  á  number®  Iô  ió usuallù  easieò tï enteò á numbeò thaî trù tï typå iî 2° oò  morå letteró  iî thå samå exacô order®  However¬  peoplå recognizå  á namå  easieò thaî theù caî recognizå á number®  Foò examplå iæ á recorä showó á paychecë tï employeå numbeò ± foò $30° yoõ maù noô recalì  whï  employeå numbeò ± is®  Bù  declarinç  thå  employeå numbeò  tï  bå á keù tï á lisô everù timå thå employeå numbeò  ió showî  thå employeeó namå wilì alsï bå shown®  Thå samå ió  truå foò  thå  accounô numbers®  Yoõ caî seå ho÷ thå  keylisô  optioî workó  bù  readinç  á recorä iî thå samplå filå  ±  "JOURNAL¢  oò samplå filå ³ "PAYCHECK". Yoõ  caî  definå youò owî keylist®  Wheî  usinç  thå  CFILÅ prograí tï seô uð youò files¬ yoõ maù declarå aî integeò valuå tï bå  á  keù  tï á list®  Thå keylisô stringó arå storeä  iî  filå numbeò 1° "KEYLIST"® Thå keylisô filå ió seô uð aó : Field 1 : List Number Field 2 : Row Number Field 3 : The Key (the string) Thå  lisô  numbeò  ió  thå lisô numbeò  tï  whicè  thió  keù corresponds®  Thå ro÷ numbeò ió thå numbeò thaô thå integeò  keù musô havå foò thå computeò tï prinô thå string®  Foò example¬ tï enteò  á  keù foò á ne÷ employeå Johî Smitè aó employeå numbeò  ¸ uså  thå  maiî  prograí tï enteò á ne÷  recorä  numbeò  (dï  noô overwritå anù olä recordó unlesó yoõ wanô to© iî thå KEYLISÔ filå numbeò 1° aó º Field 1 : 1 (the employee numbers have been assigned to list number one in the CFILE program) Fielä ² : ¸ (yoõ want employeå numbeò eighô tï corresponä to the below key) Field 3 : John Smith Iô  doeó  noô matteò whicè recorä numbeò yoõ puô  thå  abovå datá in®  Thå operationó programó readó thå entirå keylisô  filå intï  memorù  aô thå starô oæ prograí anä storeó thå  stringó  iî memory. Š DATA BASE SPECIFICATION (or memory limitation) The program as distributed has the following limitations: 1. MAXIMUM NUMBER OF FILES : 15 on one program data disk 2. MAXIMUM NUMBER OF FIELDS : 28 3. MAXIMUM NUMBER OF RECORDS : 16,000 per disk if disk space is available : using Basic 2.0, 16 million 4. MAXIMUM STRING LENGTH : 55 characters Thå  maximuí  numbeò oæ fileó peò prograí datá disë anä  thå maximuí numbeò oæ fieldó arå limiteä bù thå memorù addressablå bù youò  basiã  languagå  (probablù 64K)®  Thå  maximuí  numbeò  oæ recordó peò disë ió limiteä eitheò bù thå disë spacå availablå oò bù  thå largesô integeò youò Basiã wilì handlå oò bù thå  largesô singlå  precisioî  numbeò iæ thå GEÔ anä PUÔ statementó  iî  youò Basiã  languagå  caî  uså  singlå  precisioî  numbers®  Iî  mosô applicationó yoõ wilì onlù bå ablå tï fiô á fe÷ thousanä  recordó oî á disk® Yoõ caî uså aó manù diskó foò thå filå aó yoõ neeä sï yoõ  arå noô reallù limiteä witè regarä tï thå maximuí numbeò  oæ records®  Thå  maximuí  strinç lengtè waó seô tï 5µ sï  thaô  iô woulä  fiô  oî  aî eightù columî screeî witè itó fielä  namå  anä number®  Iæ  yoõ neeä á longeò strinç yoõ caî alwayó uså twï  oò morå stringó tï holä thå samå information. Yoõ  caî  changå thå maximuí numbeò oæ fileó anä  fieldó  bù increasinç  thå dimensionó oæ alì thå variableó thaô arå requireä foò eacè filå anä field® Oæ courså yoõ arå limiteä bù thå memorù thaô youò Basiã caî address® Thå compileä versioî wilì allo÷ yoõ morå memory® Thå compileä versioî wilì easilù allo÷ yoõ tï gï uð tï 1¸ fileó oæ 5° variables® Iæ yoõ arå usinç SANYÏ basiã oò onå oæ  thå Basics that giveó yoõ thå fulì 64Ë memorù foò  datá  theî you can easily use up to 18 files of 50 variables. Yoõ  caî alwayó adä morå fileó bù usinç twï oò morå  prograí datá  diskó witè uð tï 1µ differenô fileó oî eacè  one®  Howeveò yoõ  wilì  noô  bå  ablå tï transfeò  datá  betweeî  fileó  whoså descriptionó arå oî twï differenô prograí datá disks. MAXIMUM FORM LENGTH : 80 LINES MAXIMUM NUMBER OF ENTRIES PER LINE : 10 The maximum length of each form and the number of entries is limiteä  bù  thå Dimensioî (DIM© statemenô iî thå FORÍ anä  CFORÍ program®  Yoõ caî increaså thå limitó bù changinç thå dimensionó oæ thå variables. MAXIMUM NUMBER OF TRANSFERS : 10 per data disk Thå  maximuí numbeò oæ transferó ió limiteä bù thå dimensioî statemenô iî thå TRANSFEÒ anä CTRANSFÅ program. ŠMAXIMUM NUMBER OF SUBTOTALS : ON 3 FIELDS : integer values 1 to 200 Iæ yoõ neeä tï subtotaì on fieldó witè valueó higheò thaî 20° thån changå thå dimensioî oæ thå SUMAF#(3,200© tï SUMAF#(3,400© oò whateveò anä hopå yoõ don'ô ruî ouô oæ memory. Therå arå otheò minoò limitationó iî thå program®  Mosô arå associateä witè limitationó iî thå dimensionó oæ variables®  Foò examplå  yoõ  caî  onlù  adä uð tï ¶ otheò  fieldó  iî  aî  inpuô description®  Iæ ruî intï aî "arraù ouô oæ boundó error¢ yoõ caî probablù redimensioî thå arraù tï solvå youò problem® PROGRAM LENGTH LIMITS Dependinç  oî whicè versioî oæ Basiã yoõ arå usinç  yoõ  maù havå problemó witè thå prograí lengtè oæ thå maiî program®  Mosô versionó  oæ Basiã restricô yoõ tï 64Ë oæ prograí anä  variables® Thå  maiî prograí ió currentù jusô abouô aô thaô 64Ë limit®  Thå compileä  versioî  doeó noô havå thió probleí aó  iô  allowó  64Ë prograí   pluó  64Ë  oæ  variables®   Iæ  yoõ  ruî  intï  memorù limitations¬  yoõ  maù  wanô tï deletå unuseä partó oæ  thå  maiî program® Foò businesó applicationó iô ió stronglù suggesteä thaô yoõ uså á compileä versioî oæ thió program®  Á compileä  versioî wilì  ruî threå tï teî timeó fasteò theî thå Basiã version®  Thå compileä  versioî  wilì allo÷ yoõ abouô threå timeó  thå  memory® Thå basiã versioî wilì ruî ouô oæ memorù verù fasô iæ yoõ enteò á largå keylisô anä taø tableó etc® BASIC VERSION Iî  thió manuaì wheî wå refeò tï thå basiã versioî  wå  meaî thå  interperteä  Basiã version®  Wheî É refeò tï  thå  compileä versioî wå meaî thå compileä Basiã version® Thå compileä versioî ió  compileä  iî  Microsofô  Basiã anä doeó  noô  uså  thå  Basiã languagå oî youò computer® Iæ yoõ arå usinç thå compileä versioî yoõ   dï   noô  havå  tï  worrù  abouô  anù  oæ   thå   followinç incompatabilitù problemó witè thå Basiã version® MEMORY REQUIREMENTS Tï  ruî thå Basiã versioî youò computeò needó aô  leasô  64Ë foò  thå  programó  anä variableó pluó memorù foò  thå  operatinç system¬  basiã interperter¬  anä possiblù foò thå screen® Iæ yoõ arå  usinç á computeò whicè haó thå basiã iî ROÍ theî yoõ maù  bå ablå tï ruî thå prograí oî á 128Ë computer®  Mosô computeró wilì requirå 192K® ********************** READ THIS SECTION ********************** Iæ yoõ arå usinç IBÍ Basiã yoõ wilì havå tï invokå thå Basiã languagå  usinç thå BASIà /S:51² tï allo÷ randoí accesó fileó  uð tï 51² bytes® Yoõ wilì alsï havå tï enteò thå commanä KEÙ OFÆ tï turî off thå lisô oæ keyó oî linå 2µ wheî usinç thå MAIÎ program® Yoõ  maù wanô tï writå thå commanä KEÙ OFÆ intï thå MAIΠ prograí iæ yoõ arå usinç IBÍ basiã ¨eg®  5µ KEÙ OFÆ)® We havå noô donå Šso for compatibility reasons. ***************************************************************** READ THIS : Thå  Basiã  programó  arå  distributeä  iî  ACSIÉ  forí  foò compatibilitù reasons®  Theù werå saveä witè thå ,Á optioî (SAVÅ "MAIN",A)® Foò fasteò loadinç oæ thå programs¬ loaä eacè prograí theî savå eacè prograí withouô usinç thå ,Á optioî (SAVÅ "MAIN"). Iæ  youò computeò useó 36° Ë diskó copù thå 32° Ë diskó tï 36°  Ë disks using " A: copy *.* b: ". ***************************************************************** Wå  havå developeä thió systeí usinç SANYÏ basiã oî á  SANYÏ computer®  Wå  theî compilå mosô oæ mù programó oî thå  Microsofô Basiã  Compiler®  SANYÏ  Basiã ió downwarä compatiablå witè  IBÍ Basic®  Iæ  yoõ uså IBÍ Basiã yoõ arå goinç tï ruî ouô oæ  memorù verù  fast®  Wå  suggesô usinç á compileä versioî ratheò  theî  á basiã version® Differences in Basic Languages: Thió  prograí  useó  thå  followinç commandó  whicè  maù  bå slightlù differenô than the version of basic you are using. 1. CLS - CLEAR SCREEN 2. LOCATE - locates the position on the screen 3. LOF( ) - returns the file length 4. PRINT CHR$(8) - Moves the cursor back one space. **** note IBM BASIC uses PRINT CHR$(29) **** Iæ  youò  Basiã  doeó  noô supporô theså  commandó  yoõ  caî usuallù  simulatå  thå  commandó  iî  youò  language®  Thå  abovå commandó were used onlù oncå iî eacè prograí iî á subroutine. PRINT CHR$(8) NOTÅ º  WÅ DISTRIBUTÅ THÅ DATÁ BASÅ WITÈ EITHEÒ CÈ ½ ¸ FOÒ  USERÓ OÆ MICROSOFÔ BASIà OÒ CÈ ½ 2¹ FOÒ IBÍ BASIC®  YOÕ MAÙ OÒ MAÙ NOÔ HAVÅ TÏ MAKÅ THÅ FOLLOWINÇ CHANGE. Iæ  yoõ trù thå programó anä thå prompô doeó noô contaiî thå cursor yoõ probablù havå tï makå thió change®  Thå prompô shoulä look like : >__< with the cursor just to the left of the >. Iæ  PRINÔ  CHR$(8© doeó noô movå thå cursoò bacë  onå  spacå theî  yoõ maù neeä tï changå thå program®  Looë iî  youò  BASIà manuaì  tï  determinå whicè ASCIÉ codå wilì movå thå cursoò  bacë onå space® (IBÍ BASIà USEÒ IÔ IÓ CHR$(29© )® Tï makå thå changå easieò foò yoõ É havå useä PRINÔ CHR$(CH© sï thaô yoõ onlù  havå tï  changå  thå  valuå oæ thå variablå  CH®  Iî  thå  operationó programó changå linå 6± from: 61 CH = 8 TO 6±  CÈ  ½ 2¹ oò whateveò ASCIÉ characteò wilì movå  thå cursoò back® Dï thå samå thinç iî thå Custoí Programó aô linå 7° anä iî thå sorô prograí aô linå 10. Š CLS Iæ  youò  computeò  doeó noô uså CLÓ commanä  tï  cleaò  thå screeî theî yoõ musô replacå iô witè thå commanä thaô wilì  cleaò youò  screen®  Thå  CLÓ  ió  aô linå  13000- iî  thå  operationó programó  linå 500- iî thå custoí programó anä linå 1500° iî  thå sorô program. LOCATE Iæ youò computeò doeó noô uså thå LOCATÅ commanä tï locatå á positioî oî thå screeî theî yoõ musô replacå iô witè thå  commanä thaô  will®  Thå  locatå commanä ió useä oncå iî thå  operationó programó anä onlù oî linå 13100- anä iî thå CSCREEÎ program. LOF( ) Iæ youò computeò doeó noô uså thå LOÆ commanä tï returî  thå filå  lengtè  theî yoõ wilì havå tï replacå iô witè  thå  commanä thaô  does®  NOTÅ  ***ª Somå versionó oæ Microsofô  Basiã  wilì supporô  LOF¨  © buô iô ió noô documenteä iî theiò manuaì  ****® Thå Microsofô Basiã compileò wilì supporô thå thå LOÆ commanä buô iô ió noô documenteä iî theiò manual®  Thå commanä LOF¨ © ió  noô useä iî thå custoí programs. DISCLAIMER OF WARRANTIES PRIOÒ TÏ USINÇ THESÅ PROGRAMÓ REAÄ THIÓ DISCLAIMEÒ OÆ  WARRANTIEÓ ANÄ  THÅ LICENSÅ AGREEMENT®  IÆ YOÕ DÏ NOÔ AGREÅ WITÈ ALÌ OÆ THÅ CONDITIONÓ THEÎ YOÕ ARÅ NOÔ LICENSEÄ TÏ USÅ THIÓ PROGRAM. Notå º Thió ió almosô thå samå agreemenô yoõ geô witè anù prograí yoõ purchaså froí IBM¬ Microsofô oò anù otheò softwarå firm. Potomaã Pacifiã Engineerinç Inc®  licenseó thió prograí solely oî an "as is" basis. Potomaã   Pacifiã   Engineerinç  shalì  havå  nï   liabilitù   oò responsibilitù  tï  Licenseå oò anù otheò persoî oò  entitù  witè respecô tï anù liability¬  losó oò damagå causeä oò allegeä tï bå causeä directlù oò indirectlù bù thió product¬  includinç buô noô limiteä   tï  interuptioî  oæ  services¬   losó  oæ  businesó  oò anticipatorù profitó oò consequentiaì damageó resultinç froí  thå uså oò operatioî oæ thió program. Potomaã  Pacifiã Engineerinç makeó nï warranties¬  eitheò expresó oò implieä regardinç thió program¬ itó merchantibilitù anä oò itó fitnesó foò á particulaò purpose®  Licenseå agreeó thaô  Potomaã Pacifiã   Engineerinç   shalì   noô  bå  helä  liablå   foò   anù consequentiaì  damages¬  eveî iæ Potomaã Pacifiã Engineerinç  haó beeî adviseä oæ thå possibilitù oæ sucè damages® Alì computeró anä computeò programó malfunctioî froí timå tï time® Iô ió thå entirå responsibiltù oæ thå useò whï designó thå Šsysteí tï : 1) Design backup procedures that will not allow you to incur damages. 2) Design procedures to prevent fraud. 3© Desigî manuaì procedureó thaô yoõ caî uså whilå youò  computeò is out of order. 4) Design systems that will not cause you significant damages if the program or computer fails. LICENSE INFORMATION Eacè  Prograí anä thå Manuaì ió Copyrighteä 198´  bù  Potomaã Pacifiã  Engineerinç  Inc®  Thå  prograí ió  noô  sold®  Iô  ió licenseä FREÅ tï alì useró witè thå followinç restrictionó : 1®  Yoõ  maù  selì oò givå awaù anù prograí thaô  containó  onlù portionó  oæ thå operationó programs¬  oò spreadsheeô  oò  experô systeí  withouô  paymenô oæ royaltieó aó lonç aó  thå  followinç statementó arå encloseä iî thå manuaì oæ youò prograí : REQUIRED STATEMENTS FOR ALL PROGRAMS : Portions (C) Copyright Potomac Pacific Engineering Inc. 1984 All rights reserved. (end of required statement) Wå  woulä  appreciatå  iô iæ yoõ referencå ouò  prograí  iî  youò manual. 2®  Yoõ maù noô distributå anù modifieä programó thaô contaiî anù portionó  oæ thå custoí programó noò maù yoõ uså anù portionó  oæ ouò  prograí  iî á datá baså prograí thaô wilì competå  witè  ouò program® Yoõ maù noô uså anù parô oæ ouò programó iî á differenô datá base¬ spreadsheeô oò experô systeí inferencå enginå program® Á  datá baså prograí ió defineä á prograí wherå á useò caî definå hió owî fileó (datá bases)® 3®  Iî  thå  interestó oæ standardizatioî yoõ maù noô  distributå modifieä versionó oæ thå programms®  Thå programó anä thå  manuaì maù noô bå modified®  Wå encouragå yoõ tï writå anù enhancementó tï  thå programs®  However¬  keeð anù enhancementó iî á separatå prograí  thaô caî bå mergeä witè ouò programó iæ anù  otheò  useò woulä likå tï uså youò enhancement® Pleaså senä uó á copù oæ anù enhancementó  oò  modificationó yoõ woulä likå tï donatå  tï  thå public¬ wå wilì consideò addinç theí tï ouò program. 4®  Clubó  anä useró groupó manù distribute copieó oæ thå prograí witè  thå  changeó  necessarù foò thå prograí  tï  ruî  oî  theiò computers®  Foò  examplå  iæ á TÉ user'ó grouð manageó tï geô  á prograí  runninç oî thå TÉ theî theù maù distributå thå  modifieä program®  Onlù nonprofiô groupó maù selì thå datá baså anä onlù foò  á  nominaì  feå tï coveò costs®  Thå programó  maù  noô  bå bundled with anything that is sold, without our written consent. Wå  reservå thå righô tï withdra÷ thå licenså iæ anù oæ  thå licenså conditionó arå violated. Š HOW TO WRITE PROGRAMS USING OUR DATA BASE Yoõ  caî reducå youò programminç timå bù 60¥ tï 90¥ bù usinç our Data Base to: - Set up your files. - Handle the data entry. - Handle the file access and file entry. - Handle all the output. Firsô  checë  iæ  yoõ  caî  puô  youò  applicatioî  oî   thå spreadsheet®  Theî  yoõ shoulä checë anä seå iæ yoõ caî puô youò applicatioî   oî  thå  datá  baså  withouô  writinç  anù   custoí subroutines®   Thå   Datá   Baså  waó  designeä   foò   businesó applications®  Iô caî handlå compleø applicationó sucè aó Incomå Taø formó anä Accountinç withouô modifications. Iæ youò applicatioî ió complex¬  iô maù requirå yoõ tï writå somå  custoí subroutines®  Remembeò thaô iô ió á loô  easieò  tï writå  á pagå oò twï oæ subroutineó thaî iô ió tï writå á  thirtù pagå program® Therå arå severaì easù wayó tï customizå ouò datá base® Thå firsô ió tï customizå thå inpuô routine® Foò example¬ supposå yoõ wanô   tï  writå  á  multivariatå  regressioî  analysió  program® Supposå  yoõ wanô tï correlatå á person'ó IÑ witè  theiò  grades® You coulä seô uð á filå like. Field 1 : Name Field 2 : IQ from test #1 Field 3 : IQ from test #2 Field 4 : IQ from test #3 Field 5 : Median IQ test result Field 6 : Mean IQ test result Field 7 : High School Average Grade Usinç  thå  custoí  inpuô prograí yoõ coulä definå  alì  thå entrieó  tï bå entereä bù thå operatoò excepô Mediaî IÑ anä  Meaî IQ®  Iî  thå Custoí Inpuô prograí definå Mediaî IÑ tï  bå  inpuô optioî  1´ anä Meaî IÑ tï bå inpuô optioî 15®  Anù inpuô  optioî greateò thaî #1³ haó tï bå useò defined® Movinç bacë tï thå maiî prograí looë aô linå 4114° whicè ió : 41140 ON IOPT(N) GOSUB 41400,41400,....43600,41800,53000,54000. Oî  thå inpuô optioî thå computeò wilì gï tï thå subroutinå  thaô wilì calculatå thå value®  No÷ yoõ caî writå youò subroutineó aô 53000,anä 54000. Durinç thå inpuô optioî X(fielä number© ió thå valuå oæ  thå numeriã fields®  Yoõ maù wanô tï writå youò subroutinå tï computå the mean IQ as: 53000 REM ***** COMPUTES GEOMETRIC MEAN 53100 TEMP# = X(2)*X(2) + X(3)*X(3) + X(4)*X(4) 53110 I# = TEMP#/3 53120 RETURN Use the variable I# to return the value of the field. Also note line 46140 printed below Š46150 ON IOPT(N) GOSUB 46200,46200,.....43600,43800,53000,54000 Linå 4615° ió useä tï recomputå youò fieldó iæ someonå changå onå oæ  thå fields®  Foò example¬  iæ thå IÑ froí tesô ± waó entereä incorrectlù  anä  theî  iæ iô waó correcteä, thå  computeò  woulä recalculatå thå meaî foò you. No÷ thå computeò wilì calculatå thå meaî anä mediaî foò you® Supposå  yoõ  havå  entereä iî thå  datá  foò  2°  students®  Tï calculatå thå correlatioî yoõ musô reaä alì oæ thå records¬ storå thå resultó intï memory¬  anä theî calculatå thå correlation® Iæ yoõ  werå writinç thå prograí yourselæ yoõ woulä neeä tï opeî thå file¬  fielä iô converô alì thå stringó tï decimals,theî opeî thå resultó file¬  fielä it¬ converô alì thå numberó tï strings¬ etc® Usinç  thå datá baså yoõ caî uså thå filå prograí tï seô uð  youò outpuô oò resultó file. Foò example¬ seô uð thå resultó filå iî thå followinç manner: Field 1. - Name of Test Field 2. - Date of Test Field 3. - Correlation Field 4. - Slope Field 5. - Intercept Firsô  º  Seô uð á transfeò tï transfeò thå sumó froí  ouò  firsô filå tï ouò outpuô file®  Foò Example¬ Suí fielä ² oæ thå sourcå filå  anä  senä thå resultó tï fielä ³ oæ thå  outpuô  file®  Suí fielä ² agaiî anä senä thå resultó tï fielä ´ oæ thå outpuô file® Suí fielä ² (oò anù field© anä senä thå resultó tï fielä µ iî thå outpuô file®  Yoõ obviouslù dï noô wanô thå sumó transfered¬  wå arå  jusô  settinç uð thå transfer®  Wå arå goinç tï modifù  thå transfeò  prograí sï thaô wå wilì senä thå correlation,slopå  anä intercepô tï thå outpuô field. Iî  lineó 21070-2151° oæ thå prograí transfeò thå prograí  readó eacè recorä iî thå file® Normallù thå variableó arå oveò writteî eacè timå á recorä ió read® Howeveò tï computå thå regressioî wå neeä tï keeð eacè variablå iî memory® SU#(field© ió thå valuå oæ eacè numeriã field® Yoõ coulä changå linå 2150° tï 21500 VAR(N,K) = SU# 21505 NEXT K oò  yoõ coulä uså somå morå compleø waù oæ holdinç thå valueó  oæ your variable. No÷ thaô yoõ havå youò variableó iî thå computer'ó memory, yoõ  wilì  neeä  tï writå á  subroutinå  tï  computå  thå correlation¬ slopå anä thå intercept® Aô thå enä oæ thå transfeò optioî  thå computeò wilì gï tï thå subroutinå 2560° whicè  moveó thå sumó tï thå targeô file® Gï tï youò subroutine® eg.: 2560µ GOSU 55000 Now¬  No÷  writå youò subroutinå computinç thå  correlation¬ slope, and the intercept. Return the values as : SUM#(1) = (Correlation) SUM#(2) = (Slope) SUM#(3) = (Intercept) RETURN ŠThå  computeò wilì theî placå thå sumó iî thå targeô filå iî  thå fielä numbeò yoõ specifieä wheî yoõ seô uð thå transfeò option. SYSTEM DESIGN NOTES Wheî  designinç  á systeí iô ió possiblå tï writå  youò  owî menuó  anä intergratå theí intï thå program®  Foò examplå iæ yoõ werå designinç á smalì hoteì reservatioî systeí iô ió impracticaì tï  traiî alì clerkó tï uså thå datá base®  Alsï usinç thå  datá base¬ aó iô is¬ woulä probablù takå tï mucè time® Yoõ woulä wanô tï desigî á singlå screeî menõ witè simplå choiceó sucè aó : 1. Check for open rooms 2. Enter a reservation 3. Cancel a reservation Yoõ  woulä  theî  modifù ouò prograí sï thaô wheî  thå  "Enteò  á reservation¢ optioî ió choseî thå prograí wilì gï straighô tï thå ne÷  entrù  section®  Wheî thå "checë foò opeî room¢  optioî  ió choseî thå datå shoulä bå requested¬ converô thå datå tï á recorä numbeò  anä theî sho÷ thå recorä containinç thå numbeò  oæ  roomó open®  Wheî thå canceì á reservatioî ió choseî yoõ shoulä rewritå thå prograí sï thaô goeó tï correcô recorä option® Yoõ  neeä tï kno÷ ho÷ tï prograí iî Basiã tï writå youò  owî menuó aó explaineä iî thå examplå above®  Thå remarkó programó oî disë ² wilì helð yoõ tï understanä thå maiî program®  Thå  tricë ió tï uså thå subroutineó thaô wå havå alreadù written®  Yoõ maù wanô  tï  uså  flagó tï controì thå prograí  flow®  Iæ  yoõ  arå designinç  á  largå  systeí  yoõ  maù wanô  tï  chaiî  thå  FORM¬ TRANSFER¬ SORT¬ CHANGÅ anä SCAÎ programó froí thå maiî program® Wheî  designinç systems¬  iô ió possiblå tï avoiä  accessinç thå  prograí datá disë bù writinç thå variableó iî  thå  program® Iô  ió  alsï  stronglù  suggesteä thaô  yoõ  distributå  compileä versionó aó theù ruî fasteò anä caî usuallù accesó morå memory. REPORTS Yoõ caî generatå simplå reportó usinç thå scaî program®  Iæ yoõ  kno÷ ho÷ tï prograí iî Basiã yoõ caî modifù thå scaî prograí to produce more complex reports. INNER WORKINGS OF THE PROGRAMS Thió  sectioî  describeó thå programminç detailó oæ ho÷  thå programó work®  Yoõ dï noô need tï reaä thió sectioî tï uså  thå datá base®  Thió sectioî waó writteî foò programmeró whï wanô tï modify the program. Thå custoí programó arå fairlù simple®  Thå custoí programó arå  useä tï seô uð thå prograí datá disk®  Thå custoí  programó arå  menõ  driven®   Theù  asë  yoõ  foò  information¬  seô  thå variables¬  anä  storå iô oî thå prograí datá disk®  Thå  custoí programó seô uð thå variableó thaô describå thå files¬  thå inpuô data¬  thå forms¬  thå transferó betweeî thå files¬  thå screens¬ anä thå numeriã limits® Š The CFILE PROGRAM sets up the FFILE. Thå  FFILÅ  ió  á sequentiaì accesó filå thaô  containó  thå followinç variables : F$(n) - File Name of the n'th file NREC(n) - Number of fields in the n'th file L(n) - Length of the n'th file FLDN$(n,t©  - fielä namå of thå t'tè variablå, of n'th file FTY(n,t) - field type of the t'th variable, of n'th file 1 = string 2 = integer 3 = single precision 4 = double precision 5 ½ Dollaò  anä  centó  amount¬  samå  aó  doublå precision except it is printed with **$ FL(n,t) - field length of the t'th variable, of the n'th file KY(n,t) - key list yes/no 1 = not a key 2 = is a key KEYLIST(n,t) - the list the number is a key to Thå  CINPUT prograí  readó thå IPUTÄ foò  eacè  file® IPUTD±  ió  foò thå firsô file¬  IPUTD² ió foò  thå  seconä  filå IPUTD³ ió foò thå thirä filå etc.. The IPUTD file contains the following variables. IOPT(n) = Input option for the n'th variable Dependinç  tï  thå  numbeò  oæ thå inpuô  optioî  thå  filå  alsï contains the extra information for the input option. - If IOPT(n) = 1 (OPERATOR ENTRY) then the next entry is: PROMPT$(n) - is the prompt for the entry - If IOPT(n) = 2 (GET FROM ANOTHER FILE) the next entries are: IFN(n) - input from file number IFLD(n) - input from this field number IRNFLD(n© - inpuô recorä numbeò equaló thió fielä iî thå sourcå field - If IOPT(n) = 3 (ADD PREVIOUS FIELDS) then the next entries are: NOS(n) - Number of Summards = Number of fields to add ADDFLD(n,s) - Add this field - for s = 1 to nos(n) - Iæ  IOPT(n©  ½  ´  (SUBTRACÔ PREVIOUÓ  FIELDS©  oò  1´  (DIVIDÅ PREVIOUS FIELDS) SUBX(n) - Subtract or Divide SUBY(N) BY SUBX(N) SUBY(n) - - If IOPT(n) = 5 (MULTIPLY FIELDS) MULX(n) MULY(n)- Multiply this field by the above field - If IOPT(n) = 6 (COMPUTE TAX) then the next entries are " X(1,n) - 1 = tax table constant 2; = tax table variable X(2,n) - tax table number or field that contains table number X(3,n) - 1 = pay period constant 2; = pay period variable X(4,n) - pay period number or field that contains pay period # X(5,n) - field that is the single married field X(6,n) - field that contains the pay - If IOPT(n) = 7 or 10,or 11 or 12 (OPERATIONS WITH CONSTANTS) Then the next entries are : KC(n) - constant Š CFLD(n) - constant field that is operated on - Iæ  IOPT(n© ½ ¸ oò ¹ (MAXIMUÍ OÒ MINIMUM© theî thå nexô entrieó are: NOS(n) - number of fields to compare MAXMIN(n,t) - number of one of the fields to compare. for t = 1 to NOS(n) Thå  CTRANSFÅ prograí setó uð thå TFEÒ file®  Thå TFEÒ  filå containó thå followinç variables® MAXS - the number of transfers presently on the file DTOPT(s) - Direct Transfer Option 1 = yes 2 = no SUMOPT(s) - Transfer Sum Option; 1 = yes 2 = no SUMAFOPT(s) - Transfer Subtotal Option SN$(s) - Transfer Name SFN(s) - Source File number Iæ  thå  Direcô Transfeò Optioî ió selecteä  theî  thå  followinç variables are also on the file: RNTNBOPT(S) - Record target-file numbering option 0 - record number = source file number ±  tï  5°  - recorä numbeò equaló thå valuå oæ  thió  sourcå field D(S) - Dummy - for future expansion - Presently D = 1 TFN(S) - Target file number NREC(TFN) - The number of records in the target file FLDTC(S,N,D) - Field type change, N=target file field number 1 - No Change 2 to 61 - Change with field from source file FLDTCT(S,N,D) - Field Target Change Type 1 - Add 2 - Replace 3 - Subtract Iæ thå suí transfeò optioî ió chosen¬ theî thå filå alsï containó thå followinç variable. KTSUM(S) - The number of sums you want transfered SUMFN(S,k)-Suí filå numbeò - Thå filå numbeò oæ thå filå  yoõ want the sum K transfered to SUMF(s,k)-Sum this field - The number of the field you want to sum. SUMRN(s,k©  - Suí Recorä Number®  Thå recorä numbeò yoõ  wanô the sum transfered to. SUMFLDN(s,k©  - Suí fielä number®  Thå fielä numbeò yoõ  wanô the sum transfered to. k is the k'th sum Iæ thå suí witè subtotaì transfeò optioî ió chosen¬ theî thå filå alsï containó thå followinç variables® KTSUMAF(s) - The number of subtotals you want transfered SAFFN(s,k©  - suí  filå numbeò - Thå filå numbeò yoõ wanô  thå subtotals transfered to. SAFADD(s,k) - Subtotal this field SAFACCTO(s,k) - Subtotals grouped by the value in this field. SAFFLDN(s,k) - Put the Subtotals in this field MAX(s,k) - Dummy for future expansion Thå  CFORÍ prograí setó uð thå thå FORMLISÔ Filå anä á  filå Šfoò eacè form® Thå formlisô filå only containó thå nameó oæ eacè form. FORM$(t) is the name of each form Each Form is has its own file with the following data: LN - number of lines on the form MF - main file SFO - Secondary file option - NOT USED for future expansion EN(t1) - number of entries on line t1 CE(t1,t2) - column that the entry starts at TE(t1,t2) - the type of the entry IF the TE(t1,t2) = 1 (STRING CONSTANT) the next entry is L$(t1,t2) - the string constant to print If the TE(t1,t2) = 2 or 3 then the next entry is EFN(t1,t2) - the field number to get the data from Thå  CLIMITÓ  prograí setó uð thå IDEØ filå anä  thå  MAXMIÎ files. The IDEX file contains for each file the following fields IDEXA(f) - primary index -not used unless programmed in IDEXB(f) - secondary index -not used unless programmed in IDEXC(f) - terciary index -not used unless programmed in MFLG(f) - maximum / minimum flag for the file 2 - Yes there are limits 1 or 0 - No there are not limits The MAXMIN file contaions the following variables: MAXC#(f) or MAXD#(f) - the maximum for the field MINC#(f) or MIND#(f) - the minimum for the field Twï nameó werå useä foò thå variablå sincå thå MAXD£ namå waó alreadù allocateä tï thå inpuô optioî iî thå maiî program. Thå  CSCREEÎ prograí setó uð thå SCTESÔ filå anä thå  SCREEÎ files®  Thå SCTESÔ filå ió reaä bù thå computeò tï checë anä seå iæ  á custoí screeî ió available®  Thå SCTESÔ filå haó onlù  onå variable : SCRN(F) - 2 - A custom screen is available 0 or 1 - Use the standard screen Therå  ió á SCREEÎ filå foò eacè filå witè á custoí  screen®  Thå screeî  fileó havå á numbeò oî thå enä correspondinç tï thå  filå thaô  iô  ió  thå  screeî for®  Thå  Screeî  fileó  contaiî  thå followinç variables: SW$(1 to 18) - the 18 screen overlay lines for each field : LE(t) - the line it goes on CE(t) - the column the field goes on for each field for a key LEK(t) - the line the key goes on CEK(T) - the column the key goes on RPT - repeating fields 2 - yes 0 or 1 - no Iæ  repeatinç fieldó arå specified¬  thå followinç variableó  arå alsï included. LSTE - the number of the last non repeating field SUMF(t) - sum option for the repeating fields Š 2 - sum 1 or 0 - do not sum Thå  CREAÌ  prograí setó uð thå thå REALTIMÅ  filå  anä  thå REAL1¬  REAL² fileó etc®  Thå realtimå filå containó thå realtimå flag for each file. REALFLG(a) - Realtime flag for each file 1 = not realtime 2 = is realtime The REAL1 file contains the realtime data for file 1 as : TGTRN - target record number equals the value of this field FLD1 - transfer field TFLD1 - to this field ADSUB1 - add or subtranct 1= add 2 = subtract TFLD2 - also transfer FLD1 to this field ADSUB2 - add or subtract FLD2 - Transfer this field to TFLD3 - To this field ADSUB3 - add or subtract TFLD4 - Also transfer FLD2 to this field ADSUB4 - add or subtract TFILE - transfer to this file THE OPERATIONS PROGRAMS Thå  Operationó  programó  arå  thå  mosô  compleø  programó included®  Yoõ shoulä lisô thå programó ouô oî papeò iæ yoõ wanô tï understanä ho÷ theù work® Thå majoò variableó arå thå samå aó thoså listeä above® Whilå thå custoí prograí setó uð thå PROGRAÍ DATÁ DISK¬ thå operationó programó reaä thå prograí datá disë anä theî perform thå operations® The other major variables not listed above are : A - the main file number that is open B - the secondary file that is open X$(n) - the n'th field of the first file that is open Y$(n) - the n'th field of the second file that is open RN - record number Iî caså yoõ haven'ô noticeä alì thå operatioî programó  havå thå  samå  structure®  Thió ió becauså iî thå  previouó  versioî (2.2©  oæ thió datá baså alì thå operationó programó werå parô oæ onå  program®  Wå  haä tï spliô thå prograí uð  becauså  iô  waó gettinç  toï  largå  foò  thå computer'ó  memory®  Mosô  oæ  thå subroutines and variables are the same in all of the programs. Thå operationó programó containó thå followinç majoò subroutines: 2300-2499 Disk Drive Selection Subroutine 2500-2545 Open and fields the First File 2550-2579 Open and fields Second file 2580-2596 Open and fields Third File 7800-7999 Locate end of random access file 10000-10110 Reads FFILE 10900-10995 Put the program disk in the default drive warning 12000-12195 Prints records on the monitor Š12200-12500 Prints records on paper in expanded form 12500-12999 Prints records on paper in condensed form 13000-13099 Clear Screen 13100-13590 Locate Subroutine 14000-14999 Data entry for integers < 100 14100-14999 Data entry for integers 14200-14999 Data entry for single precision 14300-14999 Data entry for double precision Each Data Entry returns DT# for the number 15000-15999 Data entry for Strings with the length set to a field length. 15030-15999 Data entry for Strings with the length set in the program Each string entry returns A$ for the string 16000-16090 Make sure your printer is on warning Onå  probleí  yoõ  maù havå ió witè thå  dimensionó  oæ  thå arrays®  Yoõ  maù neeä tï redimensioî somå oæ thå arrayó iæ youò custoí programó requirå largå numberó oæ variables®  THE SORT PROGRAM Thå sorô prograí ió á quicë sorô program®  Iô sortó oî uð tï  threå  fieldó bù multiplyinç thå valuå oæ thå firsô fielä  bù 100,00°  anä  theî addinç thaô tï thå  seconä  value®  Thå  sorô prograí  ió  ratheò shorô anä easù tï understand®  Thå twï  maiî variables are : X(t) - the value to sort the data T(t) - the record the value came from REMARKS PROGRAMS Thå  remarkó  iî thå prograí shoulä helð yoõ tï  understanä  thå program®  Thå  remarkó programó shoulä alsï helð yoõ  understanä thå system®  Thå remarkó progamó wilì noô run¬ theù arå provideä aó  extrá documentation®  Loaä eacè remarë prograí theî LLISÔ iô ouô oî paper® ERROR RECOVERY & COMPILING THE PROGRAM Yoõ  caî  compilå alì thå programó excepô thå  sorô  prograí directlù froí thå basiã version®  Thå sorô prograí  redimensionó anä  redefineó  thå variableó tï handlå botè stringó  anä  numbeò (whicè  ió noô alloweä bù thå compiler)®  Thå compileä  versionó alsï  havå betteò erroò trappinç programmeä in®  Wå havå noô  puô mucè  erroò  trappinç  iî  thå Basiã versioî  becauså  thå  basiã interperteò itselæ haó á betteò erroò reportinç anä trappinç theî iô  ió possiblå tï prograí in®  Thå basiã interperteò telló  yoõ whaô linå numbeò thå erroò ió oî anä thå typå oæ error®  Iæ  thå erroò  ió  simplå anä caî bå correcteä theî yoõ caî typå CONÔ  tï continuå witè thå program® Iæ yoõ compilå thå basiã versioî theî youò prograí wilì havå nï waù tï recoveò eveî froí á simplå erroò sucè aó puttinç iî thå wronç disë unlesó yoõ writå youò owî erroò trappinç  codå in®  Thå extrá documentatioî oî disë  ²  containó morå  informatioî oî ho÷ tï compilå thå program®  Yoõ caî obtaiî thå compileä versioî froí uó foò $2µ (iô takeó µ DSDÄ disks). Š **************** POTOMAC PACIFIC ENGINEERING INC. ************* WE OFFER THE FOLLOWING SERVICES AND PRODUCTS : SUPPORT Duå tï thå facô thaô thió prograí ió distributeä foò freå wå cannoô offeò freå supporô foò thió program® Iæ severaì thousanä peoplå uså thió prograí anä theù alì wanteä freå supporô wå woulä gï bankrupt® Iæ yoõ wanô supporô froí uó yoõ havå tï paù foò it® Wå  chargå  $3° peò houò supporô witè á minimuí oæ $1µ peò  phonå call®  Iæ havinç youò questioî answereä ió noô wortè $1µ tï  yoõ theî iô ió noô wortè ouò timå tï talë tï you®  Yoõ geô uð tï onå halæ  houò  foò  $1µ sï yoõ mighô wanô tï geô  severaì  questionó together before you call. CUSTOM PROGRAMMING Wå   caî  seô  uð  anä  modifù  thå  datá  baså   foò   youò applications®  Sincå wå wrotå thió datá baså wå caî probablù seô iô  uð anä modifù iô iî á fractioî oæ thå timå iô woulä takå  yoõ oò  anotheò  consultant®  Calì uó foò aî freå estimatå  oî  youò custoí programminç requirements. BASIC BASE PROGRAMS Compiled Versions - $25.00 (on 5 DSDD disks) Runs faster then basic version Caî addresó 64Ë oæ memory®  Note : You havå thå MAIN¬  FORM¬ SCAN¬ SPREADSHEEÔ anä EXPERÔ programó alreadù compileä oî diskó ³ and disk 4. Program Updates - $20.00 Updateä Correcteä versionó arå releaseä approximatelù monthly. Alì  oæ  thå abovå programó havå thå samå  licenså  aó  thå basiã version®  Iô ió noô recomendeä thaô clubó anä useró groupó distributå  thå compileä versioî oò thå sourcå codå foò compilinç unlesó  theù  arå  goinç tï senä everù montè  foò  thå  correcteä versions®   Givinç  youò  useró  aî  outdateä  versioî  ió   noô recomended®  Sincå wå writå anä develoð thå prograí wå obviouslù havå thå mosô uð tï datå correcteä version® Iô ió suggesteä thaô yoõ geô youò updateó froí uó ratheò theî froí á useró grouð whoså updateó maù noô bå current® Thå  abovå programó arå licenseä free®  Yoõ arå payinç  foò thå disks¬  copying¬  firsô clasó mail¬ anä handling® Pleaså uså the order form when ordering programs. POTOMAC PACIFIC ENGINEERING INC. P.O. Box 2027 Gaithersburg, Md 20879 (301) 977-1489 Š FEEDBACK WANTED Pleaså  senä  uó  anù feedbacë thaô wilì  helð  improvå  thå future versions of this program. We are looking for : 1®   Informatioî   oî  whetheò  thå  prograí  runó  oî  differenô compatiblå  computeró  anä  whaô  changeó  iî  thå  prograí  werå necessary 2. Information on any errors in the program 3. Any improvements suggestions for the program. 4. Any application developed using the program 5. Any improvements or additions to the manual NOTES ON VERSION 3 Thió  ió  thå thirä versioî oæ thå  datá  base®  Thå  firsô versioî  waó  onlù  onå prograí anä alì thå variableó haä  tï  bå defineä  iî  thå prograí ie®  FTY(1,1© ½ 1®  Thå  seconä  versioî consisteä oæ threå programs®  Thå seconä versioî waó tï largå tï ruî  oî  IBÍ  basic®  Thió ió thå seconä editioî  oæ  thå  thirä version®  Thå nexô editioî 3.² wilì bå thå correcteä versioî  oæ 3.± ® Additionaì correcteä versionó wilì bå releaseä abouô everù otheò  month®  Sincå thió ió thå seconä editioî oæ versioî ³  iô wilì  (likå alì programs© havå somå bugó iî it®  Pleaså senä  uó anù  erroró encountereä anä thå correctionó thaô yoõ ruî intï oî thå followinç form®  Aô leasô wå arå debugginç thå program® Ho÷ manù timeó haó youò expensivå worä processoò losô youò  documentó anä what arå theù doinç abouô it. Therå  ió  nï indeø iî thió datá baså becauså 9¹  ¥  oæ  thå useró dï noô neeä aî indexeä datá base®  Iæ yoõ arå á hackeò yoõ wilì noticå thaô therå waó aî indeø whicè É tooë out® Thå amounô oæ  timå saveä bù usinç aî indeø (iæ any© waó vastlù exceedeä  bù thå timå iô tooë tï maintaiî thå index®  Iô soundó impressivå tï havå á filå indexeä oî µ oò morå fields® Iô ió noô sï impressivå waitinç foò thå computeò tï maintaiî thå indexes®  Yoõ caî obtaiî thå  samå resulô bù scaninç thå entirå file®  Iô takeó abouô onå minutå tï scaî aî entirå floppù disk® Iæ onå minutå ió toï long¬ yoõ  caî  uså  á RAÍ disk®  Yoõ caî usuallù  finä  á  recorä  bù scanninç  á RAÍ disë iî onå tï threå secondó whicè ió fasteò theî thå timå tï searcè aî indexeä floppù disë file®  Therå arå  threå RAÍ  diskó programó thaô arå iî thå publiã domaiî (free© anä  yoõ usuallù geô onå witè á memorù expansioî board® Yoõ caî alsï sorô á  filå anä theî uså thå "searcè á sorteä filå program¢ tï obtaiî fasô results®  Iæ yoõ arå usinç á harä disë witè fileó toï largå foò á RAÍ disk¬  anä neeä instanô datá retrievaì oî morå theî onå fielä  theî yoõ maù wanô tï uså á differenô datá  base®  Versioî 4.° mighô havå aî optionaì index® SINGLE DISK DRIVE COMPUTERS Iæ  yoõ  arå  usinç theså programó oî á  singlå  disë  drivå computer¬  alì thå programó wilì ruî excepô thå sorô prograí  anä thå  changå  prograí (wheî usinç thå "creatå á subfile¢  option)® Thió  ió  becauså thå sorô prograí anä changå  prograí  reaä  thå Šsourcå  filå  oî onå disë drivå anä creatå anotheò filå witè  thå SAMÅ  namå oî á differenô disë drive®  Yoõ caî ruî thå sorô  anä changå  programó bù changinç thå targeô filå namå tï "TEMP¢  (foò temporary© oò otheò namå differenô froí thå filå name®  Thió  ió oî  linå 255µ iî thå changå prograí (255µ OPEÎ "R",#2,"TEMP",L(A© © anä linå 922° iî thå sorô prograí (922° OPEÎ "R"¬  #2¬ "TEMP",Ì )®  Afteò  runninç  thå sorô oò changå prograí (wheî  usinç  thå creatå á subfilå option© thå ne÷ filå wilì bå "TEMP"®  Theî copù thå "TEMP¢ filå tï á differenô floppù disë anä RENAMÅ iô bacë  tï thå filå namå iô waó createä from. THIS PROGRAM IS LICENSED FREE GIVE A FRIEND A COPY GIVE A COPY TO YOUR COMPUTER CLUB .pa Š**************************************************************** Version 3.1 Error Report Form Your Name:____________________________________________________ Address :____________________________________________________ ____________________________________________________ Computer: ____________________________________________________ Version of Basic : ___________________________________________ Memory of your Computer : ____________________________________ Error Description : __________________________________________ __________________________________________ __________________________________________ __________________________________________ Did the error : 1. Halt the program and print an error message or 2. Cause incorrect results? List the incorrect results if any : __________________________ _______________________________________ Error Message if Any : _______________________________________ Which Program Was the Error in ? _____________________________ What Line Number Was the Error on ? __________________________ Were you able to correct the Error ? Yes ___ No ___ How did you correct the Error ? - Send a listing of the changes you made if possible _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ Any other comments : __________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ Doeó  thå  erroò alwayó occuò oò doeó thå erroò onlù occuò  undeò certain conditions? __________________________________________ _____________________________________________________________ _____________________________________________________________ Mail to : Attn : Error Potomac Pacific Engineering Inc. Post Office Box 2027 Gaithersburg, MD 20879 Wå  givå freå updateó tï everyonå submittinç aî erroò reporô form®  Pleaså  senä uó informatioî oî anù erroró yoõ  encounter® Pleaså  reaä  thå manual¬  especiallù thå sectioî  oî  thå  basiã languagå beforå submittinç aî erroò reporô form® Thå bugó iî thió prograí dï noô occuò verù often® Iæ yoõ ruî intï aî erroò durinç thå  firsô fe÷ houró yoõ arå usinç thå softwarå yoõ arå  probablù doinç somethinç wrong® Š **************************************************************** UPDATE ORDER FORM Your Name : ___________________________________________________ Street : ___________________________________________________ City/State: ___________________________________________________ Zip Code : _______________ Computer : ___________________________________________________ Version of Basic : ____________________________________________ Do you want the updated Basic Version? Yes ____ No ____ What version do you have ? _______ $20.00 on 4 DSDD disks $30.00 on 8 SSDD disks Do you want the Compiled Version ? Yes ____ No ____ What version do you have ? _______ $25.00 on 5 DSDD disks Not available on single sided disks Oversea orders add $3. Maryland Residents add 5% sales tax. Firsô  Clasó Mail ió included®  Wå ship your order iî  lesó than 7 days. Allow 2 to 3 weeks for postal delivery. Mail to Potomac Pacific Engineering Inc. Post Office Box 2027 Gaithersburg, MD 20879 ****************************************************************** END OF VERSION 3.1 DATABASE MANUAL 11/07/84 last update Š The Spreadsheet of Steel Version 1.0 REAÄ  ANÄ  AGREÅ  TÏ  THÅ LICENSÅ CONDITIONÓ  ANÄ  DISCLAIMEÒ  OÆ WARRANTIES PRIOR TO USING THIS PROGRAM. Thå  fastesô  waù tï learî ho÷ tï uså thå spreadsheeô ió  tï trù  iô  out®  Yoõ cannoô damagå youò computeò bù  runninç  thió prograí  oò anù otheò softwarå program®  Makå á backuð  copù  oæ thió disë beforå yoõ starô tryinç iô out® Starting the Program Wå havå provideä yoõ witè botè thå compileä anä sourcå  codå (interpretativå  version©  oæ  thå  spreadsheet®   Thå  compileä versioî  ió  SS.EXÅ ®  Thå sourcå codå versioî ió SS.BAÓ  ®  Thå compiled version requires 192K on all computers to run. Start the compiled version using the following steps: 1. Turn on your computer using MS-DOS or PC-DOS. 2. Put the spreadsheet disk in the default disk drive. 3. Type SS then press return. Start the basic version using the following steps: 1. Turn on your computer using MS-DOS or PC-DOS. 2. Load your basic language. 3. Put the spreadsheet disk in the default disk drive. 4. LOAD "SS" 5. RUN Iæ  yoõ  havå  problemó  usinç thå basiã  versioî  reaä  thå sectioî  iî  thå databaså manuaì oî thå differenceó  betweeî  thå basiã  languages®  Iæ yoõ arå usinç IBÍ Basiã yoõ wilì  havå  tï turî  thå  Keù oî ro÷ 2µ ofæ usinç thå KEÙ OFÆ commanä  Yoõ  caî writå  thå commanä intï thå prograí (8° KEÙ OFF)®  Thió haó  noô beeî  donå  sï  foò  compatibilitù reasons®  Iæ  yoõ  arå  usinç Microsofô Basiã (noô IBÍ basic© changå linå 7° tï 7° CÈ ½ 8® Wheî  firsô  startinç thå prograí thå firsô thinç  displayeä is: S P R E A D S H E E T 1.0 Copyright 1984 by Potomac Pacific Engineering Inc. This program is licensed FREE to all users with some restrictions See the manual for more information on the license. The files on your default disk drive are : SS .BAS CHECK . TAX . SS .EXE If you want to continue with an old spreadsheet enter the name If you want to start a new spreadsheet then just press return. >_______< (end of the first displayed screen) Thå fileó Checë anä Taø arå samplå spreadsheets® Jusô presó Šreturî  tï  starô  á ne÷ spreadsheet®  Thå  computeò  wilì  theî displaù thå followinç screenº * *** ENTER THE OPTION NUMBER THEN PRESS RETURN *** ON SCREEN 1 0-EXIT 1-INPUT NUMBER 2-INPUT OVERLAY 3-NEW NUMBER 4-CALCULATION 5-CLEAR 6-SAVE 7-BARCHART 8-PRINT SCREEN 9-PRINT DESCRIPTION >__< MOVÅ THÅ ª USING A,Q,S,D,F,G,E,R,X,àCHANGÅ SCREENÓ USINÇ I,J,K,M (end of screen) Thå  ª ió useä aó á cursoò tï marë youò currenô  positioî  oî thå  screen®  Yoõ caî movå thå ª arounä bù enterinç thå  letteró A,Q,S,D,F,G,E,R,Ø anä C® Youò keyboarä ió probablù seô uð like Q E R A S D F G X C The corresponding * movements are Q left 20 E up 1 R up 4 Á lefô µ Ó lefô ± Ä righô ± Æ righô µ Ç righô 20 X down 1 C down 4 Try moving the * around using the above letters. Yoõ  caî  changå screenó usinç thå  letteró  I,J,K,M®  Youò keyboard is probably set up like : I I up one screen J K J left one screen K right one screen M M down one screen Thå  screeî arå 2° lineó deeð each®  Thå spreadsheeô ió seô uð witè 2° screens® Thå screenó makå uð onå biç spreadsheeô thaô ió  fouò  screenó acrosó anä µ screenó deep®  Iæ yoõ  neeä  morå Šscreenó  anä  yoõ  kno÷ ho÷ tï prograí iî Basiã  yoõ  caî  easilù changå  thå sourcå codå tï allo÷ morå screens®  Thå screenó  arå seô uð iî followinç ordeò : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Afteò  movinç thå ª tï thå correcô spoô yoõ caî chooså onå oæ the following options. 0. EXIT THE PROGRAM Uså  thió  optioî  wheî yoõ arå donå anä wanô  tï  exiô  thå program®   Yoõ  wilì  loså  youò  spreadsheeô  unlesó  yoõ  havå previouslù  saveä thå spreadsheeô usinç optioî 6®  Thå  computeò wilì  warî yoõ thaô yoõ wilì loså youò spreadsheeô anä  givå  yoõ the option to save it prior to exitting the program. 1. INPUT A NUMBER Thió  optioî ió useä tï enteò á numbeò iî youò  spreadsheet® Therå haó tï bå á numbeò iî thå spoô wherå thå ª is®  Uså optioî numbeò ³ iæ yoõ wanô tï creatå á numbeò iî thå spot®  Thå numbeò ± ió thå defaulô optioî iæ yoõ jusô presó return®  Sincå thió ió thå  mosô useä optioî yoõ caî enteò youò datá fasteò iæ yoõ  jusô presó returî insteaä oæ enterinç thå numbeò 1®  Thå ª shoulä  bå placeä aô thå starô oæ thå numbeò noô aô thå end®  Thå ª musô bå withiî  µ spaceó lefô oò righô oæ thå starô oæ thå numbeò foò thå computeò  tï  finä thå correcô number®  Thå  followinç  exampleó demonstratå thå placemenô oæ thå ª : *_______0 right on * _______0 Ok up to 5 spaces left _____*_0 Ok up to 5 spaces right * _______0 too far left ______*0 too far right 2. INPUT OVERLAY LINE Thió  optioî  ió  useä  tï placå wordó oò  letteró  oò  fixeä numberó  noô useä iî calculationó oî thå screen®  Movå thå ª  tï thå  correcô  spoô  oî thå screeî wherå yoõ  wanô  tï  placå  thå overlaù  line®  Enteò optioî ² theî presó return®  Thå computeò will prompt you with : ENTER THE STRING >____________________________________________________________< Typå iî thå wordó yoõ wanô displayeä theî presó return®  Thå computer will place what you typed to the right of the *. 3. ENTER A NEW NUMBER Š Thió optioî ió useä tï creatå á spoô foò á number® Movå thå ª tï thå spoô wherå yoõ wanô tï enteò á number¬  enteò thå numbeò ³ and presó  return®  The computer will then ask : HOW DO YOU WANT THE NUMBER DISPLAYED 1-Standard Form 2-Dollar and Cents amount 3- None Uså ± foò numberó otheò theî dollaò amounts® Uså ² foò money® Uså ³  iæ yoõ dï noô wanô á numbeò here®  Thå computeò  wilì  displaù *________° oò $________° wherå thå ª was®  Thå initiaì valuå  oæ thå numbeò ió 0® Avoiä puttinç numberó toï closå togetheò oî thå samå line® 4. DEFINE CALCULATION Thió  optioî ió useä tï definå á calculatioî betweeî ² oò  ³ numbers®  Movå  thå ª tï thå numbeò foò whicè yoõ wanô tï definå thå calculation®  Enteò ´ foò thió optioî anä theî presó return® Thå  computeò  wilì  theî  sho÷  yoõ  thå  followinç  calculatioî options. 1. ADD - adds source number to target number The computer will ask you if you want to add any other numbers to the target field and allow you to do so at the same time. 2. SUB - subtracts source number from target number Noteº  Thió  subtractioî ió seô uð slightlù  differentlù than you normally subtract. For example : Gross income $3,000 Add this number to take home pay -Tax $340 Subtract this number from take home -------------------- Take Home Pay $2,660 Thå  subtractioî  waó  seô  uð thió waù becauså  therå  arå  manù applicationó  wherå  yoõ  maù wanô tï Adä  anä  subtracô  severaì numberó froí onå targeô number® Foò Examplå : Gross income $3,000 Add this number to take home pay -State Tax $200 Subtract this number from take home -Federal Tax $500 Subtract this number from take home ------------------- Take home pay $2,300 3. MULT - multiply source number by secondary number to give target number 4. DIVIDE BY - divide source number by secondary number to give target number 5. DIVIDE INTO - divide secondary number by source number to give target number 6. MAX - maximum, if source number is greater then target number then the target number equals the source number 7®  MIÎ - minimum¬ iæ thå sourcå numbeò ió lesó theî target numbeò then the target number equals the source number 8. ADD K - add a constant to the source number to give the target number 9®  MULÔ Ë - multiplù thå sourcå numbeò bù á constanô tï givå thå Š target number 10. N - K - subtract a constant from the source number to give target number 11. K-N - subtract the source number from a constant to give the target number 12®  N/Ë  - dividå  thå sourcå numbeò bù á constanô tï  givå  thå target number 13. K/N - divide a constant by the source number to give the target number 14. - 20 - These calculation options are reserved for your custom inpuô  options®  Uså  theså optionó iæ yoõ  wanô  tï write your own subroutines for more complex calculations. Read the section on how the program works if you want to use these subroutines. SEÅ  YOUÒ BASIà MANUAÌ FOÒ MORÅ INFORMATIOÎ OÎ THÅ  FOLLOWINÇ CALCULATIONS : 21. ABS - target field equals the absolute value of source field 22. ATN - target field equals the arctanget of source field 23. COS - target field equals the cosine of source field 24. EXP - target field equals the exponent of the source field 25. LOG - target field equals the logarithm of the source field 26. SIN - target field equals the sine of the source field 27. SQR - target field equals the square root of the source field 28. SQ - target field equals the square of the source field 29. TAN - target field equals the tangent of the source field 30® DELETÅ - thió optioî ió tï deletå á numbeò thaô yoõ nï longeò wanô oî youò spreadsheet®  Thió ió noô thå samå thinç aó  clear® Iæ yoõ deletå á numbeò iô disappearó froí thå spreadsheeô anä caî not be reentered. Afteò  yoõ  enteò  whicè typå oæ  calculatioî  yoõ  wanô  thå computeò  wilì asë yoõ tï movå thå ª tï thå targeô field®  Afteò yoõ  havå moveä thå ª tï thå targeô fielä presó return®  Iæ  yoõ havå specifieä á calculatioî witè á secondarù calculatioî  field¬ thå  computeò  wilì theî asë yoõ tï movå thå ª tï  thå  secondarù calculatioî  numbeò  anä presó return®  Iæ yoõ havå specifieä  á calculatioî  typå witè á constant¬  thå computeò wilì asë yoõ  tï enteò thå constant® Iæ  yoõ  havå  entereä thå wronç typå oæ  calculatioî  foò  á number¬  yoõ  caî  enteò  thå  correcô  typå  oæ  calculatioî  bù reenterinç  á calculatioî foò á number®  Thå maximuí anä  minimuí functionó comparå thå sourcå numbeò witè thå targeô number®  Theù dï noô comparå á lisô oæ numbers® Thió workó finå aó lonç aó yoõ dï  noô reducå tï maximuí numbeò oò increaså thå minimuí  number® Iæ  yoõ  dï  reducå thå maximuí numbeò oò  increaså  thå  minimuí number¬   yoõ   musô  alsï  correcô  thå  targeô   number®   Thå calculationó occuò aó thå sourcå numberó arå entereä bù you®  Iæ yoõ havå entereä á numbeò prioò tï defininç á calculatioî foò thå number¬ thå calculationó arå NOÔ automaticallù performed® Iæ yoõ havå  entereä  numberó  anä  theî  specifù  aî  ADÄ  oò  SUBTRACÔ calculatioî  thå  computeò  wilì noô givå  thå  correcô  resultó unlesó  yoõ  havå cleareä alì thå numberó oò  changå  thå  targeô fielä  tï thå correcô number®  Thió ió becauså thå computeò addó oò  subtractó  onlù  thå changå iî thå sourcå  fielä  becauså  iô assumeó thå originaì numbeò waó alreadù addeä oò subtracted®  Iô ió  besô tï definå alì thå calculationó beforå enterinç  numbers® ŠAfteò clearinç alì thå numberó thå computeò wilì givå thå correcô results. Yoõ  caî onlù havå onå calculatioî typå peò  number®  Thió maù bå á probleí iæ yoõ wanô tï adä acrosó rowó anä columns® Yoõ caî  alwayó  writå youò owî subroutineó oò yoõ caî waiô  foò  thå nexô versioî oæ thió spreadsheet® Á numbeò caî bå á targeô fielä foò   onå  calculatioî  anä  á  sourcå  fielä  foò  á   differenô calculation®  Á  numbeò  caî  onlù  bå á sourcå  fielä  foò  onå calculation. 5. CLEAR Thió optioî setó alì thå numberó tï zero®  Iô doeó noô changå anù  oæ thå stringó oò anù oæ thå calculatioî  types®  Uså  thió optioî  wheî  yoõ  wanô tï enteò á ne÷ seô oæ  numberó  foò  youò spreadsheet®  Yoõ  shoulä savå á copù oæ youò olä seô oæ numberó beforå  usinç thió option®  Thå computeò wilì warî yoõ prioò  tï dumpinç youò numberó anä givå yoõ thå optioî tï savå them. 6. SAVE Thió optioî saveó youò spreadsheeô oî disk® Thå computeò wilì asë  yoõ thå namå oæ thå spreadsheeô yoõ wanô tï save®  Thå namå wilì  bå thå filå name®  Alì filå nameó musô bå ¸ characteró  oò less®  Nï  spaceó  arå allowed®  Thå firsô characteò musô  bå  á letter®  Iô  ió suggesteä thaô yoõ uså á shorô descriptivå  namå followeä  bù á numbeò foò eacè versioî oæ thå  spreadsheet®  Foò examplå  á  spreadsheeô thaô ió useä tï balancå  á  checkbooë  ió "CHECK"®  CHECK± ió foò January® CHECK² ió foò February® CHECK³ ió foò March¬ etc® Alwayó  makå  backuð  copieó oæ importanô  data®  Keeð  verù inportanô  datá  oî  á  papeò  printouô  also®  Iæ  yoõ  savå  á spreadsheeô  witè  thå samå namå aó aî olä spreadsheeô  yoõ  wilì overwritå thå olä spreadsheeô anä loså it. 7. BARCHART Thió optioî ió useä tï makå á simplå asterisë barchart® Thå computeò  wilì asë yoõ tï movå thå ª tï eacè numbeò yoõ wanô  foò thå  barchart®  Thå computeò wilì theî asë yoõ tï movå thå ª  tï thå  starô oæ thå labeì oò descriptioî yoõ wanô printeä  foò  thå number®  Thå computeò wilì theî asë yoõ tï movå thå ª tï thå enä tï  thå labeì foò eacè number®  Thå computeò wilì theî prinô ouô foò  eacè number¬  itó label¬  itó numbeò anä aî  asterisë  grapè proportionaì tï thå otheò numberó iî thå graph. 8. PRINT SCREEN Thió optioî printó thå screeî oî papeò aó iô ió showî oî youò monitor®  Eacè screeî ió 2° lineó deep® Thereforå yoõ caî geô ³ screens on an 11 inch page using 6 lines per inch. The computer will ask you : DO YOU WANT TO PRINT THE SCREENS TO THE RIGHT ALSO 1- NO print only this screen 2- YES Š Iæ  yoõ  choså "NÏ prinô thió screeî only¢ thå computeò  wilì prinô thå screeî exactlù aó iô ió showî oî youò monitor. Iæ  yoõ chooså "YES¢ yoõ caî prinô thå screeî oî youò monitoò anä thå ² screenó tï thå righô oæ it®  Iî somå spreadsheetó yoõ maù wanô tï uså morå theî thå 8° columnó availablå oî onå screen® Yoõ  caî uså 16° columnó oî twï screenó oò 24° columnó  oî  threå screens®  Yoõ  caî  prinô uð tï 24° columnó iæ youò printeò  caî prinô 24° columns® Yoõ probablù havå tï seô youò printeò to itó condenseä prinô modå (seå youò printeró manuaì foò ho÷ tï dï it)® Thå computeò wilì asë yoõ ho÷ manù columnó oæ thå spreadsheeô yoõ wanô tï print®  Thå computeò wilì theî prinô thå screeî oî  youò monitoò  anä  thå screenó tï thå righô oæ iô uð tï thå numbeò  oæ columnó  yoõ  wanô printed®  Yoõ caî alwayó  prinô  eacè  screeî separatelù  thån tapå oò gluå theí togetheò iæ yoõ dï noô havå  á widå enougè printeò tï prinô youò spreadsheet. 9. PRINT DESCRIPTION Thió  optioî  printó thå valueó oæ alì  thå  variables®  Yoõ probably only want to use this option if you are a programmer. INNER WORKING OF THE PROGRAM Thå  remarkó  prograí "SSREMARK.BAS¢ ió thå  SS.BAÓ  prograí witè  remarkó  printeä  ouô  oî  abouô everù  linå  tï  helð  yoõ understanä  thå program®  Iæ yoõ arå goinç tï writå  anù  custoí subroutineó  yoõ shoulä lisô thå prograí ouô oî papeò anä takå  á look at it to see how the program works. Thå  custoí  subroutineó  14,15,16,17,18,1¹ anä  2°  maù  bå writteî oî lineó 29300¬  29400¬  29500¬  29600¬ 29700¬ 29800¬ anä 2990° respectfully®  Returî thå valuå oæ thå targeô valuå aó  X® Yoõ caî alsï writå somå codå oî lineó 25300¬ 25400¬ 25500¬ 25600¬ 25700¬  25800¬  anä 2590° iæ yoõ wanô tï specifù targeô fieldó oò secondarù  fieldó  foò youò calculations®  Iæ yoõ arå  goinç  tï writå  anù  custoí  subroutineó yoõ shoulä lisô ouô  thå  remarkó program¬ SSREM® NOTES ON VERSION 1.0 Thió  ió  thå firsô versioî oæ thå  Spreadsheet®  Thå  nexô versioî wilì probablù contaiî morå featureó anä shoulä bå aó useò friendlù aó thió version®  Wå plaî oî addinç morå graphics¬ anä addinç commandó tï enablå yoõ tï handlå largeò spreadsheets® Therå  arå nï royaltieó oî applicationó oæ thió spreadsheet® END OF SPREADSHEET MANUAL LAST UPDATE 8/30/84 Š THE EXPERT SYSTEM OF STEEL Aî experô systeí ió á systeí thaô approximateó thå judgemenô oæ  á humaî expert®  Aî experô systeí maù bå seô uð tï acô aó  á psychiatrist¬  automobilå mechanic¬ á physician¬ oò otheò expert® Aî Inferencå Engine¬ whicè ió whaô thió experô systeí technicallù is¬ ió á frameworë thaô useó variablå rules¬ problems¬ questions¬ problemó  anä  solutions¬  anä á programmeä logiã tï  handlå  anù numbeò  oæ experô systems®  Thå advantagå oæ aî inferencå enginå ió  thaô yoõ caî seô uð youò owî experô systeí withouô doinç  anù programminç  jusô bù enterinç  thå  questions¬  rules¬  problems¬ solutionó anä theiò relationshipó Aî experô systeí askó questionó theî  provideó á diagnosió anä theî recommendó á  solution®  Thå firsô  halæ  oæ  thió manuaì explainó thå basicó oæ  thió  experô systeí  anä ho÷ tï uså thió experô system®  Thå seconä  parô  oæ thió manuaì provideó informatioî oî ho÷ tï creatå youò owî experô systems® How To Use The Expert System Of Steel Firsô yoõ shoulä brieflù reaä thió manual®  Theî yoõ shoulä jumð  righô iî anä trù usinç thå system®  Iæ yoõ don'ô understanä anythinç yoõ shoulä refeò bacë tï thió manuaì foò aî explanation® Yoõ  havå  beeî  provideä witè twï versionó  oæ  thå  experô system¬ thå compileä versioî ¨ EXPERT.EXÅ © anä thå basiã versioî ¨  EXPERT.BAÓ  )®  Usinç thå compileä versioî ió easieò anä  thå prograí runó faster® Thå basiã versioî ió provideä becauså iô ió thå  sourcå  codå anä caî bå modified®  Tï  starô  thå  compileä versioî : 1® Turî youò computeò oî witè youò operatinç systeí disë (MS-DOS or PC-DOS) in the default disk drive. 2®  Afteò  enterinç thå timå anä datå youò computeò wilì displaù Aº 3. Put the expert system disk in the default disk drive. 4. Type "expert" then press return. A:expert (press return) 5. The program will load. 6. The first screen will look like : Put the Expert System disk in the default disk drive ****** THEN PRESS ANY KEY TO CONTINUE ***** The expert system only uses the expert system disk Keeð  iô  iî  thå  defaulô disë drivå aô alì  timeó  durinç  thió program (end of first screen) Thå experô systeí disë ió thå disë witè thå fileó  QUESTION¬ PROBLEÍS anä SOLUTIOÎ oî it®  Iî thió caså thå prograí EXPERT ió oî  thå samå disë anä thå disë shoulä alreadù bå iî  thå  defaulô disë  drivå sincå yoõ loadeä youò prograí froí it®  DÏ NOÔ TAKÅ ŠTHÅ  DISË  OUÔ ANYTIMÅ DURINÇ THÅ PROGRAM®  Presó  anù  keù  tï continue. The second screen should look like : E X P E R T S Y S T E M P R O G R A M 1.0 Copyright 1984 by Potomac Pacific Engineering Inc. This program is licensed free to all users with some restrictions See the manual for more information on the license ******************* DO YOU WANT TO ********************* 1 - START A NEW PROBLEM 2 - CONTINUE WITH A PRIOR ANALYSIS ********** ENTER THE NUMBER THEN PRESS RETURN *********** >__< (end of the second screen) Yoõ  caî  eitheò  starô á ne÷ probleí  oò  continuå  witè  á previouó analysis®  Startinç á ne÷ probleí meanó thaô alì oæ thå answeró  wilì bå seô aô nï answeò anä thå computeò wilì starô  aô thå  beginninç  bù askinç yoõ alì oæ thå introductorù  questions® Thå  otheò  optioî ió tï continuå witè á  prioò  analysis®  Wheî continuinç  witè  á  prioò analysió thå computeò  wilì  reaä  thå answeró  thaô yoõ oò someonå elså haó saveä oî thå disë anä  theî continuå witè thå analysió aô thå starô node® Iæ yoõ enteò ± foò "starô á ne÷ problem¢ thå computeò wilì gï througè  eacè question¬  settinç thå answeò tï NÏ ANSWEÒ, next iæ thå  questioî  haó beeî designateä bù thå systeí designeò  aó  aî introductorù  questioî  thå computeò wilì asë yoõ tï  answeò  thå question®  Answeò  thå question®  Iæ yoõ dï noô kno÷  whaô  thå answeò  ió  yoõ  maù telì thå computeò thaô yoõ dï  noô  wanô  tï answeò thå questioî bù pressinç thå letteò Î foò nï answer® Iæ  yoõ  enteò ² foò "continueä witè á  prioò  analysis¢  thå computeò  wilì  displaù alì thå fileó oî thå defaulô  disë  drivå theî asë yoõ foò thå namå oæ thå filå yoõ saveä thå questionó on, thaô yoõ wanô tï continue. Oî youò firsô timå usinç thå systeí É woulä suggesô  enterinç "1¢  tï starô á ne÷ problem®  Thå computeò wilì theî asë yoõ thå introductorù questions. Thå  samplå "expert¢ applicatioî ió  á  psychitrist®  Don'ô takå  thå  samplå  applicatioî toï seriouslù aó  thå  ruleó  werå developeä  mostlù foò debugginç purposeó anä noô foò thå  correcô psychoanalysis®  Á  reaì "expert¢ applicatioî woulä takå uð mosô oæ thå disë spacå whicè ió whù sucè á shorô simplå applicatioî ió included® Afteò yoõ answeò thå introductorù questionó oò thå  computeò Šreadó  thå answeró froí thå disë thå nexô screeî shoulä looë likå : AT STARTING NODE 0 # QUESTION + - P CK CONT 1 Bad Physical Shape 90 0 7 PC CONT 5 Crazy (mental) 90 70 9 NC CONT 6 Lazy 0 80 6 NC CONT 9 Stupid 0 0 5 NC CONT 13 Evil 0 0 4 NC CONT 16 Normal 50 0 2 C CONT BRANCH ? * NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS COMPUTER RECOMMENDS 5 (end of screen) Explanation of the Screen Probleí Numbeò - ió showî aô faò left®  Iô ió thå numbeò oæ eacè problem that is a subproblems of the current node. Problem Description - the name of each problem Probability For - is shown right below the + on the screen Thå  cumulativå  probabilitù oæ alì thå evidencå  thaô  thå probleí exists Probability Against - right below the - on the screen The cumulative probability of all the evidence that the problem does not exist Priority - Is shown right below the P on the screen. The search priority 0 - lowest 9 - highest searched first Checked - Is shown right below the CK on the screen C - all ready checked with all questions answered PC - partialy checked - already checked out but not all of the questions have been answered NC - not checked Continued - right below the CONT on the screen CONT - continued, there are further subproblems to this problem END - end, there are no further subproblems to this problem How The Problems are Set Up Thå  desigî  oæ  thió  experô systeí ió seô  uð  iî  á  treå structure®  Thå  startinç nodå ió 0®  Iî ouò samplå applicatioî the "tree" starts with the "branches" 1 Bad Physical Shape 5 Crazy (mental) 6 Lazy 9 Stupid 13 Evil 16 Normal Eacè  oæ  Theså Brancheó oò problemó brancheó ouô  intï  morå subproblems®  Foò  examplå thå brancè "Crazù (mental)¢  brancheó ouô intï : 21 Psychotic 22 Neurotic 23 Mental Breakdown Š Eacè  oæ  Theså Brancheó oò problemó brancheó ouô  intï  morå subproblems®  Foò  examplå thå "Psychotiã ¢ brancheó ouô tï  thå subproblems : 24 Schizophrena 25 Delusionary 26 Megalomanic 27 Can't distinguish between fact and fiction 28 Paranoid 29 Sadistic 30 Masochistic Thå Paranoiä brancè brancheó ouô tï paranoiä typå Á anä Typå  whilå thå otheò problemó dï noô havå anù furtheò subproblems. The tree of problems may also be visualized as : 0 - start node / / / \ \ \ 1 5 6 9 13 16 / / \ | / \ / \ \ / \ / / \ \ 2 3 4 | 7 8 10 11 12 14 15 17 18 19 20 | / | \ 21 22 23 continued down through all the problems Thå experô systeí startó yoõ aô thå starô node® Thå computeò wilì  recommenä  thaô  yoõ explorå thå brancè  witè  thå  highesô priority thaô haó noô alreadù beeî explored®  Thå computeò  wilì continuå  tï  explorå thå patè aó lonç aó thå probabilitù foò  ió greateò thå 4° anä thå probability againsô ió lesó theî 40® Getting back to what is on your screen, the computer asks : BRANCH ? NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS COMPUTER RECOMMENDS 5 You have three options here: ENTERING A POSITIVE NUMBER If you enter a positive number the computer will ask you the questions which confirm or deny the existence of the problem. ENTERING A NEGATIVE NUMBER Iæ yoõ enteò á negativå numbeò thå computeò wilì switch control of the analysis to that node on the tree ENTERING 9999 ( or any number greater then 9999 ) The computer will switch control to the options ANSWERING QUESTIONS Iæ  yoõ enteò á positivå number¬  thå computeò wilì asë  yoõ thå questionó whicè confirí oò denù thå existencå oæ thå problem® Thå numbeò oæ questionó maù varù forí ± questioî tï 2° questions® Thå questionó wilì bå displayeä oî thå screeî aó : Š1 3 Are you 1-male 2-female 1=1 80 2 11 How many TV sets do you own NA>3 60 3 19 Can you run 5 miles 1-yes 2-no NA=1 -70 4 39 What is your IQ 120>100 -80 WHICH QUESTION ? 1 to 4 ZERO FOR NONE , THEN ANSWER (end of screen) In this Screen : The first column is the number for the question. The second column is the record number of the question. The words are obviously the question. Thå  fourtè columî ió thå answeò foò thå  question®  Iæ  thå question has not been answered then NA will be shown Thå fifth columî ió thå rule® Thå rulå ió eitheò ½ equals¬ ¾ greater than, < less than or >< not equals. Thå  sixtè  columî  ió  thå facô valuå  thaô  thå  answeò  ió compared against to determine if the rule is true or false. Thå  seventè anä lasô columî ió thå probabilitù thaô ió  truå iæ  thå conditioî ió true®  Á positivå probabilitù supportó  thå existencå  oæ thå probleí whilå á negativå probabilitù denyó  thå existence of the problem. The questions shown above may be read as follows: 1. If "male" then there is a 80% chance that the problem exists. 2. If more then 3 TV sets are owned there is a 60% chance that the problem exists. 3. Iæ  yoõ  caî  ruî  µ mileó therå ió á 70¥  chancå  thaô  thå problem does not exist. 4. If the IQ is greater than 100, there is a 80% chance that the problem does not exist. Tï  answeò thå firsô question¬  enteò thå numbeò ± anä  presó return® Theî typå iî thå answer® Alì thå questionó arå answereä witè  numbers®  Iæ thå questioî haó thå optionó 1-yeó 2-nï  theî enteò eitheò ± oò 2® Thå computeò wilì noô accepô anù alphabetiã characteró excepô foò N® Thå letteò Î standó foò nï answer® Yoõ dï noô havå tï answeò anù oæ thå questionó iæ yoõ dï noô kno÷ anù oæ thå answers® Don'ô wastå youò timå reanswerinç questionó thaô arå  alreadù answered®  Yoõ maù changå anù oæ thå answeró bù thå thå  samå  procedurå  oæ enterinç thå questioî  numbeò  theî  thå answer® Iî ouò samplå seô oæ fouò questions,thå firsô onå ió  alreadù answered®  Tï  enteò aî answeò oæ teî foò thå seconä questioî  ¨ ho÷ manù TÖ setó yoõ owî © thå screeî wilì looë likå : QUESTION ? 1 TO 4, ZERO FOR NONE, THEN ANSWER >2_< >10______< QUESTION ? 1 TO 4, ZERO FOR NONE, THEN ANSWER >0_< (end of screen) Afteò yoõ enteò zerï foò nï morå questions¬ thå prograí wilì recalculatå thå probabilitù foò thå problem®  Iæ thå probleí haó morå  subproblemó  anä thå "probabilitù for¢ ió greateò theî  40¥ Šanä thå "probabilitù against¢ ió lesó theî 40%¬ thå computeò wilì changå  controì  tï displaù alì thå subproblemó  oæ  thå  currenô problem®  Yoõ  maù oò maù noô wisè tï explorå thå  subproblems® Iæ  yoõ  dï noô wanô tï explorå thå subproblemó yoõ maù  enteò  á negativå numbeò afteò thå prompô : BRANCH ? * NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS COMPUTER RECOMMENDS 5 >______< Iæ  yoõ  enteò á negativå number¬  thå computeò wilì  switcè controì  tï thå subproblemó oæ thå positivå valuå oæ  thå  numbeò yoõ  entered®   Iæ  thå  negativå  numbeò  yoõ  entereä  haó  nï subproblemó thå computeò wilì prompô yoõ foò anotheò number®  Iæ yoõ  don'ô understanä this¬  ruî thå prograí anä seå whaô happenó wheî yoõ enteò á negativå number® Yoõ wilì usuallù wanô tï enteò á  numbeò thaô ió morå towardó thå starô nodå 0®  Skippinç  froí onå parô oæ thå treå tï á differenô parô ió noô á recommendeä waù tï  conducô á search®  Yoõ caî alwayó jusô follo÷  thå  computeò recommendations® OPTIONS Iæ yoõ enteò thå numbeò 999¹ oò anù numbeò greateò theî 999¹ after the prompt: BRANCH ? * NEGATIVE NBR TO OVERRIDE * 9999 TO OPTIONS COMPUTER RECOMMENDS 5 >9999___< The computer will then prompt you with : ** OPTIONS ** 0-NONE 1-SAVE 2-PRINT OPTIONS DISPLAYED ON PAPER 3-REVIEW ALL PROBLEMS 4-ALL QUESTIONS AND ANSWERS 5-PRINT PROBLEM 6-EXIT >__< The options are explained in the following sections: 0 - NONE Thió  optioî returnó yoõ tï thå subproblemó  yoõ  previouslù werå exploring® Thió optioî ió usefull iæ yoõ changå youò minä about using an option. 1 - SAVE Thió  optioî saveó thå answers¬  probabilitieó anä thå pathó exploreä  oî disë sï thaô yoõ maù continuå witè thå  analysió  oò reexaminå  thå resultó latteò on®  Thå computeò wilì asë yoõ foò thå namå oæ thå filå yoõ wanô tï savå iô on®  Thå computeò  wilì theî savå thå informatioî oî thå defaulô disë drive® Aó witè alì files¬  iæ  yoõ  savå  thå informatioî undeò thå  samå  namå  yoõ previouslù used¬ yoõ wilì overwritå (lose© thå originaì filå witè thå samå name® Š 2 - PRINT OPTIONS DISPLAYED ON PAPER Thió optioî printó thå problemó anä subproblemó displayeä oî thå  screeî  oî  paper®  Iô doeó noô changå anù  oæ  answeró  oò search path. 3 - REVIEW ALL PROBLEMS The computer will display : PRINT OUT PROBLEMS DO YOU WANT TO CHECK ALL PROBLEMS OR ONLY THOSE SEARCHED ? 0 - RETURN 1 - ONLY THOSE ALREADY SEARCHED 2 - ALL - TAKES A LOT LONGER >__< (end of screen) Uså  °  iæ  yoõ havå changeä youò minä anä dï  noô  wanô  tï revie÷ anù oæ thå problems®  Usinç optioî ± wilì checë onlù thå optionó  thaô  yoõ lookeä at®  Usinç optioî ² wilì  checë  everù probleí anä takå á loô longer® Iæ yoõ havå searcheä thå treå anä alreadù lookeä aô alì oæ thå probablå solutionó yoõ probablù onlù neeä tï uså optioî 1® The computer will then display: PRINT OUT ALL PROBLEMS WITH A PROBABILITY FOR HIGHER THEN ENTER A NUMBER FROM -1 TO 100 >_____< AND WHOSE PROBABILITY AGAINST IS LOWER THEN ENTER A NUMBER FORM 0 TO 101 >_____< (end of screen) Thå  computeò wilì gï througè eacè probleí anä displaù iô  iæ iô meetó thå conditionó yoõ entered® Foò examplå yoõ maù requesô thå  computeò  tï displaù alì problemó witè á  "probabilitù  for¢ higheò  thaî 50¥ anä á "probabilitù against¢ loweò thaî 50%®  Iæ yoõ  entereä  CHECË  ONLÙ THOSÅ  PROBLEMÓ  ALREADÙ  SEARCHEÄ  thå computeò  wilì  displaù thå problemó thaô werå  alreadù  searcheä thaô  meeô  thå higheò thaî 50¥ "probabilitù for¢ conditionó  anä "probabilitù against¢ loweò thaî 50¥ condition®  Iæ yoõ  entereä CHECË  ALÌ PROBLEMÓ thå computeò wilì displaù everù probleí  thaô haó  á  "probabilitù  for¢  higheò thaî 50¥  anä  á  "probabilitù against¢  loweò  thaî  50%®  Iæ yoõ seô  thå  searcè  limitó  aô "probabilitù for¢ greateò theî -± anä "probabilitù against¢ loweò thaî  10± alì thå problemó wilì meeô theså conditionó anä wilì bå displayed® Converselù iæ yoõ seô thå limitó aô "probabilitù for¢ greateò thaî 10° anä "probabilitù against¢ lesó thaî ° theî  nonå oæ thå problemó wilì meeô thå conditions® Thå computeò wilì theî displaù : DÏ YOÕ WANÔ THÅ PROBLEMÓ 1 - SHOWN ON THE SCREEN ONLY 2 - PRINTED ON PAPER AND SHOWN ON THE SCREEN 3 - PRINT ON PAPER WITH SUPPORTING RULES >__< Š(end of screen) Iæ  yoõ  enteò ± thå computeò wilì prinô thå optionó  oî  thå screeî only®  Iæ yoõ expecô á loô oæ problemó tï bå printeä theî yoõ maù wanô tï havå theí listeä oî papeò sincå yoõ caî onlù vie÷ 1° problemó oî thå screeî aô onå time® Afteò  thå  computeò  haó printeä ouô alì  thå  problemó  thå computer will display : DO YOU WANT TO CONDUCT A SEARCH FOR ALL AND MULTIPLE SOLUTIONS 1 - YES SEARCH 2 - NO >__< (end of screen) Iæ  yoõ chooså 1-yeó thå computeò wilì prinô oò sho÷ oî  thå screeî alì thå solutionó thaô solvå anù onå oæ thå problemó  thaô meô  thå  previouó conditions®  Thió optioî maù noô bå  useä  iæ therå  waó  morå theî 25° problemó thaô meeô thå  conditionó  yoõ previouslù  specifieä  ¨ Thå computeò wilì telì yoõ iæ therå  arå more then 250 problems). 4 - ALL QUESTIONS AND ANSWERS Thió  optioî ió useä iæ yoõ wanô tï revie÷ thå questionó anä answeró. The computer will display : DO YOU WANT 1 - ONLY QUESTIONS ANSWERED SHOWN 2 - ALL QUESTIONS SHOWN >__< DO YOU WANT 1 - SHOWN ON THE SCREEN ONLY 2 - SHOWN ON THEN SCREEN AND PRINTED ON PAPER >__< (end of screen) Thå optionó arå selæ explanatory® Iô shoulä bå noteä thaô iæ yoõ  request alì questionó showî iæ maù takå á whilå tï  looë  aô hundredó  oæ  questionó iæ thå applicatioî containó  hundredó  oæ questions. 5 - PRINT PROBLEM Thió  optioî  printó  á singlå probleí  oî  papeò  witè  itó supporting rules (questions). 6 - EXIT Thió  optioî ió useä tï exiô thå program®  Prioò tï  leavinç thå prograí thå computeò wilì warî yoõ thaô yoõ arå abouô tï loså thå  answeró yoõ havå entereä iæ yoõ havå noô saveä theí anä givå you the option not to exit the program. EXPLANATION OF THE PROBABILITY CALCULATIONS Thió  experô  systeí useó twï distincô  probabilities®  Thå ŠPROBABILITY FOR ió thå probabilitù thaô thå probleí  exits®  Thå PROBABILITY AGAINST ió thå probabilitù thaô thå problemó doeó noô exist®  Wå  havå  electeä tï uså twï separatå  probabilitieó  aó opposeä  tï  onå singlå probabilitù aó twï probabilitieó  providå morå informatioî tï thå users® Thå probabilitieó havå á limiô oæ °  tï  100®  Foò  examplå thå  followinç  probabilitieó  maù  bå interpreteä aó : Probability For Against Meaning 100 0 100% chance the problem exists no evidence against 90 0 90% chance the problem exists no evidence against 50 0 50% chance the problem exists no evidence against 0 100 100% chance the problem is ruled out no evidence for 0 80 80% chance the problem is ruled out no evidence for 0 50 50% chance the problem is ruled out no evidence for 80 30 80% chance the problem exists 30% chance the problem is ruled out 60 60 60% chance the problem exists 60% chance the problem is ruled out 90 90 90% chance the problem exists 90% chance the problem is ruled out This indicates probable incorrect answers Firsô  yoõ shoulä noticå thaô thå numbeò dï noô havå tï adä uð  tï  100®  Iæ  therå ió evidencå botè foò  anä  againsô  eacè probleí  thå  suí oæ thå probabilitieó maù exceeä  100®  Iæ  thå probabilitù foò anä againsô arå botè higè theî therå ió á  chancå onå oæ thå questionó waó answereä wrong® Secondlù  lo÷ probabilitieó botè foò anä againsô canceì eacè otheò out®  Foò examplå iæ therå ió á probabilitù foò oæ 30¥ anä á   probabilitù   againsô   oæ  30¥  therå   ió   probablù   jusô circumstantiaì  evidencå botè waù anä meanó abouô thå samå aó  0¥ probabilitù foò anä 0¥ probabilitù against® Oî thå otheò hanä iæ therå  ió á probabilitù foò oæ 80¥ anä á probabilitù  againsô  oæ 80¥  yoõ probablù answereä onå oò morå oæ thå questionó wronç  oò thå systeí waó seô uð poorly® HOW THE PROBABILITES ARE CALCULATED Foò  examplå supposå thå probleí "pooò physicaì  shape¢  haó the following rules : 1 Can you run 5 miles 1-yes 2 no NA=1 -70 2 Can you swim 2 miles 1-yes 2 no NA=1 -60 3 How many times a week do you exercise NA<3 50 4 How for can you walk in miles NA<3 60 Thå  "NA¢  Standó foò nï answer®  Supposå  thaô  yoõ  answeò questioî  threå  thaô  yoõ  exerciså zerï  timeó  peò  weeë  anä questioî  fouò thaô yoõ caî walë onlù onå  mile®  Now¬  questioî Šthreå  haó probabilitù foò oæ 5° anä questioî ´ haó á  proabilitù foò  oæ 60®  Yoõ mighô thinë thaô wå shoulä adä uð thå 5° anä 6° whicè equaló 110® Howeveò yoõ cannoô havå á probabilitù oæ 110%® Iæ  yoõ remembeò bacë tï youò dayó iî probabilitù anä  statisticó wheî   addinç  twï  probabilitieó  yoõ  havå  tï   subtracô   thå probabilitù   oæ   theiò   intersection®   Assuminç   thaô   thå probabilitieó  arå independenô thå probabilitù oæ aî intersectioî ió .µ timeó .¶ whicè ió .³ ® 110¥ - .³ ½ 80¥ ® Aî easieò waù tï calculatå  thå probabilitù assuminç independenô eventó ió  merelù tï  multiplù thå differencå betweeî thå currenô probabilitù  froí onå  hundred¬  multiplù  thaô  bù thå probabilitù  thaô  yoõ  arå adding¬ theî adä tï thå olä probability® Foò example 50% old probability + 60 % 100 - 50 old probability ---- + 30 50 x 60 = .30 -- 80 new probability Thå computeò doeó alì thå abovå calculations®  Thå exampleó are just provided to show you what the computer is doing. Alì  thå  subproblemó  oæ á probleí  assumå  thå  probabilitù againsô oæ alì thå brancheó thaô iô belongó to®  Thió ió becauså iæ  therå  ió  evidencå  thaô yoõ arå noô  crazù  theî  thå  samå evidencå  anä probabilitù applieó tï yoõ noô beinç  psychotiã  oò neurotic®  However¬  notå  thaô  subproblemó dï noô  assumå  thå probabilitù foò oæ thå brancheó theù belonç to®  Thió ió becauså iæ  yoõ arå crazù iô doeó noô indicatå thaô yoõ arå psychotiã  aó yoõ coulä bå anotheò subprobleí oæ crazy. NOTES ON USING THIS EXPERT SYSTEM Firsô  oæ alì thió experô systeí oò anù experô systeí haó  nï commoî sense® Anù experô systeí knowó onlù thå rules¬ questions¬ problemó  anä  solutionó thaô iô haó beeî  programmeä  with®  Aî experô  systeí doeó noô kno÷ anythinç outsidå oæ thå areá iô  haó beeî  programmeä in®  Thió experô systeí waó designeä tï bå useä aó  aî aid¬  noô thå solå authoritù iî arrivinç aô  problemó  anä solutions®   Thå  subproblems¬   rules¬  anä  probabilitieó  arå displayeä mosô oæ thå times® Computeró arå gooä aô keepinç tracë oæ  hundredó  oæ rules¬  questions¬  anä  answers®  Howeveò  thå computeò doeó noô havå anù commoî senså thereforå iô ió uð tï yoõ tï providå thå commoî sense® Secondlù  anù  applicatioî  ió onlù aó gooä  aó  thå  rules¬ questions¬  problems¬ anä solutionó witè whicè iô waó seô up® Thå samplå  applicatioî  shoulä demonstratå thió point®  Nï  onå  ió perfecô anä eveî expertó disagreå oî manù things®  Thå poinô  ió jusô  becauså  aî  experô  systeí  ió ruî oî  á  computeò  ió  nï indicatioî thaô thå resultó iô giveó arå correct® **************************************************************** HOW TO SET UP YOUR EXPERT SYSTEM Thió  sectioî provideó thå informatioî necessarù tï seô youò Šowî  experô system®  Iô ió noô necessarù tï reaä  oò  understanä thió  sectioî iæ yoõ arå onlù goinç tï bå usinç aî experô  systeí thaô  someonå  elså  seô  uð. Thå  firsô  thinç yoõ havå tï decidå ió whetheò thió  experô systeí  caî  handlå  youò application®  Thió  experô  systeí  ió limiteä bù thå numbeò oæ questions¬  problems¬ anä solutionó thaô caî bå processed®  Thå waù thå systeí ió currentlù seô uð ió foò á  maximuí  oæ 300° questions¬  100° problemó anä  aî  unlimiteä numbeò oæ solutions®  Youò experô systemó maù bå limiteä bù  thå memorù  addressablå bù youò BASIà languagå anä thå storagå  spacå oî youò floppù disks®  Yoõ caî alwayó modifù thå prograí tï reaä botè  drivå Á anä  oò á harä disë oò yoõ coulä spliô youò experô systeí  intï  severaì experô systemó witè thå  samå  introductorù questions® Therå  arå á loô oæ applicationó thaô arå betteò  solveä  bù algorithmiã  programs®  Foò examplå chesó programó anä operatioî researcè programó arå besô designeä bù algorithmiã programs® Iæ yoõ dï noô kno÷ mucè abouô experô systemó yoõ maù wanô tï reaä  á booë oò twï oî experô systemó beforå yoõ trù tï desigî aî experô system® Unfortunaltlù mosô oæ thå bookó oî experô systemó arå  expensivå anä nonå thaô É havå reaä werå thaô gooä sï  É  dï noô havå anù tï recommend® Any expert system requires that the area of expertise have: 1. a finite and known number of problems 2. definable rules that support or deny each problem 3. a finite number of known solutions Foò example¬ iô ió presentlù impossiblå foò aî experô systeí tï  desigî  á  houså  becauså therå  ió  aî  infinitå  numbeò  oæ combinationó oæ rooms¬  dimensions¬ materials¬ etc® anä therå arå nï  definablå  ruleó thaô indicatå wheî tï uså  whicè  materials¬ coloró  etc®  Oî  thå  otheò hanä iô ió possiblå tï  desigî  aî experô  systeí  tï diagnosió fixinç á caò becauså thå  numbeò  oæ problemó  ió finitå anä therå arå knowî ruleó tï determinå  iæ  á parô oæ thå caò ió broken® Obviouslù  iô helpó iæ yoõ arå aî experô oò geô helð froí aî experô tï geô thå correcô rules¬ problemó anä solutionó otherwiså yoõ  coulä enä uð witè aî applicatioî aó incorrecô aó  mù  samplå application. Sincå thió prograí ió writteî iî BASIà anä yoõ arå  supplieä witè  thå  sourcå  codå  yoõ caî easilù modifù iô  tï  adä  extrá featureó  yoõ  maù neeä foò youò  experô  system®  Thå  prograí REM.BAÓ  oî  disë ´ containó remarkó oî almosô everù linå oæ  thå program®  Thå remarkó prograí wilì noô run® Iæ yoõ arå goinç tï modifù thå prograí yoõ shoulä loaä thå prograí REM.BAÓ theî  lisô iô ouô oî paper® SYSTEM STRUCTURE Thå  experô  systeí  useó threå  fileó  QUESTION¬  PROBLEMS¬ SOLUTION® Thå fileó arå seô uð anä maintaineä usinç thå databaså Šprograí MAIN.EXÅ ®  Reaä thå Databaså manuaì foò instructionó oî ho÷ tï uså thå database®  Uså disë 4¬  thå experô systeí  disk¬ foò thå prograí datá disk® QUESTION FILE The question file has the following four fields : 1 Question String with maximum length 50 2 Always Asked Integer 3 Continued on Record Integer 4 Dummy Integer Thå  questioî  ió thå questioî thaô yoõ wanô asked®  Iæ  yoõ wanô  thå questioî alwayó askeä aó aî introductorù questioî  theî enteò numbeò ² iî fielä 2® Iæ yoõ caî noô fiô thå questioî iî oî 5°  characteró yoõ maù continuå iô bù enterinç thå recorä  numbeò thå  questioî ió continueó oî iî fielä 3®  Enteò ° oò ±  iî  thå continueä  oî  recorä numbeò iæ yoõ dï noô wanô tï  continuå  thå question®  Iæ  yoõ arå oî aî á continueä recorä enteò -± iæ  thå questioî  ió  noô furtheò continueä oò -Ø ¬  Ø beinç  thå  recorä number the question if further continued on. PROBLEMS The problem file contains the following fields : 1. Description String with maximum length 50 2. Subproblem to Integer 3. Priority Integer 4. Primary Solution Integer 5. Continued on Record Integer 6. Dummy Integer 7. Rule-Type 1 Integer 8. Question-Rule 1 Integer 9. Fact Value 1 Single Precision 10. Probability 1 Single Precision 11. Rule-Type 2 Integer 12. Question-Rule 2 Integer 13. Fact Value 2 Single Precision 14. Probability 2 Single Precision 15. Rule-Type 3 Integer 16. Question-Rule 3 Integer 17. Fact Value 3 Single Precision 18. Probability 3 Single Precision 19. Rule-Type 4 Integer 20. Question-Rule 4 Integer 21. Fact-Value 4 Single Precision 22. Probability 4 Single Precision 23. Rule Type 5 Integer 24. Question-Rule 5 Integer 25. Fact Value 5 Single Precision 26. Probability 5 Single Precision Thå  "description¢  ió  thå  namå  oæ  thå   problem®   Thå descriptioî ió limiteä tï 5° characteró anä maù noô bå continued. Thå  "subproblem tï" numbeò ió thå numbeò thå probleí  ió  á subprobleí  to®   Enteò  °  iô  ió  á  starô  nodå  anä  haó  nï Šsubproblems®  Enteò  500°  iæ thió recorä ió á continuatioî  oæ anotheò problem® Thå  "priority¢ ió thå searcè patterî priority®  Thå rangå ió froí ± (lowest© tï ¹ (highest)®  Thå numberó witè thå highesô prioritù arå searcheä first® Thå  "primary¢ solutioî ió thå recorä numbeò oæ thå solutioî thaô ió thå mosô recommend solutioî foò thå problem. Thå "continueä" oî recorä numbeò ió thå  recorä  numbeò  thå probleí ió continueä on® Onlù thå ruleó maù bå continued® Enteò ± oò zerï iæ thå probleí ió noô continued®  Uså -X¬  ø beinç thå recorä  numbeò  thå  probleí ió continueä oî  iæ  thå  recorä  ió alreadù  continued®  Enteò  -± iæ thå recorä ió thå lasô  recorä that the problem is continued on. Thå dummù variablå ió noô used®  Iô maù bå useä foò writinç speciaì featureó intï thå system. Oî  eacè recorä thå probleí maù havå fivå rules®  Eacè rulå has four parts to it : Rule Type : 1 =, 2 <, 3 >, 4 >< Question-Rule : The question that corresponds to the rule Fact Value : The value the answer is compared against Probability : positive for probability for negative for probability against SOLUTION FILE The solution file contains the following fields : 1. Description String with maximum length 50 2. Continued on Record Integer 3. Dummy Integer 4. Solves Problem 1 Integer 5. Success Rate 1 Integer 6. Solves Problem 2 Integer 7. Success Rate 2 Integer 8. Solves Problem 3 Integer 9. Success Rate 3 Integer 10. Solves Problem 4 Integer 11. Success Rate 4 Integer 12. Solves Problem 5 Integer 13. Success Rate 5 Integer Thå descriptioî ió thå namå oæ thå solution® Thå descriptioî may not be continued. It is limited to 50 characters. Thå continueä oî recorä numbeò ió thå numbeò thå solutioî  ió continueä  oî ®  Enteò ° oò ± iæ thå solutioî ió noô  continued® Enteò  -x¬  ø beinç thå numbeò thå continueä oî recorä numbeò  iæ thå  solutioî  ió  alreaäy continued®  Enteò -±  iæ  enterinç  á continued record that is not being further continued. Thå  dummù variablå ió noô used®  Iô maù bå useä iî  writinç modificationó tï thå system® Enteò anù numbeò yoõ want. Each record stores up to five solutions. Solves Problem - the record number of the problem it solves Success Rate - the success rate of the solution on this problem Š You can enter a negative success rate if the solution has a negative impact on certain problems that you want to point out. Yoõ  maù wanô tï lisô ouô thå fileó PROBLEMS¬  SOLUTIOΠ anä QUESTIOΠ foò  thå samplå applicatioî tï seå ho÷ theù arå seô  uð anä  ho÷ theù affecô thå waù thå systeí runs®  Uså thå  databaså prograí MAIN.BAÓ tï prinô ouô thå files® NOTES ON DESIGNING YOUR EXPERT SYSTEM Wå woulä recommend thaô yoõ desigî anä revie÷ youò systeí oî papeò beforå yoõ starô typinç thå datá iî tï thå files® Wå  recommend  thå followinç stepó iî designinç  youò  experô system. 1. Write down on paper all the possible problems. 2. Group the problems as subproblems of other problems. Keeð  iî  minä  thaô peoplå worë besô  witè  ·  oò  lesó alternativeó  sï  yoõ  mighô wanô tï trù tï limiô thå  numbeò  oæ subproblemó  tï 7®  Alsï therå ió onlù 2µ rowó oî computeró  oæ whicè thå promptó anä otheò informatioî takeó uð severaì lineó sï yoõ shoulä trù tï keeð thå numbeò oæ subproblemó tï lesó theî 10. 3® Choose the questions. Iæ  possiblå  iô ió besô tï havå µ oò  feweò  questions® Yoõ maù havå uð tï 2° questions®  Iæ possiblå choså ² oò ³  easù tï  answeò questionó thaô givå thå highesô probabilitù foò anä  ² oò  ³  questionó thaô wilì givå thå highesô probabilitù thaô  thå highesô  probabilitù against®  Iæ therå arå questionó  thaô  arå easù  tï answeò thaô wilì virtuallù confirí oò denù thå existencå oæ thå probleí dï noô wastå youò ouò youò useró timå oî questionó thaô providå circumstantiaì evidence® Yoõ shoulä alsï trù tï uså thå  samå questioî foò morå theî onå probleí iæ possiblå tï loweò thå numbeò oæ questionó thå useò musô answer® Alsï remembeò thaô alì  questionó musô bå answereä witè á numbeò sï yoõ arå  limiteä tï multiplå choicå questionó oò askinç foò numericaì data. 3. Choose the solutions. Iô ió best¬  iæ possible¬  tï lisô twï oò morå solutionó foò eacè  problem®  Thió  ió becauså therå maù bå onå solutioî  thaô wilì solvå severaì oæ thå problems® 4®  Enteò  thå  questions¬  problemó anä solutionó ontï  thå fileó usinç thå databaså prograí MAIN® Uså disë ´ aó thå prograí data disk 5®  Tesô anä debuç youò application® Yoõ caî modifù anù oæ your files using the database program MAIN. Somå  applicationó maù noô neeä tï uså thå solutioî  featurå oæ  thió  experô system®  Yoõ havå thå sourcå codå  sï  yoõ  caî remove the solution options rather easily if you know BASIC. (end of Expert System Manual, last update 11/8/84)