home *** CD-ROM | disk | FTP | other *** search
/ Colossal Cookbook / ColossalCookbook.cdr / diet / 573 / slimmer.doc < prev    next >
Text File  |  1989-09-25  |  48KB  |  968 lines

  1.    S L I M M E R    R E V   2.1   D A T E D    S E P    2 5,   1 9 8 9
  2.  
  3.              (c) copyright 1988, 1989 by George D. Summers
  4.  
  5.  
  6. ****************************** WARNING ****************************************
  7. *                                                                             *
  8. *   SLIMMER CREATES OR WRITES TO ONE OR MORE FILE(S) EVERY TIME YOU RUN IT!   *
  9. * THEREFORE, MAKE YOURSELF A WORKING COPY OF SLIMMER & KEEP THE ORIGINAL IN A *
  10. * SAFE PLACE FOR REFERENCE.                                                   *
  11. *                                                                             *
  12. ****************************** WARNING ****************************************
  13.  
  14.  
  15.         DEDICATION
  16.  
  17.     SLIMMER is dedicated to the ultimate programmer - the  creator  of  the
  18.     universe.
  19.  
  20.  
  21.         OVERVIEW
  22.  
  23.     SLIMMER  will do the following for you:
  24.         1. Calculate your ideal weight.
  25.         2. Calculate  your  ideal calorie requirement.
  26.         3. Keep  track  of  your  weight  and  calorie intake and plot your
  27.     progress.
  28.         4. Provide  you  with an extensive look-up data base  of food types
  29.     with their corresponding calorie values.   Allows  you  to  select  and
  30.     scale  items  from  the  food  tables  for your daily calorie list.
  31.         5. Provide for custom food tables for each user.
  32.         6. Allows  the  user to save the last seven (days of) daily calorie
  33.     lists. These lists may be recalled and edited - and even  copied  to  a
  34.     different  date  if  desired.
  35.         7. Various types of exercise may be selected by the user and may be
  36.     scaled and saved in the daily calorie lists.
  37.         8. Daily  calorie  lists  can  be  printed  (or  if  no  printer is
  38.     on-line, a print file will be written.)
  39.  
  40.  
  41.         SYSTEM REQUIREMENTS
  42.  
  43.     SLIMMER requires a computer with at least 285K of memory  in  which  to
  44.     load.  If  your  computer has a math co-processor, SLIMMER will use it.
  45.     SLIMMER can be run on one and two-disk systems, but runs  fastest  when
  46.     loaded to and run from a hard disk-equipped system.
  47.  
  48.  
  49.         INSTALLATION
  50.  
  51.     SLIMMER  has  a  large  number  of  data  files  (77  of them) that are
  52.     displayed on the screen when you view the food tables. In addition,  it
  53.     has  as  many  as  seven  custom  food table files and/or daily calorie
  54.     lists, and then an overflow file that  accumulates  the  daily  calorie
  55.     lists  after  the  initial seven-day period. Finally, there is a master
  56.  
  57.                                     Page 1
  58.  
  59.  
  60.  
  61.  
  62.     file of daily date/weight/calorie values  (and  its  backup  file)  for
  63.     every individual user.  It is therefore recommended, if you have a hard
  64.     disk, that you create a subdirectory for SLIMMER and copy all the files
  65.     into  it.   For  those  without a hard disk, run SLIMMER from your copy
  66.     disks after you have safely put away your original. When running from a
  67.     floppy disk, file maintenance is important since  SLIMMER  will  create
  68.     new  files  or addend existing files and eventually fill your disk.  To
  69.     assist you in keeping track  of  the  space  available  on  your  disk,
  70.     SLIMMER  will  report  the  space remaining on the default drive in the
  71.     lower right hand corner of the screen. The message will  only  come  on
  72.     when  the  space  is  less  than  10,000 bytes and will stay on for two
  73.     seconds.  When you see this message, you are advised  to  look  at  the
  74.     files on the disk to see which ones could be deleted.
  75.  
  76.     To deal with space limitations of non-hard disk systems:
  77.  
  78.         1. SYSTEM WITH ONE 360K FLOPPY DISK -
  79.          Copy the SLIMMER.EXE and SLIMMER.DOC files  onto  a  working  copy
  80.     disk  #  1.  Copy all the other files to another working copy disk # 2.
  81.     Put your original disk away in a safe place. Put disk # 1 in your drive
  82.     and type SLIMMER <ENTER>. After the program  has  loaded  and  you  are
  83.     asked  for  your  name, change to disk #2 before entering anything. The
  84.     n$.CAL file that you create (your name is = n$) will eventually get too
  85.     large and will have to be deleted periodically. If you have  more  than
  86.     one  user in your household, it is recommended that each one have their
  87.     own working copy disk # 2. Certain versions of DOS have a limitation on
  88.     the number of files you can have on a floppy disk - possibly  a  number
  89.     like  112  files.  With multiple users, this limit is quickly exceeded.
  90.  
  91.         2. SYSTEM WITH TWO 360K FLOPPY DISKS -
  92.         With two floppy drives, follow the directions  above  for  the  one
  93.     disk  system  and  prepare  disks  #  1 and # 2. In addition, copy file
  94.     AB.BAT from the original SLIMMER files to disk # 2. This BAT  file  has
  95.     the following two lines in it:
  96.  
  97.               path = a:\;b:\;
  98.               slimmer
  99.  
  100.     Disk  # 2 goes into your A> drive, and disk # 1 goes into B>. Change to
  101.     your A> drive  by  typing  A:<ENTER>.   Start  the  program  by  typing
  102.     ab<ENTER>.  This activates the AB.BAT file and starts SLIMMER. All your
  103.     daily files will now be written to go onto the floppy disk  in  the  A>
  104.     drive,  and  the SLIMMER.EXE program will be executed from the B> drive
  105.     via the path command.
  106.  
  107.         3. SYSTEM WITH ONE OR MORE 3-1/2" DISKS -
  108.     In  this  case,  since the 3-1/2" disk holds at least 720K, then simply
  109.     copy your entire complements of SLIMMER files unto a  working  diskette
  110.     and  save  your  original  copy  of  SLIMMER. Again, there may be a DOS
  111.     limitation on number of files allowed on a floppy, so  make  a  working
  112.     diskette copy for each person to use. For the convenience of REGISTERED
  113.     users, SLIMMER is available to them on a 3-1/2" disk.
  114.  
  115.                                     Page 2
  116.  
  117.  
  118.  
  119.         4. IBM AT OR EQUIVALENT WITH HIGH DENSITY 5-1/4" DRIVE
  120.     Since  SLIMMER  writes to and updates files in the default drive, it is
  121.     strongly recommended that you never run SLIMMER from a 360K disk in the
  122.     AT's high density drive. Either copy SLIMMER to a subdirectory  on  the
  123.     hard disk, or copy it to a high density disk before running it.
  124.  
  125.         RUNNING SLIMMER
  126.  
  127.     To  run  SLIMMER,  type SLIMMER and press <ENTER> after you have either
  128.     entered the SLIMMER subdirectory on your  hard  disk,  or  are  on  the
  129.     floppy  drive containing your working copy of the SLIMMER files.  After
  130.     you have run SLIMMER a few times and get tired of the opening  screens,
  131.     you can bypass them by entering SLIMMER n$ and pressing return where n$
  132.     is  your name (or the file name you want to view). For example, you can
  133.     view the data for Slim by typing SLIMMER SLIM, then  pressing  <ENTER>.
  134.     (For  the  single  360K  disk system user, (1. above), you really don't
  135.     have enough room on a single floppy disk to use this option.)
  136.  
  137.  
  138.         MONOCHROME MONITORS AND LAPTOPS
  139.  
  140.     SLIMMER makes extensive use of color in its screens and  windows.  This
  141.     looks  great on color monitors and in greyscale tones. The truly "black
  142.     and white" monitor (usually amber or  green),  however,  will  be  very
  143.     difficult  to  read  for some color combinations. For you without color
  144.     capability, you may want to  try  the  "black  and  white"  version  of
  145.     SLIMMER.  As  you start up SLIMMER, simply type in SLIMMER BW to run in
  146.     black and white, or as in the example in the previous  paragraph,  type
  147.     in  SLIMMER  BW  SLIM  to run in black and white and bypass the opening
  148.     screens. A one-line .BAT file will save you a lot of typing.  It  would
  149.     contain  the  one-line SLIMMER SLIM command (e.g.), and could be called
  150.     1.BAT or similar simple name. SLIMMER could then be run by entering "1"
  151.     and then  "<RETURN>".  For  those  of  you  with  laptops,  SLIMMER  is
  152.     available  on  3-1/2"  diskettes.  Please  indicate your preference for
  153.     3-1/2" or 5-1/4" diskettes.
  154.  
  155.         DEBUGGING
  156.  
  157.     Every effort has been made to program SLIMMER with sufficient  internal
  158.     checks  to  preclude the more common bugs. It will, for example, open a
  159.     new file for you if it can't find one already started.  Error  comments
  160.     are  provided  when  the  data  that  you  input doesn't match what the
  161.     program expects to see. With a program of  this  size,  I'm  sure  I've
  162.     overlooked  some  combinations  that might give strange results. Please
  163.     contact  me  with  the  circumstances  and   a   description   of   any
  164.     abnormalities  that  you  find. These abnormalities include any program
  165.     hang-ups without error message, errors in computations,  and  instances
  166.     where  you don't get the response that you would expect to see. (See my
  167.     name and address at the end of this document) SLIMMER will  be  updated
  168.     as changes become necessary.
  169.  
  170.                                     Page 3
  171.  
  172.         SLIMMER VERSION #
  173.  
  174.     Version  1.0   - initial  release  - June 1988
  175.     Version  1.0a  - corrected routines for monochrome monitors - June 1988
  176.     Version  2.0   - added  calorie  counter  &  improved  editor  and plot
  177.                      routines - Feb 1989
  178.     Version  2.0a  - Fix  for  five food table files to enable space bar to
  179.                      tag files - May 1989.  Fixed  so  that personal tables
  180.                      would be saved when going from edit to calorie counter
  181.                      mode.  Released SLIM2FIX.ARC & SLIM2FIX.ZIP for use by
  182.                      Version 2.0 users.
  183.     Version  2.0b  - Fix  to  link  between editor and food tables.   Added
  184.                      expanded fast food menu section to food tables. Treats
  185.                      exercise as a (negative) food category  for easy input
  186.                      and scaling of multiple daily exercises. Aug 1989.
  187.     Version  2.0bx - Introduced EGA 640 x 350 color graphics in addition to
  188.                      the the CGA 640 x 200 B&W and monochrome graphics. Fix
  189.                      to CGA graphics of version 2.0b.
  190.     Version  2.1   - Fix to allow SLIMMER to run on computers with DOS 2.11.
  191.                      Sept 1989.
  192.                      
  193.         USE OF SLIMMER REV 1 FILES
  194.  
  195.     Whenever revisions are made, there's always a question of  what  to  do
  196.     with the old files from the previous revision. In this case, if you use
  197.     a REV 1 file 'n$.SLM', SLIMMER will convert it to a REV 2 file. Be sure
  198.     to back up your REV 1 'n$.SLM'  file before you try this.  The 'n$.CAL'
  199.     file from  REV 1 should be either deleted, or you can call it into your
  200.     word processor and delete the null lines that look  like  "".   SLIMMER
  201.     will write  to  the 'n$.CAL' file after the seven daily files have been
  202.     filled up.
  203.  
  204.         IS SLIMMER USER FRIENDLY?
  205.  
  206.     Whether  a  program  is  "user  friendly"  or  not is a function of the
  207.     amount of you must spend in reading and  re-reading  the  documentation
  208.     and  whether  there  is  sufficient  help  online.  There  are  certain
  209.     conventions that have been used within SLIMMER  that  try  to  make  it
  210.     respond in the way that you might expect for a given keystroke. Some of
  211.     these  are  listed  below:
  212.           <ENTER> - is used to select highlight bar items, to indicate  the
  213.     end  of  keyboard  entries,  and  to  indicate  the  end  of a selected
  214.     function.
  215.           <ESC> - used to cancel a function  and  return  to  the  previous
  216.                   menu.
  217.           <SPACE BAR> - used only in food tables  to  tag/untag  your  food
  218.     selections.
  219.           <ARROW  KEY>  - UP and DOWN arrows are used to move the highlight
  220.     bar up and down. In addition, HOME and PAGE UP move the bar to the  top
  221.     of the menu, and END and PAGE DOWN move the bar to the end.
  222.           < + and - > - The  +  and  -  keys  are  used  to  increment  and
  223.     decrement  the  date  and  weight input values and help to decrease the
  224.     keystrokes required to input data. In  general,  there  is  a  list  of
  225.     functions  at  the bottom of each menu or table that will indicate your
  226.     choice of keys to press.
  227.  
  228.     "Bulletproofing"  is  a  term  used  to indicate that the user input is
  229.  
  230.                                     Page 4
  231.  
  232.  
  233.     restricted to certain keystrokes. For example, if you are prompted  for
  234.     a  date  entry, the keyboard in a "bulletproofed" environment will only
  235.     respond to entries from 0 through 9 and the  /  key.  Other  keys  will
  236.     either not respond or will produce a beep. Much of SLIMMER's user input
  237.     has  been bulletproofed.  Where there is a restriction on the length of
  238.     an input item, the length is highlighted and the input is restricted to
  239.     that length. Normal editing keys can be used  for  most  of  the  input
  240.     items. These include the <BACK SPACE>, <INSERT>, <DELETE> and the arrow
  241.     keys.  In addition, <CTRL - END> will clear and let you start over with
  242.     the input item.
  243.  
  244.     There is a lot of checking, error trapping, and file manipulation  that
  245.     goes  on  behind  the scenes that you the user never get to see. If the
  246.     program is well written, you will never see an error message,  and  the
  247.     program will respond as expected. You the user can help to make SLIMMER
  248.     friendlier by providing your comments and suggestions.
  249.  
  250.  
  251.         BACKGROUND COLOR
  252.  
  253.     Whenever  you  run  SLIMMER  in  its  color mode by simply entering the
  254.     command SLIMMER, the program will allow  you  to  select  a  background
  255.     color  from  a  list  of  four  colors.  After  you  have selected your
  256.     background color, SLIMMER will recall it whenever you subsequently  run
  257.     SLIMMER  using  the  command  in  the form SLIMMER n$ (where n$ is your
  258.     name). If you want a different background, then run it with the  single
  259.     command SLIMMER to get the selection option.
  260.  
  261.     NOTE:  If  you have a monochrome monitor running in the black and white
  262.     mode, your background choice is either black or white.
  263.  
  264.  
  265.         THE OUTPUT FILES
  266.  
  267.     The first time you run SLIMMER, it will  create  a  new  file  in  your
  268.     name, It requests your first name, then uses the first eight letters of
  269.     your  name  plus  the extension SLM to create a file such as "JOHN.SLM"
  270.     for a user named John. An example file named SLIM.SLM is included  with
  271.     SLIMMER  to  allow you to see a file with some daily weight and calorie
  272.     data points in it. It can be viewed by entering the name SLIM when your
  273.     name is requested. The plot of Slim's data can be  seen  in  either  or
  274.     both low or high resolution depending on your graphics capability.
  275.  
  276.     Two  additional  types  of  files are created by SLIMMER. These are the
  277.     daily calorie counter files (n$.CL1 thru n$.CL7  and  n$.CAL)  and  the
  278.     custom food tables (n$.SP1 thru n$.SP7)
  279.  
  280.     SLIMMER  will  only  save 100 days worth of weight and calorie data. On
  281.     the 101st day, it will discard the first value (day 1) and renumber all
  282.     the other values to maintain a maximum of 100 points.
  283.  
  284.     If you want to keep a complete  record  of  your  weight,  and  calorie
  285.     file,  you  are  advised  to  make  a  copy of your output file when it
  286.     reaches 100 data points, and every 100 data points thereafter.
  287.  
  288.                                Page 5
  289.  
  290.  
  291.     HINT: You may, if you wish, use a different name in order to keep  your
  292.     old  data  on-line. For example, SLIM has accumulated 100 days worth of
  293.     data. Now, starting on the 101st day, he logs in as SLIM1 for the  next
  294.     100  days and so on. This will allow him to look at his old file at any
  295.     time by logging in as SLIM.
  296.  
  297.  
  298.         DATE ENTRIES
  299.  
  300.     When you first enter SLIMMER, you will be prompted  for  a  date.  This
  301.     date  is the default date for the daily date/weight/calorie file. A bit
  302.     further along, when you enter the  calorie  counter  section,  you  are
  303.     asked  again for a date. There are several other places where dates are
  304.     entered or modified. In each case, the date from your computer's  board
  305.     is  used  as  the initial starting date. You need only press <ENTER> to
  306.     accept the date, or press + or - to increase or decrease  the  date  by
  307.     one  day.  You  can also enter the date from the keyboard. When data is
  308.     entered in non-sequential order into the date/weight/ calorie  file  it
  309.     will be sorted and rearranged as you leave that section of the program.
  310.     Plotted  data is output by date entry number rather than date. In other
  311.     words, if you have 7 daily weights -  followed  by  a  2-week  vacation
  312.     away  from  the scales - followed by seven more daily weights, it would
  313.     appear as 14 consecutive data points in your output file  and  on  your
  314.     graph.
  315.  
  316.  
  317.  
  318.  
  319.         YOUR PERSONAL DATA AND GOALS
  320.  
  321.     This  section of the program should be completed by the user during his
  322.     or her first session with SLIMMER. Simply start at the top and move the
  323.     select bar using the up & down arrow keys. The first  item  "List  your
  324.     Personal  Data"  will be empty until you complete the rest of the item.
  325.     Carefully enter your response to each selected item as  you  work  your
  326.     way down the menu - from frame size down to your height. Finally select
  327.     the  "Calculate  Weight and Calorie Goals" item to calculate your ideal
  328.     weight and calorie goals.
  329.  
  330.     As you progress with your diet, some of your initial data  may  change.
  331.     You  can update your data at any time and have SLIMMER recalculate your
  332.     ideal weight and calorie values.   The  items  that  could  change  and
  333.     affect   calculated  values  are  the  Activity  level  and  the  Frame
  334.     definition.
  335.  
  336.     Note: Those of you  who  have  extremely  small  wrists  or  very  long
  337.     slender  fingers  may  find  yourselves  in  the  "  S " or Small frame
  338.     category. If this happens, feel free to upgrade yourself to the "  M  "
  339.     or  Medium  frame  category.  The  method used in SLIMMER to select the
  340.     frame size is admitedly crude - and your doctor's definition should  be
  341.     taken instead.
  342.  
  343.                                     Page 6
  344.  
  345.  
  346.  
  347.         UPDATE / EDIT WEIGHT & CALORIE DATA
  348.  
  349.     The  daily  plot  data of date, calories, and weight is edited with the
  350.     weight / cal / date editor. It again has  enough  checks  and  balances
  351.     built in to be fairly foolproof. You can either enter new daily data or
  352.     edit  existing  data  with  the editor. The date may be accepted as the
  353.     date from your computer, or you can enter a value, or else increment  /
  354.     decrement  the  prior date date by one day. The default weight is taken
  355.     as the prior day's value, and it can be incremented up or down with the
  356.     + and - keys. The weight can be entered here, or else will be requested
  357.     as you leave the "Count Calories....." section.  The  calorie  data  is
  358.     directly  entered  into  this file when you leave the "Count Calories /
  359.     View Food Tables" section of the program. The data file drops  off  the
  360.     oldest  set  of daily data and renumbers all the data to have a maximum
  361.     of 100 values. If you have entered a weight and date value on the wrong
  362.     line and want to "zero out" the values, then enter the letter N (or  n)
  363.     representing  "NULL"  for  the  date. That line will be removed and the
  364.     remaining data rearranged.
  365.  
  366.  
  367.         GRAPH YOUR PROGRESS
  368.  
  369.     Plots of your daily weight, calories, or fat calories can  be  selected
  370.     in  either  low or high resolution. If in doubt about the configuration
  371.     of your system, try them both. You will need a color  graphics  adapter
  372.     (CGA  or  EGA  or VGA) to view the high resolution graphs. SLIMMER will
  373.     let you know if it can't find a graphics card. If you have  placed  the
  374.     command  GRAPHICS  in your AUTOEXEC.BAT or have executed the command at
  375.     some time before entering SLIMMER and if you have a CGA  graphics  card
  376.     or better, and if your printer can do IBM graphics, you will be able to
  377.     copy  your  high  resolution plots to the printer with the <SHIFT-PRINT
  378.     SCREEN> command.
  379.  
  380.  
  381.         COUNT CALORIES / VIEW FOOD TABLES
  382.  
  383.     This section of the program is used  to  generate  your  Daily  Calorie
  384.     Counter  lists.  It is both the most complex and also the most powerful
  385.     section of the program. Its component parts are as follows:
  386.          1.  SLIMMER food and exercise tables
  387.     The  food  tables,  starting with  "Beverages"  and  going  through the
  388.     "Vegetables"  are  selected  using  the arrow keys.  Most of these line
  389.     items have another set of selectable tables. When you have a food table
  390.     displayed on  the  screen,  you  will  see  a flashing line which reads
  391.     "Calorie Counter Mode".  When you are in this mode, the    <SPACE  BAR>
  392.     key  will  print  a  marker  on the highlighted line. (If the marker is
  393.     already shown, then the <SPACE BAR> will remove it). Use the arrow keys
  394.     to  select a line - then mark it with the <SPACE BAR> key.
  395.     You will now be asked to enter a scale factor. The default value  of  1
  396.     will  save  the  line as shown. If you enter a 1.5, the quantities will
  397.     all be multiplied by 1.5 before the line is transferred to  your  daily
  398.     calorie  counter  list.   A scale factor less than .001 will return the
  399.     line with a factor of 1.  The exercise tables function in the same way.
  400.  
  401.                                     Page 7
  402.  
  403.  
  404.  
  405.     Simply select the items that you have eaten that day. Notice that  when
  406.     you  select  an item, sometimes another item is selected along with it.
  407.     This is done to add a descriptive line to your  daily  Calorie  Counter
  408.     List.  When  you  are  finished selecting all the applicable items on a
  409.     given food table, press <RETURN> to add the items to your daily calorie
  410.     counter list. If you press <RETURN> before you're finished tagging  the
  411.     items on that food table, you can press <RETURN> again to call back the
  412.     same table. Note that the previously tagged lines are no longer tagged.
  413.     They  are,  however,  in your daily calorie counter list and there is a
  414.     flashing arrow <=== on the screen to remind you to  go  there  to  save
  415.     your  daily  calorie counter list when you have finished selecting your
  416.     items for the day. *****THIS IS THE ONLY WAY YOUR DAILY CALORIE COUNTER
  417.     LIST CAN BE SAVED*****
  418.     NOTE: You will be given another opportunity to edit the selected  items
  419.     when you select the "Edit Calorie Counter List for n$" line, below.
  420.  
  421.         2. Edit Calorie Counter List for n$
  422.     When you have entered  all  the items,  you  can  now edit the list for
  423.     quantity by selecting the line  "Edit  Calorie Counter List for n$". In
  424.     this editor, you first select the  line number, then enter a multiplier
  425.     for the line. If instead of 1 ounce you want three  ounces,  you  enter
  426.     a 3 as the multiplier. Similarly, enter 0.5 to get a value of .5 ounce.
  427.     Experiment a bit with  this  until you get the hang of it. NOTE THAT IF
  428.     YOU  SCALE  A  LINE BY 0,  THE LINE WILL BE DELETED.   When you  finish
  429.     editing  that  page,  press  <ENTER>  for  either the next page or else
  430.     to leave the editor.   You can return to this editor to revise it after
  431.     you leave it.  As  you  leave,    you  will  be  given  the opportunity
  432.     to enter your daily weight (if you  didn't do it before in the  "Update
  433.     /  Edit  Weight  &  Calorie  Data" section).   Finally, the  daily data
  434.     is entered into your daily date / weight / calorie table and your daily
  435.     calorie counter list is saved.
  436.  
  437.     NOTICE: NO DATA WILL BE SAVED AS EITHER A DAILY CALORIE COUNTER LIST OR
  438.     IN THE DAILY DATE/WEIGHT/CAL TABLE UNLESS YOU PASS  THROUGH  THIS  EDIT
  439.     ROUTINE.  The flashing arrow <=== will remind you that there is data in
  440.     the computer's memory that hasn't been saved.
  441.  
  442.         3. Special Items for n$
  443.     When you first enter one of these tables, you will see a list  of  Item
  444.     numbers.  You  will  also  see the same flashing "Calorie Counter Mode"
  445.     sign.  This table is where you can place special items that are not  on
  446.     the  food  lists. These are truly unique tables for you alone. In order
  447.     to enter items into this table, move the select bar to  the  last  line
  448.     marked  "<Select  to  Toggle  between EDIT and CALORIE COUNTER modes>".
  449.     When you press the <ENTER> key, you will see a flashing "[ EDIT MODE ]"
  450.     sign. You are now in an editor to enter your special  items.  Select  a
  451.     line  and  follow  the  format  on the food table items by entering the
  452.     description, quantity, calorie and fat calorie values for any line that
  453.     you select. You will be prompted for each of the four entries  on  each
  454.     of the lines. A conservative number for use in defining fat calories is
  455.     9  fat  calories  per  gram of fat. When you are finished, use <ESC> to
  456.     leave the editor or select the last line to go to the  CALORIE  COUNTER
  457.  
  458.                                     Page 8
  459.  
  460.  
  461.  
  462.     mode.  Your Special Items files will be selectable just as are the Food
  463.     Table files.
  464.  
  465.         4. Hint
  466.     When you are near the top of the menu and want to go to the bottom line
  467.     of the menu, use the <PAGE DOWN> or <END> key. Similarly, the <PAGE UP>
  468.     or <HOME> keys take you to the top.
  469.  
  470.  
  471.         FILE MANAGEMENT SELECTIONS
  472.  
  473.     This section of the program will let you see which daily calorie  count
  474.     lists  are  stored  for  you. As you enter this section of the program,
  475.     there is a list of dates displayed on the left side of the  screen.  If
  476.     you  are just starting out, the list will be empty. Below the list will
  477.     be displayed "today's" date. The working date - or "today's"  date  can
  478.     be changed by selecting the "Change Today's Calorie Counter Date" line.
  479.     After  you  have  selected  a new date, it may coincide with one of the
  480.     dates on the left hand display of dates. If, you go from here into  the
  481.     "Edit  Calorie  Counter  List  ....."  section,  the  old  data will be
  482.     recalled and may be edited. If you want a blank list for that date, you
  483.     can select the "Erase Today's Calorie Count List"  item  to  clear  the
  484.     file  and  let  you start over for that date. The daily date/weight/cal
  485.     entry for that date will not be changed, but you will be given a chance
  486.     to overwrite it  when  you  leave  the  "Edit  Calorie  Counter  ....."
  487.     section.
  488.  
  489.  
  490.     The  "Print  Your Daily Calorie Count List" line, if selected will send
  491.     your file to the printer. If you have no printer, SLIMMER will create a
  492.     print file  named  n$.prt  (where  n$  is  your  name).  This  file  is
  493.     overwritten  every  time  the printer is not found to be ready for use.
  494.     (so remember to print it when you get out of the program). If you don't
  495.     have a printer and use this option, your computer may be inactive while
  496.     the computer tries repeatedly  to  contact  the  non-existent  printer.
  497.     After  the  computer  has  tried  a  pre-determined number of times and
  498.     "timed-out", control will be returned  to  you.  If  control  does  not
  499.     return  to  you,  then  you can try the <CONTROL-BREAK> followed by the
  500.     <CONTROL-C> commands.
  501.  
  502.     NOTE: SLIMMER print files only use the standard  BASIC  print  commands
  503.     and should work with most printers. No attempts are made to change line
  504.     spacing,  to  skip  perforations, etc. I leave the printer settings for
  505.     you to do for your own individual printer prior to running SLIMMER.
  506.  
  507.  
  508.     You can recall a prior day's file into today's date (if  you  have  the
  509.     same  thing  to  eat each Friday, for example) by selecting the "Recall
  510.     Old List for Today's Date" line. You will be given a choice of the last
  511.     seven (or less) daily calorie count files that have been saved for you.
  512.     After the file is recalled, you  MUST  still  pass  through  the  "Edit
  513.     Calorie Counter List..." section in order to SAVE and process the data.
  514.     It is important to come here (to the FILE MANAGEMENT area) first if you
  515.  
  516.                                     Page 9
  517.  
  518.  
  519.  
  520.     want  to  recall  a  list  from seven days ago. Otherwise the data from
  521.     seven days ago is rolled into your n$.CAL file where you can no  longer
  522.     access it.
  523.  
  524.     NOTE:  NO  FILES  ARE  SAVED  IN  THIS SECTION OF THE PROGRAM. ALL FILE
  525.     UPDATES ARE PERFORMED IN THE "EDIT CALORIE COUNTER....." SECTION.  (See
  526.     item 2. above.)
  527.  
  528.     NOTE:  If  you  already have a file saved for today's date, you will be
  529.     unable to recall a file from the list of old files. You will physically
  530.     have to first select the "Erase Today's Calorie  Count  List"  item  to
  531.     clear  today's  file. Then you will be able to recall an old list. This
  532.     feature prevents the unintentional overwriting of a file over which you
  533.     had labored long and hard ...
  534.  
  535.  
  536.         COMMENTS FOR THE MORE TECHNICALLY MINDED
  537.  
  538.     The special food list tables that  you  prepare  for  yourself  (n$.SP1
  539.     thru  n$.SP7)  are formatted the same as the programs food list tables.
  540.     SLIMMER treats them both the same. If you were  to  enter  one  of  the
  541.     program's food list tables into your favorite word processor, you would
  542.     see something like this:
  543.  
  544.     "[ VEGETABLES ]"
  545.     "  Food                 Portion       Total    Sat Fat"
  546.     "                        Size       Calories   Calories"
  547.     " ----------------------------------------------------------"
  548.     "Lettuce,raw"
  549.     "  butterhead, Boston     (5-in diam)"
  550.     "                        1 head        20       trace     6"
  551.     "                        1 outer or"
  552.     "                        2 inner leaves"
  553.     "                        2 leaves      trace    trace     6"
  554.     "  crisphead, iceberg    (6-in diam)"
  555.     "                        1 head        70       1         11"
  556.     "                        (1/4 head)"
  557.     "                        1 wedge       20       trace     11"
  558.     "                        chopped or"
  559.     "                        shredded"
  560.     "                        1 cup         5        trace     11"
  561.     "  looseleaf, romaine    chopped or"
  562.     "                        shredded"
  563.     "                        1 cup         10       trace     18"
  564.  
  565.     When  you  study  this table, you will notice that there are numbers in
  566.     column 59 and 60 which don't show up on the screen when  SLIMMER  calls
  567.     up  the file. These numbers are a left-justified two digit line number.
  568.     When SLIMMER finds a number in column 59-60 of a  line  that  has  been
  569.     selected  in  the  Calorie  Counter  Mode, it will also select the line
  570.     indicated by the two digit number. For  example,  when  the  last  line
  571.     (line  20)  is  selected,  line 18 is selected with it. This is done so
  572.     that there will be enough descriptive information in your daily calorie
  573.  
  574.                                     Page 10
  575.  
  576.  
  577.  
  578.     counter file for you to  be  able  to  identify  the  items.  All  this
  579.     information is given to you for this reason:
  580.  
  581.     If  you  want your Special Food Table files have the same multiple line
  582.     selection  feature, you can edit your n$.SPx files (offline in your own
  583.     editor) to add the appropriate line numbers in columns 59 and 60.  Note
  584.     that the entire line must be enclosed with quotes "".
  585.  
  586.  
  587.         UNEXPECTED ERRORS AND LOCKUPS
  588.  
  589.     While  every attempt has been made to squash all the bugs, there may be
  590.     a few that remain. The bugs that throw the program suddenly back to DOS
  591.     are very hard to trace since no error messages are given.   An  attempt
  592.     has  been  made  within SLIMMER to include error-trapping code to cover
  593.     every line of the program. Therefore, if  an  error  should  occur,  an
  594.     error  comment  will  appear  and  you will be able to return to DOS by
  595.     pressing any key. Some multiple errors may even lockup your computer at
  596.     this  point.  (If  you  reach  such  a  point,  make  a  note  of   the
  597.     circumstances  and  drop  me  a  note  about it.) Try the control-break
  598.     followed by control-c to see if there is a response. If there is  none,
  599.     simply  reboot your computer (turn it off then on again) and it will be
  600.     none the worse for wear.
  601.  
  602.         NOT ENOUGH MEMORY TO LOAD SLIMMER?
  603.  
  604.     SLIMMER will require 285K to load. If  you  have  some  other  programs
  605.     loaded  in  memory and SLIMMER doesn't fit, you may have to remove some
  606.     of the other ones. As an aid in determining how  much  memory  is  left
  607.     after  SLIMMER  is loaded, run SLIMMER and whenever you are asked for a
  608.     date, respond with <ALT><F1>. This will trigger  a  routine  that  will
  609.     provide  you  with  the  memory  available. Since some of the arrays in
  610.     SLIMMER  are  allocated  dynamically,  the  memory  available  will  be
  611.     different in the various sections of the program.
  612.  
  613.         RANGE OF APPLICABILITY
  614.  
  615.     As  an Engineer, I often deal with the twin "concepts" of interpolation
  616.     and extrapolation. Interpolation means simply to obtain tabular  values
  617.     from  within the limits of the table. Extrapolation is fabricating data
  618.     beyond the limits of the table by making some assumptions to extend the
  619.     data. SLIMMER, on order to not quit every time that data  is  requested
  620.     from  beyond  the  limits  of  the  tables,  is  written  using  linear
  621.     extrapolation functions - much like weather forcasters do - and assumes
  622.     that what went on before will continue  into  the  future.  There  will
  623.     therefore  be  some error introduced into your ideal weight and calorie
  624.     calculations when you fall  outside  the  following  limits:
  625.  
  626.         Weight:            minimum = 90 lbs, maximum = 220 lbs
  627.  
  628.         Height: for men    minimum = 5'-1", maximum = 6'-3"
  629.                 for women  minimum = 4'-8", maximum = 5'-10"
  630.  
  631.                                     Page 11
  632.  
  633.  
  634.  
  635.         Age   : Adults 25 years of age and above. (If between  18  and  25,
  636.                 your  ideal  weight  could be reduced by one pound per year
  637.                 for every year below age 25.)
  638.  
  639.         Exercise Calories: are based on data given for a weight of 150 lbs.
  640.                 An adjustment is made for weight in the range of 110 lbs to
  641.                 190 lbs.  The  range  of applicability is therefore 110 lbs
  642.                 thru 190 lbs.
  643.  
  644.  
  645.  
  646.         SOURCE CODE
  647.  
  648.     For those of you who have Borland's Turbo Basic and want to have a copy
  649.     of  the  SLIMMER  source  code, it is available to REGISTERED users for
  650.     $10. For  unregistered  users,  the  cost  is  $45  (and  includes  the
  651.     registration). The source code is provided to registered users with the
  652.     request that any modification or variation of SLIMMER be released under
  653.     a  different  name.  I  wish  to reserve the name SLIMMER, SLIMMER.EXE,
  654.     SLIMMER.ARC, SLIMMER2, etc as unique  names  on  the  bulletin  boards.
  655.     SLIMMER is written and compiled with Turbo Basic Version 1.1.  (It will
  656.     compile with Version 1.0 if desired)
  657.  
  658.  
  659.         DISCLAIMER
  660.  
  661.     For obvious reasons, no claims are made or implied that SLIMMER is more
  662.     than  a database and a tracking tool. All medical data contained herein
  663.     is correct to the best of my  knowledge,  but  the  user  (YOU)  assume
  664.     complete  responsibility  for  the use of and the results of the use of
  665.     this software.
  666.  
  667.  
  668.         ON THE IMPORTANCE OF EXERCISE
  669.  
  670.     Dieting without a concurrent exercise  program  is  dangerous.  It  can
  671.     lead  to a serious loss of muscle and a drop in metabolic rate. Results
  672.     of a study were reported in  1984  in  "the  Yo-Yo  Syndrome"  by  G.L.
  673.     Blackburn,  M.D.,Ph.D.,  K.N.  Pavlou,  Sc.D.,  and  V. Zak in RxWeight
  674.     Control, Vol.2, No.5, Jun-Jul 1984.
  675.  
  676.     When 1000 calorie a day diets were administered to separate  groups  of
  677.     exercisers and non-exercisers, the following results were found:
  678.  
  679.                           EXERCISE GROUP        NON-EXERCISE GROUP
  680.  
  681.     Food Calories             1000/day              1000/day
  682.  
  683.     Total Weight Loss          19 lbs                18 lbs
  684.  
  685.     Body Fat Lost              23 lbs                11 lbs
  686.  
  687.     Muscle Gained               4 lbs                 -
  688.  
  689.     Muscle Lost                 -                     7 lbs
  690.  
  691.                                     Page 12
  692.  
  693.  
  694.  
  695.     If  you attempt to diet without exercise, you will reach a plateau at a
  696.     weight higher than your ideal weight, and  your  metabolism  rate  will
  697.     decrease as your body tries to compensate for the lack of calories. The
  698.     above table should help to convince you of the need to exercise.
  699.  
  700.  
  701.         A WORD OR TWO ABOUT CHOLESTEROL
  702.  
  703.     Cholesterol  comes  in  two  component  parts.  The  HDL  (high density
  704.     lepoprotiens)  and  the  LDL  (low  density  lepoprotiens).   The   HDL
  705.     transports  cholesterol  to  the  liver where it is eliminated. The LDL
  706.     carries the cholesterol in the blood and can clog  arteries  and  cause
  707.     heart  disease.  Typically, total cholesterol levels over 200 mg/dl are
  708.     of concern. You are not automatically risk-free if you test below  200.
  709.     If your HDL levels are too low, you can be just as succeptable to heart
  710.     disease.  Values  of  HDL  below  35  mg/dl  are  just  as bad as total
  711.     cholesterol levels over 200. The usual screening test in the $3  to  $5
  712.     range will only give you the total number of HDL and LDL combined. Your
  713.     doctor can arrange for a more sophisticated test that will give you the
  714.     component parts and a lot more - - .(for a lot $ more)
  715.  
  716.  
  717.     Ways to Help to Lower High Cholesterol Levels:
  718.  
  719.         1. Decrease or eliminate coffee and alcohol from your diet.
  720.         2. Include fish in your diet.
  721.         3. Include  soluble  fiber in  your diet - especially that found in
  722.     beans (pinto or navy) and from oat bran.
  723.         4. Exercise at least 3 or 4 times a week.  This helps increase  the
  724.     good cholesterol HDLs and decrease the bad cholesterol LDLs.
  725.  
  726.  
  727.         HOW TO USE THE FOOD TABLES TO LOWER YOUR BLOOD CHOLESTEROL
  728.  
  729.     The  food tables and data methods are based on "EATER'S CHOICE: PATIENT
  730.     GUIDE"  and  is  based  on  the  guidelines  of  the   American   Heart
  731.     Association. Eater's Choice is a system that allows you to choose foods
  732.     that you want to eat while you lower your blood cholesterol. The key to
  733.     the  plan  is controlling your intake of the nutrient that most affects
  734.     blood cholesterol levels - saturated fat.
  735.  
  736.     Saturated Fat:
  737.  
  738.     Fats contain a mixture of fatty acids - saturated,  monosaturated,  and
  739.     polyunsaturated.  Animal fats contain a greater proportion of saturated
  740.     fatty acids, which  raise  blood  cholesterol  levels;  vegetable  oils
  741.     usually  contain  a  greater proportion of polyunsaturated fatty acids,
  742.     which lower blood cholesterol levels. The more saturated the  fat,  the
  743.     more solid it is at room temperature. Examples of saturated fat include
  744.     beef fat, butter, lard, shortening, coconut oil, and chocolate.
  745.  
  746.     Figuring your Daily Allowance of Saturated Fat:
  747.  
  748.                                     Page 13
  749.  
  750.  
  751.  
  752.     The  Heart  Association  recommends that no more than 10% of your total
  753.     calories come from saturated fat. SLIMMER  will  calculate  your  daily
  754.     allowance  as  you  input  your initial values and it perform the ideal
  755.     weight and calorie calculations.
  756.  
  757.     Translating Your Saturated Fat Quota Into Foods:
  758.  
  759.     The Food Tables that are included in SLIMMER  list  the  saturated  fat
  760.     calories  in  foods.  Keep  track  of the foods you eat during the day,
  761.     along with their saturated  fat  calories.  Limit  your  saturated  fat
  762.     intake to the 10% level calculated by SLIMMER.
  763.  
  764.     You  may  want  to  begin by determining which foods your saturated fat
  765.     calories are coming from. You can then decide which foods to  cut  back
  766.     on  or  eliminate  to  lower your saturated fat intake. The food tables
  767.     will also help you choose foods low in saturated fat to substitute  for
  768.     foods high in saturated fat.
  769.  
  770.     Controlling Dietary Cholesterol and Other Fats:
  771.  
  772.     Dietary  cholesterol  can  be  controlled by simply eliminating the few
  773.     high cholesterol foods ( egg yolks, organ meats, sardines, and shrimp).
  774.     Substituting  polyunsaturated  margarines  and  oils  for  butter   and
  775.     shortening will give you adequate polyunsaturated fat.
  776.  
  777.     Sources:
  778.  
  779.     United  States  Department  of Agriculture, "Nutritive Value of Foods",
  780.     Home and  Garden  Bulletin  Number  72,  Revised  1981.  United  States
  781.     Department  of  Agriculture,  Handbook No. 8, Revised Sections 8-1 thru
  782.     8-12.
  783.  
  784.         ACKNOWLEDGEMENTS
  785.  
  786.     My thanks and a registered copy of SLIMMER to Rick Fothergill  for  the
  787.     TBWINDO.INC  window  routines  that make SLIMMER an attractive program.
  788.     For those of you that want to contact him, Rick can be reached thru his
  789.     Compuserve # 76210,443.
  790.  
  791.     Other routines written by others and used in SLIMMER are
  792.  
  793.         INPSUB.INC - Author Unknown
  794.                      This routine is used to replace the INPUT command  and
  795.                      has  been  modified  to   make   "bulletproof"   input
  796.                      routines for dates and weights etc.
  797.  
  798.         JULIAN.INC - Public Domain by Joe Vest
  799.                      This  is  used  to transform the Gregorian date into a
  800.                      Julian  date  where it can easily be included into the
  801.                      +/-  routine  for the date input and then reconverted.
  802.                      A very handy routine.
  803.  
  804.                                     Page 14
  805.  
  806.  
  807.  
  808.         FNEDIT.INC - Public Domain by Joe Vest
  809.                      This routine was used to remove  leading  blanks  from
  810.                      some of the string data.
  811.  
  812.         GETFREE.BAS - Author Unknown
  813.                       Renamed   space.bas   and  used  to  determine  space
  814.                       remaining on the default drive.
  815.  
  816.         CHKCRC.INL - Written by Craig J Kim
  817.                      Used  within  SLIMMER  to  determine  if  a  file  has
  818.                      changed during the present session.
  819.  
  820.     The  data  and methods used in SLIMMER were taken from a handout that I
  821.     got from my doctor when he measured my  blood  cholesterol  levels  and
  822.     gave me this plan to follow.
  823.  
  824.         ABOUT THE AUTHOR / PROGRAMMER
  825.  
  826.     SLIMMER  is  the  first major program written by myself in TURBO BASIC.
  827.     It has been a vast learning experience and  I'm  learning  more  daily.
  828.     There  is  still  much  more  to  learn. My background is in Structural
  829.     Engineering, and I'm  currently  working  as  an  Aerospace  Structures
  830.     Engineer  for  Fairchild  Space  Co. in Germantown, MD. I hold a PhD in
  831.     Applied Sciences from the University of Delaware, where I  completed  a
  832.     dissertation  on  various  solution techniques for laminated plates. My
  833.     interests include the violin which I currently play with a music  group
  834.     known  as  "Servants  of the Lord Most High". My home computer is an XT
  835.     clone, operating at 10 mhz with a 20 meg hard disk, a 3-1/2" 720k and a
  836.     5-1/4" 360k floppy. I use a 2400 baud  modem  and  BOYAN's  version  D4
  837.     shareware  communications package to access the various boards. While I
  838.     only have an amber screen, I can nevertheless see some of  the  effects
  839.     of  color  with a Paradise Monochrome EGA color emulation adapter card.
  840.     It provides full graphics on TTL monochrome monitors with 16 shades  of
  841.     intensity.
  842.  
  843.     If  any  of  you  want to drop me a line or leave a message, my mailing
  844.     address is:
  845.  
  846.                         George D. Summers
  847.                         2117 Coon Club Road
  848.                         Westminster, MD 21157
  849.  
  850.     and my Compuserve number is: 76276,564
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.                                     Page 15
  861.  
  862.  
  863.  
  864.         WHERE DOES SLIMMER GO FROM HERE
  865.  
  866.     Every  major  revision  to  SLIMMER  takes  about  six  months or so to
  867.     formulate and test. You the users will, to a large part,  be  the  ones
  868.     that  dictate  what is and is not included in future revisions. Do send
  869.     your comments and suggestion. Some possible directions are as follows:
  870.  
  871.         1. Write a version for the  Macintosh.
  872.         2. Prepare an international  version  with  possibility  of  having
  873.     dates  in  the  form dd.mm.yy instead of mm/dd/yy and use kg instead of
  874.     lbs etc.
  875.         3. Mouse  drivers  -  I'll  prepare  one for the Logitech C7 mouse.
  876.     Those of you who write drivers for other mice can send them  to  me  to
  877.     include  with the next revision.
  878.         4. Add carbohydrates and  cholesterol  to  the  food  tables.
  879.         5. Rewrite SLIMMER in the C language.
  880.         6. Include on-line HELP screens.
  881.         7. Increase the number of food selectons from the present < 1000 to
  882.     more than 3000 and include B-tree database management and recall.
  883.  
  884.  
  885.  
  886.  
  887.  
  888.         REGISTRATION
  889.  
  890.     For those of you interested in registration, all  the  information  you
  891.     need  is found by selection the REGISTRATION line in the main menu. You
  892.     are shown a registration form that you can send  to  your  printer.  Be
  893.     sure to indicate your preference for 3-1/2" or 5-1/4" disks.  You may
  894.     use the form found on the next page of this document file instead if you
  895.     have printed this file.
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.                                     Page 16
  918.  
  919.  
  920.  
  921.                          SLIMMER REGISTRATION FORM
  922.  
  923.  
  924. Your Name _____________________________________________________________________
  925.  
  926. Street Address ________________________________________________________________
  927.  
  928. City, State, Zip ______________________________________________________________
  929.  
  930. Phone # (Optional) ____________________________________________________________
  931.  
  932. Disk Size Desired      3-1/2" ________     or    5-1/4" _______
  933.  
  934. Registration # shown in SLIMMER closing screen  _______________________________
  935.  
  936. Amount Enclosed:  $35 for registration __________
  937.  
  938.                   $45 for registration and source code __________
  939.  
  940.                   $50 for registration outside USA __________
  941.  
  942.  
  943. Please describe your equipment (optional):
  944.  
  945. Computer type _________________________________________________________________
  946.  
  947. Amount of RAM (memory) __________ k ;   Hard disk size ___________ meg
  948.  
  949. Graphics type: Mono _____ , CGA _____ , EGA _____ , VGA _____ , Other _________
  950.  
  951.  
  952. Comments_______________________________________________________________________
  953.  
  954. _______________________________________________________________________________
  955.  
  956. _______________________________________________________________________________
  957.  
  958. _______________________________________________________________________________
  959.  
  960. _______________________________________________________________________________
  961.  
  962. Please send this form and your check to:
  963.  
  964.                         George D. Summers
  965.                         2117 Coon Club Road
  966.                         Westminster, MD 21157
  967.  
  968.