(Solved) : Write Prolog Program Solve Following Logic Puzzle Five Houses Row Different Color Owned Me Q42740732 . . .

Write a Prolog program to solve the following logic puzzle. There are five houses in a row, each of which are a different col

Write a Prolog program to solve the following logic puzzle. There are five houses in a row, each of which are a different color and are owned by a men of different nationalities, who own different pets, prefer different drinks, and play a different sport. (a) The Irishman lives in the first house on the left. (b) The man who plays baseball lives in the house next to the man who keeps a tiger. (c) The occupant of the house, next to the house where the owner rides a horse, plays soccer. (d) The squash player drinks gin. (e) The Frenchman plays rugger. (f) The Irishman lives next to the blue house. (g) The Englishman lives in the red house. (h) The Spaniard is often seen taking his dog for a walk. (i) Beer is brewed (and drunk in large quantities) in the green house. (j) The Scotsman drinks whiskey and is often tipsey. (k) The green house is immediately to the right of the white house. (1) The tennis player owns snakes. (m) Soccer is played in the yellow house. (n) A lot of wine get consumed in the middle house. Who owns the hamster? Who drinks orange juice? Show transcribed image text Write a Prolog program to solve the following logic puzzle. There are five houses in a row, each of which are a different color and are owned by a men of different nationalities, who own different pets, prefer different drinks, and play a different sport. (a) The Irishman lives in the first house on the left. (b) The man who plays baseball lives in the house next to the man who keeps a tiger. (c) The occupant of the house, next to the house where the owner rides a horse, plays soccer. (d) The squash player drinks gin. (e) The Frenchman plays rugger. (f) The Irishman lives next to the blue house. (g) The Englishman lives in the red house. (h) The Spaniard is often seen taking his dog for a walk. (i) Beer is brewed (and drunk in large quantities) in the green house. (j) The Scotsman drinks whiskey and is often tipsey. (k) The green house is immediately to the right of the white house. (1) The tennis player owns snakes. (m) Soccer is played in the yellow house. (n) A lot of wine get consumed in the middle house. Who owns the hamster? Who drinks orange juice?

Expert Answer


Answer to Write a Prolog program to solve the following logic puzzle. There are five houses in a row, each of which are a differen…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?