logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Daniels FarmerSociology
(5/5)

976 Answers

Hire Me
expert
George BlackbridgeBusiness
(5/5)

550 Answers

Hire Me
expert
M. HilliardNursing
(5/5)

610 Answers

Hire Me
expert
Heena AliManagement
(5/5)

794 Answers

Hire Me
Others
(5/5)

Write a Prolog program to solve the logic puzzle below

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Assignment 5

Write a Prolog program to solve the logic puzzle below.

You will need a way of writing statements about events that occurred earlier in the week than other events. Define a predicate earlier/2 to express this, e.g. earlier(tuesday, wednesday).

Logic Puzzle

Last week, four UFO enthusiasts made sightings of unidentified flying objects in their neighborhood. Each of the four reported his or her sighting on a different day, and soon the neighborhood was abuzz with rumors of little green men. By the weekend, though, the government stepped in and was able to give each person a different, plausible explanation of what he or she had "really" seen. Can you determine the day (Tuesday through Friday) each person sighted a UFO, as well as the object that it turned out to be?

1. Mr. Klaatu made his sighting at some point earlier in the week than the one who saw the balloon, but at some point later in the week than the one who spotted the Frisbee (who isn't Ms. Gort).

2. Friday'a sighting was made by either Ms. Barada or the one who saw a clothesline (or both).

3. Mr. Nikto did not make his sighting on Tuesday.

4. Mr. Klaatu isn't the one whose object turned out to be a water tower.

Deliverable

1. Your Prolog source code.

2. The output of your Prolog program in a plain text file.

(5/5)
Attachments:

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