CIS 400 Assignment 4
                      Fall '97

     For your next assignment, you will need to complete the 
following lab exercises using Prolog. I would prefer 
receiving hardcopy of your output (print screens are fine), 
but if you are not able to this you may write your code and 
its output as a lab report instead.


1. Write a set of Prolog facts with the name, birth month  
   and birthplace of 10 friends or relatives.

2. Write queries which use your birthday factbase to answer 
   the following questions:

     a. Who was born in a given month (say July)?
     b. Are there two people born in the same place?
     c. How many different birth months are there?

3. Write a Prolog database which describes 10 of your
   favorite books as funny, sad, science fiction, romance, 
   etc. Add rules which select books based on your mood.

4. Write several queries to test your rules for selecting 
   books based on your mood?

5. Add daily weather information from last week to your 
   database on books. Also add rules which describe your 
   mood based on the weather conditions for a given day.

6. Test your rules by trying writing several queries which
   select books based the weather daily conditions. Write a
   prediction for the order in which books will be listed 
   for a given query.


     I would prefer you to use PDProlog for this assignment. 
You may use any features of the language to complete these 
exercises. You will need to devise some experiments to 
demonstrate that your code behaves correctly. You will need 
to turn in clearly commented source listings of your 
programs and any relevant computer output (no memo this 
time). This lab is due by Friday December 12th. All work 
(late and otherwise) must turned by this date.