Solve this logic puzzle using clingo Answer Set Programming(clingo)

Each of four men owns a di erent species of exotic pet. Here is what

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

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.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

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.

    

Order your essay today and save 25% with the discount code: GREEN

Order a unique copy of this paper

600 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
Top Academic Writers Ready to Help
with Your Research Proposal

Order your essay today and save 25% with the discount code GREEN