(5/5)

862 Answers

Hire Me
(5/5)

515 Answers

Hire Me
(5/5)

919 Answers

Hire Me
(5/5)

519 Answers

Hire Me

Puzzle-solving Theo, Mira, Bruno, and Igor are students.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Puzzle-solving Theo, Mira, Bruno, and Igor are students. They spend most of their free time in a park and each of them is engaged in some hobby. Today they had a break of two hours and the weather was nice, so they ate their lunch in the park.

The following are known facts: 1. Theo is sitting on the far left eating a sandwich. 2. Mira likes to solve crossword puzzles and enjoys eating pie. 3. The girl has a white T-shirt. 4. Bruno has a yellow T-shirt. 5. He who likes to write eats a hamburger.

6. The person eating the pie is sitting next to Theo. 7. Bruno is sitting next to the one eating pizza. 8. The person sitting next to the one in the white shirt likes pizza. 9. Igor likes to read. 10. The person sitting to the right of the girl has a blue shirt. 1. Write the appropriate PROLOG predicates to represent the knowns facts. The facts must not be changed or supplemented (that is, the predicates that will be write about the facts must not contain additional information that you would derive based on the given facts). For example, facts that are somehow related to a girl, do not directly link them to Mira, but reach the name Mira through additional fact that Mira is a girl.

2. In addition, write a predicate sol(L), which should return as a result list L which will contain the complete solution of the problem. One element of this list represents a quad of values (name, food, hobby, t-shirt) and refers to exact combination of a student's name, the food he eats, the hobby he has, and the t-shirt he wears carries.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

409 Experts Online