home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / other / astchef / ast_chef.doc < prev    next >
Encoding:
Text File  |  1988-05-30  |  12.5 KB  |  326 lines

  1.                             THE ASSISTANT CHEF
  2.                          (an electronic cookbook)
  3.  
  4.                          VERSION 0.9  (May 1988)
  5.  
  6. BY:  Eric Coners
  7.      53 South Clinton Ave  Apt 1W
  8.      Bayshore, N.Y.  11706
  9.  
  10.      GENIE U#: XTH57665
  11.  
  12. WRITTEN IN: GFA BASIC
  13.  
  14. I. INTRODUTION
  15.  
  16. After  spending money on a series of computer cookbooks for my fiancee  in 
  17. an attempt to get her interested in computing (hopefully interested enough 
  18. to accept,  or at least overlook,  my need to satisfy a craving which  can 
  19. only be fulfilled by buying something new for the computer each month),  I 
  20. found her using the programs once or twice and then abandoning  them.  The 
  21. reason  seemed  to be that they were not user friendly enough to  make  it 
  22. worthwhile for her, or give her much enjoyment with them. After using them 
  23. myself,  I  had to agree with her.  So,  combining my limited  programming 
  24. skills  with an excellent programming language (GFA BASIC),  I set out  to 
  25. write a program which would do what my 'store bought' ones didn't.
  26.  
  27. Though  the  program has been tested by myself and my fiancee I  doubt  if 
  28. it's  yet  bug free.  Any bugs or desired changes can be  directed  to  me 
  29. through GEnie mail.  I've included the source code to allow minor  changes 
  30. to be made (i.e.  Printer Codes and minor bugs). I make no claims at being 
  31. a good programmer,  so better programmers please don't be to critical. The 
  32. end  of this doc file will list some improvements I plan on making (if  my 
  33. fiancee  continues  to use the program or enough people  are  interested). 
  34. Also included in the list are improvements I would like to make but  don't 
  35. know  how.  If anyone out there can help me with these things it would  be 
  36. appreciated.
  37.  
  38.  
  39. II. FILES
  40.  
  41.      Included should be the following files;
  42.  
  43.           1. AST_CHEF.PRG
  44.           2. AST_CHEF.BAS
  45.           3. TITLE_SC.PI2
  46.           4. INDEX.DAT
  47.           5. INGREDS.DAT
  48.           6. DIRECTNS.DAT
  49.           7. AST_CHEF.DOC
  50.  
  51. III. PROGRAM INSTRUCTIONS
  52.  
  53.      A. INDEX
  54.  
  55.           The  Index screen lists all the receipe's in the  current  file. 
  56. Recipe's will be listed by;  Recipe #, Recipe name, Food Group, Food Type, 
  57. Dish  type,  Temperature (Hot/Cold) and rating (1 -5 stars).The  following 
  58. describes the actions that can be taken from the Index screen.
  59.  
  60.  
  61.  
  62.         1. EXIT - Returns you to the Main Menu
  63.  
  64.         2. PRINTOUT - Takes you to the Printout Selection menu. 
  65.      
  66.         3. Scroll - Use Up and Down arrows to scroll through the Index
  67.  
  68.         4.  Pick Recipe Number - This calculator style entry item will  be 
  69. used throughout the program (refered to as calculator),  simple enter  the 
  70. number desired with the mouse then click on ENTER (to start over CLEAR).
  71.  
  72.          5.  Jump  - Click on Jump then use the calculator  to  Enter  the 
  73. desired recipe number.  The Index will jump to that recipe. This option is 
  74. included to allow for easy movement through the index as it grows.
  75.  
  76.           6.  Mark  Recipe - Click on SET MARK and enter a number  on  the 
  77. calculator.  That Recipe will be marked and appear RED in the index. CLEAR 
  78. ONE  MARK then recipe number will unmark a marked recipe.  CLEAR ALL  will 
  79. clear  all  marks.   MARKED recipe's can be viewed  or  printed  separated 
  80. using the SELECT ONLY or PRINT ONLY options.
  81.  
  82.           7.  Select Recipe - To select a recipe to view enter the  number 
  83. on  ther calculator (make sure Jump or Mark is NOT selected).  Once  Enter 
  84. you will be taken to that recipes ingredient screen.
  85.  
  86.  
  87.      B. SORT INDEX
  88.  
  89.          Selecting  Sort  index  will take you  to  the  SORT/SELECT  ONLY 
  90. screen. You can;
  91.           
  92.           1.  Sort the index by;  Recipe Number,  Recipe Name, Food Group, 
  93. Food Type, Dish Type, Rating.
  94.  
  95.           2.  Select  Only recipe's with certain criteria to be viewed  on 
  96. the index or recipe screens.  That is;  ONLY a certain;  Food group,  Food 
  97. Type, Dish Type, Rating, or Marked Recipe's.
  98.                Selection screens will appear with choices when using  this 
  99. option.  Simply  Click on the desired choice.  If OTHER is included  as  a 
  100. choice;  Click  on Other then Type in the Choice (An exact match  will  be 
  101. looked for).
  102.  
  103.      C. ENTER NEW RECIPE
  104.  
  105.           Be careful when entering a new recipe.   Known  errors 
  106. are trapped and your given opportunities to correct before saving.
  107. But the potential for unknown bugs to pop does exist.
  108.  
  109.        
  110.      INDEX INFORMATION
  111.  
  112.           1. Hit return if the assigned recipe number (consecutive) is OK. 
  113. If not Hit escape and enter the desired number (If that number exist's the 
  114. existing recipe will be overwritten)
  115.  
  116.           2. Enter Recipe name
  117.           3. Click on Food Group (Other - Enter manually)
  118.           4. Click on Food Type    "
  119.           5. Click on Dish Type    "
  120.           6. Click on Temperature
  121.           7. Click on Rating
  122.  
  123.      You will then be asked to Continue, Redo the index, Or Start Over
  124.  
  125.      INGREDIENTS
  126.  
  127.           1. Enter the Amount of People the recipe serves
  128.           2. For each ingredient enter;
  129.                Amount (XX.XXX)
  130.                Unit (ie. Pounds, ounces, Teaspoons, Each)
  131.                Ingredient
  132.  
  133.              Blanks  (return)  are  allowed  and  can  be  use  to   space 
  134. different  segments  of the recipe.  Once entered (Return) a  given  entry 
  135. cannot  be  changed  without redoing the  whole  ingredient  listing.  (be 
  136. carefull)
  137.  
  138.           3.  When all ingredients are entered,  enter ESC - RETURN in the 
  139. Amount column to exit.
  140.  
  141.        You  will then be asked to Continue,Redo Ingredients,or Start over
  142.  
  143.      DIRECTIONS
  144.  
  145.      Enter the recipe directions by typing in each line. Once a given line 
  146. is  entered it cannot be corrected without redoing the  whole  directions. 
  147. Blank lines (return) are allowed and can be used for spacing.
  148.  
  149.      When all ingredients are entered, enter ESC - RETURN on the last line 
  150. (on a blank line).
  151.  
  152.      You will then be asked to Continue, Redo Directions, or Start Over
  153.  
  154.  
  155.      SAVE RECIPE
  156.  
  157.           You will then be asked if you want the Recipe Saved. 
  158.  
  159.      
  160.      D. EDITING A RECIPE
  161.      
  162.           Editing a recipe follows the same format as entering a new  one. 
  163. You  will  be  shown  the current recipe and may  edit  that  or  enter  a 
  164. different recipe number to edit.  When editing the old information will be 
  165. shown in light printing.  This is only to remind you of what the  existing 
  166. information  is,  ALL  INFORMATION  MUST BE ENTER AGAIN WHEN  YOU  EDIT  A 
  167. RECIPE.
  168.  
  169.  
  170.      E. SELECT A RECIPE
  171.  
  172.           Works the same as selecting a recipe in the index screen.
  173.  
  174.      F. VIEWING A RECIPE
  175.  
  176.           1.  Ingredient  screen  -  Shows serves  amount  and  ingredient 
  177. listing.  You can resize the ingredients to serve more or less.  (you will 
  178. be  asked if all future recipes viewed are to show this resizing  or  only 
  179. the current one )
  180.  
  181.           2. Directions screen - Shows the recipe directions
  182.  
  183.           3.  Both  of  these screens allow you to  travel  backwards  and 
  184. forwards  through the recipe file (It will show All,  selected  or  marked 
  185. recipes depending on you previous selection)
  186.  
  187.  
  188.      G. PRINTOUTS
  189.  
  190.           1.  Entire Index - Printouts the index (if a select only  option 
  191. is in effect only those will be printed)
  192.  
  193.           2. Partial Index - Will ask you to give the recipe number range
  194.  
  195.           3.  Complete  Recipe Listing - Will printout a  selected  recipe 
  196. including the Heading, Ingredients and Directions.
  197.  
  198.           4. Ingredients or Directions only - of a selected recipe
  199.  
  200.           5.  Marked  Recipes  - will printout a complete listing  of  all 
  201. recipe's marked.
  202.  
  203.  
  204. IV. ODDS AND ENDS
  205.  
  206.      A. FILE REQUIREMENTS
  207.  
  208.           The program, data and screen files must be in the same directory 
  209. and be the exact same names as are listed above.
  210.  
  211.      B. FILE SIZE LIMITATIONS
  212.  
  213.           The maximum file size is currently 300 recipe's.  This is  based 
  214. on  a limiting factor of storage space of a double sided  disk  containing 
  215. the required files. Each recipe consumes a total of 2,293 bytes (70-index, 
  216. 1023  - ingredients and 1200-directions).  300 recipe's will  use  687,900 
  217. bytes  of disk space and memory.  With the amount of memory  the  programs 
  218. consumes this is also approximated the file size maximum for a 1  megabyte 
  219. memory configuration. 
  220.  
  221.           If  you have a Hard Drive and more than one megabyte  of  memory 
  222. you can change the file maximum in the program dim statements to allow for 
  223. larger files.
  224.  
  225.           If  you  have a single sided drive or 1/2 a megabyte  of  memory 
  226. your  maximum  file  size will be about 125 recipe's (this  has  not  been 
  227. tested). 
  228.  
  229.           There  is  some checking for free memory and disk space  in  the 
  230. program before allowing new recipe's to be entered.  However,  this hasn't 
  231. been tested and I don't know what will happen if you do go over it.  So be 
  232. carefull    as   you  get  near  the  file  maximum  for   your   computer 
  233. configuration.  I would suggest makeing a new file disk before you get  to 
  234. the maximum file size.
  235.  
  236.  
  237.      C. MAKING A NEW FILE DISK
  238.  
  239.           The  program  looks  for the three data files  under  the  names 
  240. listed here in the directory the program was run from.
  241.  
  242.           If  you  want to start a new file,  copy the program  and  title 
  243. screen  to  a new disk (or rename the current data files  so  the  program 
  244. doesn't see them -dangerous make sure you rename all three data files)  or 
  245. new  directory (Hard Drive).  Run the program.  An alert will tell you  no 
  246. recipe files were found. Click on NO to the change disk request. This will 
  247. take you into the program without a recipe file in memory. Select 'Enter a 
  248. new  recipe' and enter a recipe.  New Index,  Ingredient  and  Direction 
  249. files will be created.
  250.  
  251.  
  252.      D. BACKUPS
  253.  
  254.           Again,  the program has been somewhat tested but all bugs aren't 
  255. known. Specifically what will happen when the file size starts approaching 
  256. maximum.  Back up your data files frequently,  especially before  entering 
  257. new  recipe's,   editing  recipes's,   making  new  data  files  and  when 
  258. approaching file maximum.
  259.  
  260.      E. DISK ACCESS
  261.  
  262.           As you files increase in size it will take an increasing  amount 
  263. of time to load them at program startup. I don't know how to speed this up 
  264. right now but will work on it.  Running the program from a Hard Drive does 
  265. help the situation.
  266.  
  267.  
  268. V. REVISIONS
  269.  
  270.      If there is an interest in this program I will continue to revise it. 
  271. Below  is  listed revisions I am now planning ( an * next to  it  means  I 
  272. don't know how to do it yet and would appreciate help if someone does).
  273.  
  274.     *1. Speed up disk reading of files.
  275.  
  276.      2. Continue to correct bugs when found.
  277.  
  278.      3.  Set up a subroutine to save Selected or Marked files to new  data 
  279. files.  To make it easier to organize like recipe's into the same file  as 
  280. files get larger.
  281.  
  282.      4.  Allow  for different recipe files to be selected from within  the 
  283. program.
  284.  
  285.     *5.  Use a point and click routine when selecting a recipe for viewing 
  286. or marking instead of using the calculator method.
  287.  
  288.      6.  Make a 'Shopping List' subroutine to add up all ingredients  used 
  289. in marked recipe's.
  290.  
  291.     *7. Have the ingredient and direction entry work as a text editor.
  292.  
  293.     *8.   Allow  for  longer  ingredient  and  direction  listings   (with 
  294. scrolling) (and keeping compatability with my current filing system)
  295.  
  296.     *9. Have some of the screens draw faster with consuming more memory
  297.  
  298.      10. This doc file.
  299.  
  300.  
  301. VI. INCLUDED RECIPE'S
  302.  
  303.      Included  with the program are some recipe's my fiancee has  entered. 
  304. This  should  give you an idea of the format of the program  and  get  you 
  305. going  more  quickly.  You can keep them or trash them and start  you  own 
  306. files  from  scratch (You may want to try some of them a  few  are  pretty 
  307. good).
  308.  
  309.  
  310. VII. CONCLUSION
  311.  
  312.      Well  that's it.  I think I covered most of the important  points.  A 
  313. quick  endorsement  for  GFA BASIC.  This is the  first  program  of  this 
  314. magnitude I've every tried to write.  GFA BASIC made it alot easier than I 
  315. thought it would be. Some of the subroutines use in the program were taken 
  316. from other public domain programs (like the sorting subroutine).  I  tried 
  317. to  leave author's names in the source code (if they were there  to  start 
  318. with).  I just like to thank every one who has uploaded GFA programs  with 
  319. the  source code included,  it's help me learn quite a few tricks I  never 
  320. would have otherwise.
  321.  
  322.  
  323.  
  324. Eric Coners 
  325. May 29,1988
  326.