Contents of the DAYLIGHT.DOC file

About DAYLIGHT 89/07/18 --------------

DAYLIGHT calculates the hours of daylight at a given point on the Earth'ssurface when given a Date and Time Zone.

When the program starts up, the position is set to the LATITUDE and LONGITUDEof Calgary, Alberta, Canada, which is where I live. The DATE is origionallyset to the date stored in your computer's system clock.

This program started life in BASIC on an Apple II. A friend of mine found itand got it to run on the IBM PC for his scout troop. He gave me a copy andI rewrote the program in Turbo Pascal and gave it a better user interface.

While rewriting the program, I restructured it so much that I doubt you willrecognize the origional BASIC program as its ancestor. This was done to makethe program readable (not more readable, readable period: no one but anastronomer would probably understand the program by casually reading it).I also restuructured the code to make it more portable (I plan to do aMacintosh version).

- Variables were given meaningful names. - Constants were identified and their meaning identified (if I could) - Calculations were separated from user interface code for portability - Code was modularized (again for portability)

I've included the BASIC program so you can compare it with the Pascal.