Solve this logic puzzle using clingo Answer Set Programming(clingo)
john doeEach of four men owns a dierent species of exotic pet. Here is what
we know about them:
1. Mr Engels (whose pet is named Sparky), Abner and Mr. Foster all
belong to a club for owners of unusual pets.
2. The iguana isn't owned by either Chuck or Duane.
3. Neither the jackal nor the king cobra is owned by Mr. Foster.
4. The llama doesn't belong to Duane (whose pet is named Waggles).
5. Abner, who doesn't own the king cobra, isn't Mr. Gunter.
6. Bruce and Mr. Foster are neighbors.
7. Mr. Halevy is afraid of iguanas.
Problem: Find each man's full name and determine what kind of pet he
owns.
- 11 years ago
- 10
Answer(0)
Bids(0)
other Questions(10)
- what overall hr stratrgy do you think MITRE is pursuing? is its recruiting focus broad or targeted? does it primarily...
- Fire 3
- Post, in complete sentences, a response to the questions below.
- Two Parts of a Whole Person
- Accounting Century 21 7th Edition homework problems?
- need CALC 2 online test done in 3 hours. 25 questions only PLEASE READ MESSAGE
- due 3/20 at 11:00 pm in California time
- Which of the following so lutes will dissolve in benzene a) NH3 B) CH4 c) HCl D) H2O
- You are the administrative assistant to the president of BCC Health Plan, a small HMO located in the Midwest. The...
- 5 books and 9 magazines cost $150.50 dollars altogether. 9 Books and 5 magazines cost $175.70. How much does 1...