home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / pt100.zip / PT.DOC < prev    next >
Text File  |  1989-08-14  |  22KB  |  476 lines

  1.                          PT SCOREKEEPER
  2.                                 
  3.                           Version 1.00
  4.                                 
  5.                                by
  6.                                 
  7.                       2LT Michael P. Kelly
  8.                                 
  9.                      U.S. Army Signal Corps
  10.                                 
  11.                        Copyright (c) 1989.
  12.                                 
  13.                       All Rights Reserved.
  14. 1.  COPYRIGHT
  15.  
  16.      This program is copyrighted to protect my time and efforts,
  17. however, you may freely pass it around to your co-workers, other
  18. offices, and anyone you think would benefit from using it.  This
  19. software is provided "as-is" with no guarantee as to its
  20. performance.  Extensive testing has proven that it works very
  21. well with no documented bugs.  It is provided at no cost to make
  22. your PT test management a little easier.
  23.      You are NOT authorized to change or modify any part of this
  24. program or the accompanying files in any way.  This specifically
  25. includes such things as changing or adding to the documentation
  26. or replacing the author's name with another persons name, etc. 
  27. So just keep these simple rules in mind:
  28.  
  29.      a.   Always give copies of this program to anyone.
  30.      b.   Do not modify/change the program in any way.
  31.      c.   Do not charge any money for this program.
  32.  
  33. 2.   INTRODUCTION
  34.  
  35.      PT Scorekeeper came about due to a request by a fellow SOBC
  36. student.  He was the PT officer for our section and wanted a
  37. program or spreadsheet template to make his job of tallying our
  38. scores a little less burdensome.  I looked around for such a
  39. utility in the Fort Gordon software archives and the C2MUG
  40. (Command and Control Military Users Group), yet I only found a
  41. few hastily written spreadsheet templates that were basically
  42. ineffectual.  A template requires a spreadsheet such as Lotus 1-
  43. 2-3 or Enable in order to work.  Unfortunately, not every U.S.
  44. Army office has a spreadsheet program much less the specific one
  45. required by the particular template.  So I took it upon myself to
  46. write a program in Clipper Summer '87 to solve this problem and
  47. then make it publicly available for FREE to any person, unit, or
  48. organization.  PT Scorekeeper requires no other programs to run,
  49. since it is an .EXE executable file.  Here are some of the
  50. features of PT Scorekeeper:
  51.  
  52.      -    Ability to store all PT information on disk files for
  53.           instant recall.
  54.      -    Ability to enter as many PT scores per soldier as you
  55.           like limited only by your physical disk capacity.
  56.      -    Instantly view Soldier Information or any individual PT
  57.           test results.
  58.      -    Ability to search for soldiers by name, unit or sex.
  59.      -    Ability to search for PT scores by SSN or date of test.
  60.      -    AUTOMATIC calculation of the soldiers PT score based on
  61.           the soldiers personal information that you enter only
  62.           once!
  63.      -    PT score is calculated based on the date of test, age,
  64.           etc., at the time of test so you need not worry about
  65.           adjusting old score results.
  66.      -    Browse through all the soldiers personal information as
  67.           well as all the PT tests taken.
  68.      -    Context-sensitive help for data-entry screens to help
  69.           the user in entering data.
  70.      -    Data validation to assure that the proper information
  71.           that is crucial to the program's operation is entered.
  72.      -    Quick looks at a soldiers personal information or PT
  73.           score during searches to aid in the searching process.
  74.      -    Globally recalculate all PT scores for all soldiers at
  75.           the touch of a key.  This is not necessary because
  76.           scores are always kept up-to-date.  However, a friend
  77.           requested it just to be sure.  Kind of a fail-safe!
  78.      -    While editing a previously entered score, the score is
  79.           updated AUTOMATICALLY to reflect any changes to it.
  80.      -    Ability to print various reports based on the data
  81.           entered.
  82.      -    Print a master soldier roster containing all the
  83.           soldiers entered into the database.
  84.      -    Print all soldiers grouped by unit to aid upper-level
  85.           offices to maintain a distinction between units.
  86.      -    List all PT tests by the soldiers in alphabetical
  87.           order.
  88.      -    Print a list of all soldiers who are overdue as of the
  89.           current date.
  90.      -    Print a list of all soldiers who failed their last PT
  91.           test and what events were failed.
  92.      -    When a solider is deleted all his PT test scores are
  93.           also deleted to save you the effort of deleting each of
  94.           them.  For example, 1 soldier may have 15 PT tests.
  95.      -    Maintains data integrity by not allowing PT test scores
  96.           to be entered if there is no information in the
  97.           database pertaining to that soldier.
  98.      -    Uses the standard PT tables and every possible
  99.           combination of raw scores to calculate total scores.
  100.      -    Takes into account the fact that you must pass every
  101.           event to pass the whole test.  Failing one event means
  102.           failing the test, regardless of the other two events.
  103.  
  104. 3.   PACKING LIST
  105.  
  106.      I have distributed this file as a self-extracting archive
  107. that was produced using LHARC v1.13 (an excellent archive program
  108. by Yoshi (c) 1989).  You may have received it in its un-archived
  109. form though.  So let us make sure that you have received all the
  110. files necessary to run PT Scorekeeper properly.  Here are the
  111. files you should have:
  112.  
  113. REP3.DBF       - database used during the reporting process
  114. REP4.DBF       - database used during the reporting process
  115. SCORES.DBF     - database containing the PT score information
  116. SOLDIERS.DBF   - database containing the soldier information
  117. PT.EXE         - PT Scorekeeper program
  118. REP1.FRM       - used for printing reports
  119. REP2.FRM       - used for printing reports
  120. REP3.FRM       - used for printing reports
  121. REP4.FRM       - used for printing reports
  122. REP5.FRM       - used for printing reports
  123. DATE.NTX       - index file
  124. LAST.NTX       - index file
  125. SEX.NTX        - index file
  126. SSN.NTX        - index file
  127. UNIT.NTX       - index file
  128. PT.DOC         - users manual
  129.  
  130.      If you do not have all these files, you did not receive a
  131. full copy of all the necessary files.  If you are missing the
  132. .NTX files, that is OK.  They will be created again when you run
  133. PT Scorekeeper if they are missing for some reason.
  134.      Contact the person who gave you this copy and ask them for
  135. all these files or send me a request via COMPUSERVE 73747,420
  136. and we can arrange for you to get an original.
  137.  
  138.  
  139. 4.   REQUIREMENTS
  140.  
  141.      PT Scorekeeper runs on the IBM PC family of computers,
  142. including the XT, AT and PS/2 along with all true IBM compatibles
  143. and clones.  PT Scorekeeper requires DOS 2.1 or higher and at
  144. least 512 K of RAM.  It will run on any 80 column monitor. The
  145. program was written with a color monitor (CGA/EGA/VGA) in mind. 
  146. Monochrome monitors will suffice but color interpretations may
  147. not look as aesthetically pleasing.  However, they will still be
  148. readable.  A hard disk is not required but recommended for the
  149. speed at which it can access records.  This program will work on
  150. a single drive computer, either 360K or 720K 3.5" floppy drive. 
  151. Ideal for laptops and you can enter the data right at the PT
  152. test!  An 80 column printer is needed for printing the reports.
  153.  
  154. 5.   OVERVIEW
  155.  
  156.      Prior to running PT Scorekeeper, I would like to go over a
  157. few of the underlying principles that the program uses during its
  158. execution.  Knowing these will better help you to understand why
  159. the program behaves as it does.
  160.  
  161. Principle One:
  162.  
  163.           A soldiers personal information must be entered first
  164.      prior to any PT test scores being entered for this soldier. 
  165.      Any attempt to enter a PT test score for a soldier who does
  166.      not as yet exist in the database will not be accepted (user
  167.      will be warned too).  The reason is that there is no way the
  168.      program can calculate the test score without the soldiers
  169.      personal information being available.  I could have just let
  170.      it be entered and then later the user could enter the
  171.      soldiers personal data and perform a global recalculation. 
  172.      But this assumes that the user will remember to do it.  If
  173.      the user forgets, erroneous reports will be printed due to
  174.      the users mistake.  I try to prevent the user from making
  175.      mistakes as best as possible.
  176.  
  177. Principle Two:
  178.  
  179.           When you delete a soldier from the database it is
  180.      assumed that you also intend to delete his PT test scores as
  181.      well.  Since those scores are only taking up room in the
  182.      database and have no soldier personal data to recalculate
  183.      on, they are effectively useless.  Therefore, when you
  184.      delete a soldier, everything about him is deleted too.  
  185.  
  186. Principle Three:
  187.  
  188.           After entering or viewing/changing a PT test, the score
  189.      is AUTOMATICALLY updated or calculated based on the soldiers
  190.      personal data and the PT test data.  This is done after you
  191.      leave the input screen.  So you will not see the results of
  192.      the changes until you view or edit the PT test again.  The
  193.      reason for this is that it is much simpler to perform the
  194.      final calculation when the user has confirmed the test
  195.      information by saving the PT test data.  I have assumed
  196.      that, for the most part, you will enter PT test data in mass
  197.      after a test and then print a report with the results.  For
  198.      the occasional glance at the score, simply search for the
  199.      same test after entering it to see the calculated score.
  200.  
  201. Principle Four:
  202.  
  203.           All the necessary information about the soldier is
  204.      available when entering personal information.  Each field in
  205.      the record is necessary for calculations, maintenance of the
  206.      records or printing reports.  Therefore, you must enter the
  207.      information all at once.  This eliminates the possibility of
  208.      the user entering everything but the birthday (for example)
  209.      for a soldier and then trying to enter PT test results. 
  210.      This would cause errors since the soldiers age at the time
  211.      of the test is calculated from his birthday.  You may
  212.      think, "Oh, I'll enter that later, I do not know it right
  213.      now."  It is much easier to avoid these simple mistakes
  214.      right from the start.  The program will not accept half
  215.      entered records for the soldier's personal information or PT
  216.      test results.
  217.  
  218. Principle Five:
  219.  
  220.           You must perform a recalculation of all test scores if
  221.      you have made a change to a soldier's personal data after
  222.      entering some of his/her PT tests.  For example, you change
  223.      a soldier's birthday because you made a mistake when
  224.      entering it initially but you have already entered some PT
  225.      tests for him.  The PT test results have already been
  226.      calculated based on the mistake.  Luckily, all you have to
  227.      do is to a global recalculation.  Everything will be up to
  228.      date after that.
  229.  
  230. 6.   PC-DOS/MS-DOS
  231.  
  232.      It is not the purpose of this documentation to give you an
  233. education concerning the Disk Operating System and its commands. 
  234. Any questions concerning it should be referred to your DOS
  235. manuals for such things as copying, deleting, formatting, etc.
  236.  
  237. 7.   INSTALLATION
  238.  
  239.      PT Scorekeeper is distributed as a self-extracting archive
  240. file.  It should be named PT100.EXE and nothing else.  Run this
  241. program by typing 'PT100' and hitting return.  It will un-extract
  242. all the files as you watch.  You no longer need PT100.EXE and can
  243. erase it or copy for backup purposes, etc.  Check the packing
  244. list in the previous few pages to be sure all files are present.
  245. First print up the documentation, which you are now obviously
  246. reading.  I assume you are reading this from a text editor the
  247. first time as most people do.  You are now ready to go.
  248.  
  249. 8.   EXPERIMENTING
  250.  
  251.      Run PT Scorekeeper by typing 'PT' and hitting return.  You
  252. will be able to enter data into the program to experiment and
  253. follow along with the rest of the manual.  When you feel
  254. confident that the program works and you understand the
  255. principles that guide it, choose the 'Clear the databases' menu
  256. selection from the main menu.  This will allow you to delete all
  257. the information in the databases so that you may start from
  258. scratch!  So play around with the program and get comfortable
  259. with it and then delete all your experimental data.  Then you can
  260. start out fresh with all your soldiers and their PT tests.
  261.  
  262. 9.   TITLE SCREEN AND CREDITS
  263.  
  264.      The first screen you should be looking at is the title
  265. screen.  It has the version number which shows you which version
  266. of the program you are currently running.  Newer versions have
  267. more features and any discovered bugs worked out of them.  So if
  268. you see a more up-to-date version floating around, grab it and
  269. read the manual to see how to properly install an UPDATED
  270. version.  This is the first version distributed so you need not
  271. worry about that.  The usual disclaimer that all software
  272. programs have is displayed at the top of the screen so that there
  273. is no way you can say you did not see it.  I always ignore them
  274. too, but you should read it anyway.  Hit any key to continue to
  275. the main menu.
  276.  
  277. 10.  MAIN MENU
  278.  
  279.      Now you should be looking at the main menu.  Selections are
  280. grouped logically by category for your convenience.  You make a
  281. choice by either placing the lite-bar over your selection and
  282. hitting return or simply hit the key associated with your
  283. selection.  We will now examine all the possible main menu
  284. choices.
  285.  
  286.      A.   Add a solider
  287.  
  288.           This is the option you chose when you wish to add a
  289.      soldier's personal information to the database.  Only enter
  290.      the information once.  From then on, you should only view,
  291.      change, or delete the information.  Never enter information
  292.      for the same soldier twice using this option.  If you do,
  293.      the program will use the first record it comes to when it
  294.      calculates his/her PT test scores.  Enter all the
  295.      information requested.  Hit enter on the last field or hit
  296.      PgDn/PgUp to exit, saving the data.  Hit the ESC key at any
  297.      time to exit without saving the data.  Hit the F1 key while
  298.      on any field for help.
  299.  
  300.      B.   Delete a soldier
  301.  
  302.           Select this option when you want to delete a soldier
  303.      and all his/her PT test records.  You may search for the
  304.      soldier to delete by last name, unit or sex.  A preview box
  305.      will display some quick information about the soldier and
  306.      ask for confirmation of the deletion.  You may cycle through
  307.      a whole unit, for example, deleting at will in this manner. 
  308.      Remember, deletions are permanent!
  309.  
  310.      C.   View/Change a soldier
  311.  
  312.           Select this option when you want to examine or change a
  313.      previously entered soldiers personal data.  You may search
  314.      just like delete, by last name, unit or sex.  A preview box
  315.      will display some brief info and ask if that is the one you
  316.      were looking for.
  317.  
  318.      D.   Add a score
  319.  
  320.           This option will allow you to enter a soldier's PT test
  321.      result.  You must enter all the information requested.  The
  322.      link to the soldier is the SSN.  This saves you from having
  323.      to enter all the soldiers personal information each time
  324.      that you enter a PT test.  The SSN link is critical.  It may
  325.      seem like a hassle to enter it each time, but would you
  326.      rather enter the personal information every time or a simple
  327.      SSN?  The PT test results, individual event points and total
  328.      score, are calculated after you save the record.  Help is
  329.      available by hitting the F1 key.
  330.  
  331.      E.    Delete a score
  332.  
  333.           Selecting this option permits you to delete PT test
  334.      data.  As with deleting a soldier, you can search first by
  335.      SSN or date.  A preview box will display some info and ask
  336.      for confirmation.  This operates similar to B above.
  337.  
  338.      F.   View/Change a score
  339.  
  340.           Same as C above but you may search for PT tests by SSN
  341.      or date.  If you change any of the data, the PT test score
  342.      will be automatically recalculated based on the changes made
  343.      to the data.
  344.  
  345.      G.   Clear the databases
  346.  
  347.           Select this option when you want to delete all soldiers
  348.      and scores.  This is handy if you wish to start over again
  349.      for some reason.  
  350.  
  351.      H.   Reports
  352.  
  353.           This option takes you to the reports menu.  That is
  354.      where you will select the report that you wish to have
  355.      printed.
  356.  
  357.      I.   Recalculate all scores
  358.  
  359.           This will perform a global recalculation of all PT
  360.      scores.  This is handy if you think you may have change a
  361.      soldier's personal information after already entering in a
  362.      number of PT tests.  It is also handy to run every now and
  363.      then just to be sure.  While I haven taken all reasonable
  364.      precautions to insure that the PT scores are up to date,
  365.      this will make all records 100 % correct.  This option may
  366.      take some time, depending on the number of records in both
  367.      databases.
  368.  
  369.      J.   Browse thru soldiers
  370.  
  371.           This option will allow you to browse through the
  372.      soldiers information database.  You may look but you cannot
  373.      change anything.  Use the arrow keys to scroll past the
  374.      screen boundaries.  This is a full screen function.
  375.  
  376.      K.   Browse thru PT scores
  377.  
  378.           Select this option to browse through the PT test
  379.      database.  Again, you may look, but not touch.  Arrow keys
  380.      will scroll past the screen boundaries.  Please note:  the
  381.      pushup raw points is actually stored in the PUSHUP column. 
  382.      While the calculated points are stored in the RAWP column. 
  383.      The same is true of fields for the situps and run.  This was
  384.      an oversight of mine in the naming of the fields.  Please
  385.      remember this when viewing the data.  A quick way to
  386.      remember which is which, is that the calculated points are
  387.      always greater than the raw points.  The program runs fine,
  388.      I simply misnamed the 6 fields.  They are so embedded in the
  389.      code at this point, that is not worth the effort to rename
  390.      them.  Besides, they are only memory pointers to the program
  391.      at the executable level anyway, so it does not matter
  392.      anyway.
  393.  
  394.      L.   Exit to DOS
  395.  
  396.           This option will perform some maintenance operations
  397.      and then quit the program.  You will then be back at the DOS
  398.      prompt.  This option is the only valid way to exit the
  399.      program.  Many people always like to just turn off the
  400.      computer in the middle of a program if they are done.  Many
  401.      programs keep files open constantly during their operation. 
  402.      By simply turning off the computer, you do not give the
  403.      program or DOS the chance to properly close those files. 
  404.      This results in fragmented sectors, bad files and other
  405.      problems.  PT Scorekeeper only opens files when needed and
  406.      closes them right after it is finished with them.  But it is
  407.      always good practice to exit gracefully from any program
  408.      including this one.
  409.  
  410. 11.  REPORT MENU
  411.  
  412.      This menu displays 5 possible reports that you may print. 
  413. More reports may be added by letting me know exactly what you
  414. would like to see.  Contact me through COMPUSERVE 73747,420 if
  415. you desire additional reports.
  416.  
  417.      A.   Master Soldier Roster
  418.  
  419.           This option will print an alphabetical list of all
  420.      soldiers in the database along with their personal
  421.      information.  Rank, unit, SSN, birthday and sex is also
  422.      list.
  423.  
  424.      B.   Soldiers Listed by Unit
  425.  
  426.           Selecting this option will print a report of all
  427.      soldiers grouped by unit.  Name, rank, SSN, birthdate and
  428.      sex will also be printed.  This option is similar to the
  429.      previous option except that you are looking at units first
  430.      and then the soldiers in them.
  431.  
  432.      C.   PT Tests Listed by Soldier
  433.  
  434.           This option prints a report of all the PT tests in
  435.      chronological order grouped by the soldiers in alphabetical
  436.      order.  This report is handy for examining or tracing your
  437.      soldiers progress in PT over time.  Prints test date, raw
  438.      and calculated scores for the test, total score and whether
  439.      the individual passed or not.
  440.  
  441.      D.   Soldiers Overdue for a PT Test
  442.  
  443.           This option prints a listing of all soldiers due for a
  444.      PT test as of the current date.  This is assuming that your
  445.      system has an up-to-date clock/calendar (which nearly all
  446.      do).  Prints the name, rank, reason for being overdue, last
  447.      test date and whether or not they passed it.
  448.  
  449.      E.   Soldiers Who Failed Last PT Test
  450.  
  451.           Selecting this option will print a list of all soldiers
  452.      who failed their last PT test and why.  Prints name, rank,
  453.      last test date, PT score and which events were failed.
  454.  
  455. 12.  MISCELLANEOUS
  456.  
  457.      When the program is run each time, it checks for the
  458. presence of the index (.NTX) files.  If they are missing or bad,
  459. it will recreate them.  This insures that searches will be speedy
  460. and using current information.
  461.      When you exit the program, housekeeping is performed
  462. internally.  This includes deleting invalid records, re-indexing
  463. the databases just to be sure (redundancy) and the databases are
  464. packed to free up the space used by deleted records.
  465.  
  466. 13.  HOW TO CONTACT THE AUTHOR
  467.  
  468.      I can be reached at the Air Force Institute of Technology
  469. until 19 DEC 89 (graduation).  My Email address on the AFITNET
  470. network is mkelly@blackbird.afit.af.mil.  From there I will be
  471. stationed at Fort Hood, TX.  I can always be reached on
  472. CompuServe at 73747,420.
  473.      Comments, suggestions for improvements, or bug reports are
  474. eagerly accepted.  I would like to hear about your use of the
  475. program and even suggestions for other programs.
  476.