Question
Create an elementary PROLOG knowledge base, describing following relations: 1. John, Fred and Harry are men, Mary, Julie, Susan and Anne are women. 2. John
Create an elementary PROLOG knowledge base, describing following relations:
1. John, Fred and Harry are men, Mary, Julie, Susan and Anne are women.
2. John has blonde hair while Fred and Harry have dark hair.
3. Julie and Susan are blonde; Mary and Anne are brunette.
4. Rich is each person who owns the gold - Fred and Julie in our example.
5. Male like only female and vice versa. Moreover, John and Harry like rich persons, John likes blonde and Fred likes brunette.
6. Both Mary and Julie like dark hair persons, Julie likes rich persons at the same time.
7. Anne owns a house and John owns a car.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started