home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / math / daylite / daylight.doc < prev    next >
Encoding:
Text File  |  1989-07-18  |  1.6 KB  |  36 lines

  1.                               About DAYLIGHT                         89/07/18
  2.                               --------------
  3.  
  4. DAYLIGHT calculates the hours of daylight at a given point on the Earth's
  5. surface when given a Date and Time Zone.
  6.  
  7. When the program starts up, the position is set to the LATITUDE and LONGITUDE
  8. of Calgary, Alberta, Canada, which is where I live.  The DATE is origionally
  9. set to the date stored in your computer's system clock.
  10.  
  11. This program started life in BASIC on an Apple II.  A friend of mine found it
  12. and got it to run on the IBM PC for his scout troop.  He gave me a copy and
  13. I rewrote the program in Turbo Pascal and gave it a better user interface.
  14.  
  15. While rewriting the program, I restructured it so much that I doubt you will
  16. recognize the origional BASIC program as its ancestor.  This was done to make
  17. the program readable (not more readable, readable period: no one but an
  18. astronomer would probably understand the program by casually reading it).
  19. I also restuructured the code to make it more portable (I plan to do a
  20. Macintosh version).
  21.  
  22.      - Variables were given meaningful names.
  23.      - Constants were identified and their meaning identified (if I could)
  24.      - Calculations were separated from user interface code for portability
  25.      - Code was modularized (again for portability)
  26.  
  27. I've included the BASIC program so you can compare it with the Pascal.
  28.  
  29. If you have any comments or suggestions, please drop me a line.
  30.  
  31.  
  32. Mike Babulic                           Compuserve: 72307,314
  33. 3827 Charleswood Dr. N.W.              Connect:    BABULICMG
  34. Calgary, Alberta
  35. CANADA
  36. T2L 2C7