Files
basic-computer-games/21_Calendar
Tom Wyant f61148b2e4 Convert 21_Calendar to Perl.
This is pretty much a complete rewrite. It displays the current year,
but that can be changed by specifying the desired year on the command
line. It MAY even be sensitive enough to locale to produce output in
languages other than English.
2022-01-11 21:19:47 -05:00
..
2022-01-03 08:31:32 -06:00
2022-01-11 21:19:47 -05:00
2022-01-03 02:13:21 -05:00

Calendar

This program prints out a calendar for any year. You must specify the starting day of the week of the year:

  • 0: Sunday
  • -1: Monday
  • -2: Tuesday
  • -3: Wednesday
  • -4: Thursday
  • -5: Friday
  • -6: Saturday

You can determine this by using the program WEEKDAY. You must also make two changes for leap years. The program listing describes the necessary changes. Running the program produces a nice 12-month calendar.

The program was written by Geoffrey Chase of the Abbey, Portsmouth, Rhode Island.


As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at http://www.vintage-basic.net/games.html