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.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
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
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme