ken@aiva.ed.ac.uk (Ken Johnson) (01/26/89)
One of the exercises I set my Prolog students is to write a program that
given any date in the current year computes the day on which it fell,
e.g. this year
?- day(1,january,sunday).
is true. (See note 1 below for Prolog people). To make a supplementary
exercise I would be interested to know about any other calendars
interestingly different from our own (the Gregorian, I think). Can
anyone email me about, say, the Muslim calendar or the French decimal
calendar of 1789?
1. Mode of day/3 is day(+,+,?). It is an interesting exercise to write
it in mode day(?,?,?) so it will backtrack through all the Mondays or
whatever, but I can't be bothered!!
--
==============================================================================
From: Ken Johnson
Address: AI Applications Institute, The University, EDINBURGH, Scotland
Phone: 031-225 4464 ext 212
Email: k.johnson@ed.ac.uk
Quotation: I've had a rotten day at work so far. My best friend didn't come.