SAMPLE PROLOG PROGRAM Nourah Alsuqayh.

Slides:



Advertisements
Similar presentations
Flat Stanley found out he had brothers all over the United States. Here is the information he has. Read the question and use the chart below. Then write.
Advertisements

9 x9 81 4/12/2015 Know Your Facts!. 9 x2 18 4/12/2015 Know Your Facts!
1 x0 0 4/15/2015 Know Your Facts!. 9 x1 9 4/15/2015 Know Your Facts!
1 x0 0 4/16/2015 Know Your Facts!. 1 x8 8 4/16/2015 Know Your Facts!
3 x0 0 7/18/2015 Know Your Facts!. 4 x3 12 7/18/2015 Know Your Facts!
Location:Where are we? By: Kristie Mraz Where in the world are we? We live in North America.
Finding Latitude and Longitude
Direction at your fingertips. A compass rose is a design on a map that shows directions. It shows north, south, east, west, northeast, northwest, southeast,
Map Skills Compass Rose.
Help me find the cardinal directions
Reduced Bearing. Main Menu 1. Direction 2. Compass Points 3. Reduced Bearing.
Selected Problems from Chapter o.
By Travis Terry Copyright © 2012 Travis Terry. Motion of an object is always judged with respect to some other object or point. When an object changes.
Bearings.
Jeopardy Name A Continent Direction MappingOceans States $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 Final Jeopardy.
Reading Maps Aim: How does latitude and longitude help us read maps?
4 x1 4 10/18/2015 Know Your Facts!. 5 x /18/2015 Know Your Facts!
3 x0 0 10/18/2015 Know Your Facts!. 11 x /18/2015 Know Your Facts!
Honors Physics Vectors and Scalars. Scalar Quantity  What does it mean to be a Scalar Quantity?  Examples?  Units of measure must be included with.
Map Skills Compass Rose. Vocabulary Words A compass rose is a symbol that helps someone find directions on a map.
Tells what the map is about Shows the location of cities, states, and countries.
6.8Compare Statistics from Samples Example 1 Compare statistics from different samples Production The data set below give the number of computers assembled.
Mohammed AbdoThagher Jeddah Schools1 Mohammed AbdoThagher Jeddah Schools2.
Map Skills Review. How many Cardinal Directions are there? North South East West.
Multiplication Facts X 3 = 2. 8 x 4 = 3. 7 x 2 =
Continents, Oceans and Map Skills Review Game by Mr. Reece.
Start on Europe. Walk to Africa. What direction did you walk? Start on Antarctica. Walk to Australia. What direction did you walk? Start on Asia. Walk.
Absolute Location: Where is your desk? Relative Location: Where is your desk? Cardinal Directions Relative Location of your Local Community using a Michigan.
Find that place..  Find that content  Longitude, East is to the right, West is to the left of the Prime Meridian or 0 degrees  Latitude, North is going.
Physics 2D Motion worksheet Selected question answers.
UNIVERSITY OF KENTUCKY ALUMNI CENTER STUDY 10 March 2015.
Measurement and Geometry 43 North South East West South-East South-West North-West North-East
Aim: How do we construct a field map?
This study focused on products that represent various regions of the Kingdom of both producers and various marketing organization of the main products.
MAGIC SQUARES © Dhaval Bathia.
Physical Features North Africa GOVERNMENT RELIGION RESOURCES
SKILL- Direction North West East South North- West North- East
Cardinal and Intermediate Directions
Table 1. Saudi universities [30]
Iowa State University Extension Economist
Sequences Describe the pattern in the sequence and identify the sequence as arithmetic, geometric, or neither. 7, 11, 15, 19, … 7, 11, 15, 19, … Answer:
Thatch House (Plan) Fig.4.
Iowa State University Extension Economist
Iowa Land Values Survey
Parts of Maps.
Understanding Location
Iowa Land Value Survey 2009 Dr. Michael Duffy, Extension Economist
Iowa State University Extension Economist
Understanding Location
Rainforest By: Wyatt.
1 2 3 Describing Routes Using Landmarks
Learn Your 2x Facts.
北 N north 西 W west 東 E east south南 S.
Welcome to Jeopardy! Cardinal Directions Maps & Globes Longitude
Copy today’s title and objectives:
East West Move to Table 2 N/S
75 previous answer What is of 37.5? ? go to.
Maps & Map Keys.
Student Center A South: Inaccessible Element
START DIRECTIONS QUIZ.
Site and Context. Section from East Section E2 Section E1 Sannidhanam Malikapuram Sannidhanam Malikapuram.
Question 1. Question 1 What is 10 x 40? A 40 B 400 C 4000 D 4.0.
Directions.
City of Edinburgh Council Transport & Environment Convener
75 previous answer What is of 60? ? go to.
Are you in North America?
What river serves as part of Georgia’s border with South Carolina?
Presentation transcript:

SAMPLE PROLOG PROGRAM Nourah Alsuqayh

Example. Consider the simple problem of getting the directions between cities: The facts are : - AlMadinah is to the north of Makkah . Hail is the north of Riyadh. Also Hail is city. Jeddah is the west of Dammam. Jeddah is the west of Riyadh. Also Riyadah and Jeddah are cities Write these facts in SWI PROLOG.

Write a rule based on previous facts that describe the south direction between two cities? Write a rule based on previous facts and rules that describe the northeast direction between two cities? Convert the below questions to Prolog questions then answer each of them : - IS Riyadh is east of jeddah? - what is the city that has north of riyadh?

ANSWER: