Category : Science and Education
Archive   : DAYLIGHT.ZIP

Output of file : DAYLIGHT.DOC contained in archive : DAYLIGHT.ZIP
About DAYLIGHT 89/07/18

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

When the program starts up, the position is set to the LATITUDE and LONGITUDE
of Calgary, Alberta, Canada, which is where I live. The DATE is origionally
set 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 it
and got it to run on the IBM PC for his scout troop. He gave me a copy and
I 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 will
recognize the origional BASIC program as its ancestor. This was done to make
the program readable (not more readable, readable period: no one but an
astronomer would probably understand the program by casually reading it).
I also restuructured the code to make it more portable (I plan to do a
Macintosh 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.

If you have any comments or suggestions, please drop me a line.

Mike Babulic Compuserve: 72307,314
3827 Charleswood Dr. N.W. Connect: BABULICMG
Calgary, Alberta
T2L 2C7

  3 Responses to “Category : Science and Education
Archive   : DAYLIGHT.ZIP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: