Suppose that Prolog facts are used to define the pred- icates mother(M, Y) and father(F, X), which represent that M is the mother of Y and F is the father of X, re- spectively. Give a Prolog rule to define the predicate grandfather(X, Y), which represents that X is the grand- father of Y. [Hint: You can write a disjunction in Prolog either by using a semicolon to separate predicates or by putting these predicates on separate lines.]

Answers

Answer 1

Answer and Explanation:

The Prolog rule expresses that logical implication (:-) describes the relationship between facts.

Prolog expressions are containing truth-functional symbols, which have the same intervention as in predicate calculus.

For example:  

English Predicate calculus prolog

and ^ ,

or v ;

By using information, given in the question,

We can make prolog:

Grandfather(X, Y)  :-mother(M,Y), father(X,M); father (F, Y), father(X,F)

Prolog (:- ) means define,

Prolog (,) represents a conjunction

And

Prolog (;) represent a disjunction


Related Questions

Where is the point (0, -1) ?
• x-axis • origin
• y-axis

Answers

Answer:

A. x-axis

Step-by-step explanation:

Beacuse the 0 is in the x spot, (x,y)

enter the slope-intercept equation for image of line

Answers

Answer:

5,6 i tink

Step-by-step explanation:

Solve for t.
-t = 9(t-10)
pls help

Answers

Answer:

9

Step-by-step explanation:

PLZZ I REALLY NEED SOME HELP

Answers

Answer:

B and E

Step-by-step explanation:

^^^^^

which number is 10,000 greater than 23,879?
a. 13 879 b. 23 879 c. 33 879 d.13 779​

Answers

Answer:

well 10,000 is not grater than 23,879?

Step-by-step explanation:

the diffrence between them is 13879 so the correct answer is A

HOPE THIS HELPS

Tou nave prizes to reveal! Go to your game board.
There are 7 empty seats and 43 occupied seats on an airplane. What is the ratio of the
number of empty seats to the number of occupied seats?
50:7
7:43
50:14
43:7

Answers

Answer:

7:43

Step-by-step explanation:

8/9 divided by 2/9 draw it in a model to represent it

Answers

Answer:

4

Step-by-step explanation:

kcf

8/9 x 9/2= 72/18

=4

Vanessa and Zack are playing a game where the player with the lower score wins. At the end of the game, Vanessa has a score of Negative 3 and StartFraction 5 over 8 EndFraction and Zack has a score of Negative 3 and two-thirds. Which statement explains who won?

Answers

-3 2/3 < -3 5/8 so -3 2/3 is lesser

Answer:

-3 2/3 < -3 5/8 so -3 2/3 is lesser

Step-by-step explanation:

Wally and Mike install swimming pools in the summer in a town. They are building a swimming pool that measures 14-1/2 feet wide and 23-1/2 feet long.

(a) At the outside edge of the pool is a protective fence. How many feet of fencing would be needed to surround the pool area?

(b) Kevin discovers that he can buy a packaged box of 90 feet of fencing for $950 or he can buy cut-to-order fencing that costs $12.40 per foot. Which type of fencing should he buy? How much money does he

save?


(a) They will need_____feet of fencing

(Type an integer, proper fraction, or a mixed number)

Answers

Answer:

(a) He would need 76 feet of fencing

(b) Kevin should buy the packaged box of 90 feet of fencing for $950.

(c) How much does he save?

For every 1 feet of packaged fencing Kevin buys, he saves $1.94 naira.

Step-by-step explanation:

(a) At the outside edge of the pool is a protective fence. How many feet of fencing would be needed to surround the pool area?

From the question, we are told that the swimming pool measures:

14-1/2 feet wide and 23-1/2 feet long.

Perimeter of a fence = 2(L + W)

= 2( 14-1/2 + 23-1/2)feet

= 76 feet

This means he need 76 feet of fencing.

(b) Kevin discovers that he can buy a packaged box of 90 feet of fencing for $950 or he can buy cut-to-order fencing that costs $12.40 per foot. Which type of fencing should he buy?

If : For cut to order fencing

1 foot = $12.40

76 feet =

Cross Multiply

= 76feet × $12.40/1 foot

= $942.4

This means that the cut to order fencing would cost him $942.40

The packaged box of fencing cost $950 for 90 feet of fencing. This is cheaper than the cut to order fencing and he would have extra feet of fencing(14 feet) .

Therefore, Kevin should buy the packaged box of 90 feet of fencing for $950.

How much money does he save?

For the cut to order box

1 feet = $12.40

For the packaged fence,

90 feet = $950

1 feet = x

= 950/90

= $10.555555556

≈ $10.56

Hence, 1 feet of packaged fence = $10.56

Subtracting $10.56 from $12.40

= $12.40 - $10.56

=$ 1.94

Therefore, for every 1 feet of packaged fencing Kevin buys, he saves $1.94 naira.

This means:

1 feet (packaged fence) = $10.56

76 feet = x

= 76 × $10.56

= $802.56

sales tax on a $400 stereo is $16. What is the tax on a $650 TV?

Answers

26


400/4
16/4
100/4
650/25= 26

PLZZZ HELPPP THIS IS DUE!!
This is a story problem. You may use the method of your choice to solve the problem. (substitution, combination, elimination )
The sum of 2 numbers ( x and y ) is +12
The difference of the same 2 numbers is -4

1. Which method will you use and why?
2. How will you set up the equation needed to solve?
3. What is the solution expressed as an ordered pair? (x,y)

Answers

Answer:

y=3x-2..... i

x-y=4...... ii

x-4=y

Substituting the value of y in equation i,

x-4=3x-2

2-4=3x-x

-2=2x

x=-1.

From ii,

-1-4=y

y=-5.

x=-1, y=-5

Step-by-step explanation:

brainest please

Internet Audience At the end of a certain year, the four companies with the largest number of home Internet users in the United States were Microsoft, Time Warner, Yahoo, and Google, with a combined audience of 284 million users. Taking x to be the Microsoft audience in millions, y the Time Warner audience in millions, z the Yahoo audience in millions, and u the Google audience in millions, it was observed that
z − u = 3(x − y) + 12
x + y = 50 + z + u
and x − y + z − u = 48.
How large was the audience of each of the four companies at the end of that year? Microsoft

Time Warner

Yahoo

Google

Answers

Answer:

Microsoft = 89.5 million

Time Warner = 77.5 million

Yahoo = 82.5 million

Google = 34.5 million

Step-by-step explanation:

Given

z − u = 3(x − y) + 12

x + y = 50 + z + u

x − y + z − u = 48.

From the question, we also understand that

u + x + y + z = 284

Required

Solve for u, x, y and z

Substitute 3(x - y) +12 for z - u in the third equation

x − y + z − u = 48.

(x - y) + 3(x - y) = 48

4(x - y) = 48

Divide both sides by 4.

x - y = 12

Make z + u the subject of formula in u + x + y + z = 284

z + u = 284 - (x + y)

Substitute 284 - (x + y) for z + u in the second equation

x + y = 50 + z + u

x + y = 50 + 284 - (x + y)

(x + y) + (x + y) = 50 + 284

2(x + y) = 334

Divide both sides by 2

x + y = 167

Make x the subject of formula

x = 167 - y

Substitute 167 - y for x in x - y = 12

167 - y - y = 12

167 - 2y = 12

-2y = 12 - 167

-2y = -155

2y = 155

y = 77.5

Solve for x in x = 167 - y

x = 167 - 77.5

x = 89.5

Recall that:

z − u = 3(x − y) + 12

z + u = 284 - (x + y)

Substitute the values of x and y in the above expressions.

z − u = 3(x − y) + 12

z - u = 3(89.5 - 77.5) + 12

z - u = 3(12) + 12

z - u = 36 + 12

z - u = 48

Make z the subject

z = 48 + u

Similarly,

z + u = 284 - (x + y)

z + u = 284 - (89.5 + 77.5)

z + u = 284 - 167

z + u = 117

Substitute 48 + u for z

48 + u + u = 117

48 + 2u = 117

2u = 117 - 48

2u = 69

u = 34.5

Substitute 34.5 for u in z = 48 + u

z = 48 + 34.5

z = 82.5

The size of audience of each of the four companies at the end of that year are;

Micro-soft = 89.5 million

Time Warner = 79.5 million

Yah oo = 34.5 million

Goo gle = 82.5 million

We are given the equations;

z − u = 3(x − y) + 12 ----(1)

x + y = 50 + z + u   ----(2)

x − y + z − u = 48    ----(3)  

Now, we are told that the combined 4 audience is 284 million users. Thus;

u + x + y + z = 284    ----(4)  

Put 3(x − y) + 12 for z - u in the eq 3 to get;

(x - y) + 3(x - y) = 48

x - y + 3x - 3y

4x - 4y = 48

Divide both sides by 4 to get;

x - y = 12   ----(5)

Make z + u the subject of formula in eq 4 to get;

z + u = 284 - (x + y)  ---(4b)

Put 284 - (x + y) for z + u in the eq 2;

x + y = 50 + 284 - (x + y)

x + y = 334 - x - y

Add x + y to both sides to get;

x + y + x + y = 334

2x + 2y = 334

Divide both sides by 2 to get;

x + y = 167 -----(6)

Add eq 5 to eq 6 to get;

2x = 167 + 12

2x = 179

x = 179/2

x = 89.5

Put 89.5 for x in eq 6 to get;

89.5 + y = 167

y = 167 - 89.5

y = 77.5

 

Put the values of x and y in eq(1) and eq(4b) to get;

z - u = 3(89.5 - 77.5) + 12

 z - u = 48  ---(7)

 

Also,

z + u = 284 - (89.5 + 77.5)

z + u = 117   ---(8)

Add eq 7 to eq 8 to get;

2z = 165

z = 165/2

z = 82.5

Put 82.5 for z in eq 8 to get;

82.5 + u = 117

u = 117 - 82.5

u = 34.5

Read more at; https://brainly.com/question/14526969

What is the great bath at mohendajaro

Answers

Answer:

The Great Bath is one of the well-known structures among the ruins of the ancient Indus Valley Civilization at Mohenjo-daro in Sindh, Pakistan. Archaeological evidence indicates that the Great Bath was built in the 3rd millennium BCE

2/3 X + 5 = 17
Need it plzzz

Answers

Answer:

your answer would be idspkdijajsljfpajs[r

Step-by-step explanation:

because if u add  [tex]2/3 +5 = 17[/tex]  it would be idspkdijajsljfpajs[r

Convert 173 Degrees Celsius to Kelvin. Type your answer in number form without the K symbol.

Answers

Answer:

446.15

Step-by-step explanation:

C + 273.15 = K

So 173C + 273.15 = 446.15K

Wally counted 200 pennies from his piggy bank. He kept 80% of them. How many pennies did Wally keep?

Answers

Answer:

I believe he kept 160 pennies.

Step-by-step explanation:

10% of 200 is 20 (200 divided by 10) so 20% is 40 pennies. 200 minus 40 is 160 (pennies)

A student survey was conducted at a major university, and data were collected from a random sample of 750 undergraduate students. One variable that was recorded for each student was the student's answer to the question: "What region of the country did you live in just prior to enrolling in this university? Northeast/Southeast/Northwest/Southwest/Midwest/Outside the U.S." These data would be best displayed using which of the following?

a. Pie Chart
b. Histogram
c. InterQuartile Range
d. Stemplot
e. Boxplot

Answers

Answer:

Pie Chart

Step-by-step explanation:

The pie chart is a circular representation of data. It is divided into slices in order to show the distribution of data presented.

In a pie chart, the angle subtended by each slice is proportional to the magnitude of data represented.

Pie charts are most useful in the representation of categorical data such as the region of the country in which a student lived prior to enrolling in the university.

What is the difference of (5 + 3i) and (2 + 9i)?

Answers

Answer:

3+12i

Step-by-step explanation:

The difference of 5+3i and 2 + 1999 can be calculated as follows

= 5+3i - 2+9i

Collect the like terms

= 5-2+3i+9i

= 3+12i

Hence the difference of 5+3i and 2+9i is 3+12i

Stephanie ordered the cheese omelet, a coffee, and a side of toast. How much does she owe, not including tax

Answers

Answer:

depends on how much it cost

Step-by-step explanation:

but id asuume shed owe some money

Convert 9% to a fraction.

Answers

Answer:

9/100

Step-by-step explanation:

Answer:

9

Step-by-step explanation:

9%/100=9

so it should be 9.

solve for x: 3/4x5/4=4x

Answers

Answer:

x = 0

Step-by-step explanation:

Hannah has 67.32 centimeters of wire. She uses 2 pieces of the wire.
Each piece she uses is 14.43 centimeters long. What is the length of
the remaining wire, rounded to the nearest tenth of a centimeter? (Only
round your final answer.)

Answers

Answer:

38.46 (Rounded: 38.5)

Step-by-step explanation:

67.32-2(14.43)=38.46

State whether the percent of change is a percent of increase or a percent of decrease. Then find the percent of change. Round to the nearest whole percent. original: 84, new: 96

Answers

Answer:

Then we divide that amount by the original older value and get 1.3035. Now we must convert that number

Alice solved the following equation:

-18 - 3x = 12
-3x = 6
x =-2

Which of the following statements is true?

Answers

Answer:

the first line

Step-by-step explanation:

because the second line should be -3x=30

the coordinates of point A are (2, 1) and the coordinates of point B are (-4, 9) . What are the coordinates of the midpoint of segment AB?​

Answers

Answer:

(-1,5)

Step-by-step explanation:

mid point formula Is x + x divided by 2 and. y + y divided by 2

[tex]x = \frac{2 \ + ( - 4)}{2} [/tex]

[tex]y = \frac{1 + 9}{2} [/tex]

How many whole numbers are there up to 100, including 100?​

Answers

Answer:

100

Step-by-step explanation:

because... LOGIC

Find the distance covered by a car travelling at 65 65-kmh-1 for 7 hours.​

Answers

Answer:

1105km

Step-by-step explanation:

d=s×t

=65kmh^-1×7

=1105km

Factor the expression using the GCF: -5x + 20
5(x + 4)
5(x-4)
-5(x + 4)
-5(x-4)

Answers

The answer fam is........-5(x-4)

Answer: Choice [D]

Step-by-step explanation:

Hii, do you need to factor the expression "-5x+20"? Let me help you out! (:

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Note that -5x and 20 have a -5 in common. Let's factor it out! (:

To factor it out, we first need to divide -5x and 20 by -5.

⚜ x-4 ⚜

is what we obtain

Next we put parentheses around -x+4

(x-4)

is what we obtain

Now, we put 5 outside the parentheses

-5(x-4)

[tex]\Large\boldsymbol{\therefore,\qquad\ Choice\:\:\:\:[D]\;is\;correct}[/tex]

--

Hope I helped! Best wishes.

⚜Reach far. Aim high. Dream big. ⚜

_________________________________

[tex]\underbrace[/tex]

MR. MARTIN AGREED TO PAY OF THE
$60 DINNER BILL. HOW MUCH WILL MR.
MARTIN PAY?

Answers

Answer:

60 dollars

Step-by-step explanation:

if there is a 60 dollar bill he will pay 60 dollars

It was 12°F when Calvin went outside to check the
temperature on Saturday evening. When Calvin went
outside to check the temperature on Sunday morning, the
temperature had fallen 29°F. What was the temperature
when Calvin went outside on Sunday morning?

Answers

12+ 29= 41 :D
4141414141141414
Other Questions
Based on the passage identify and issue faced by the Ottoman Empire in the 1600s 5. The process for how a bill becomes a law is shown in the infographicbelow. How does this process reflect how the Founding Fathers thoughtabout limits on Government. PLEASE HURRY TY!! Instructions: Label the Verb, label the Objeto Directo, and rewrite the new sentence with the Objeto Directo replacing the noun. (20pts)Enrique viene a comer pizza al restaurante.- Ellos quieren vender los boletos a los turistas.- Luis viene a conocer a Carlos.- Nosotros fuimos a baar al perro.- Nosotros vamos a cargar las maletas.- T ests limpiando el sombrero.- Nosotros venimos a comprar el yate.- Ellos salieron a comprar los alimentos.- T corres a recibir a pap.- Nosotros vamos a ver al avestruz.- HELPPPP MEEE ASAPPPP What is the definition of an divergent boundary ? How do you find the radius of a cylinder when you only know the surface area? ADD THE NUMBERS AND GIVE THE TOTAL:diez y seis + doce = Question 18 (1 point)What is the slope of the line whose equation is 3x - y = 4?A -3 B 3 C 3/4 D -3/4 Why were the Little Rock Nine recognized with a memorial and a documentary? Please help.The scientific method is a __________________ used during a scientific ____________________ to answer a scientific question. Rank the molecules below from smallest tolargest:1. Starch2. Glucose3. Water4. Pores in dialysis tubing5. IKI Do living kidney donor need to have same blood type as their recipient a. True b. False Factor the expression over the complex numbers. x3+20x4x280 which medical term means tissue death of the walls of a blood vessel What are the 4 characteristics of Renaissance thinking? The winter war was launched after the ______. The Homestead Act:A.encouraged people to move West by promising them land for a small settlement fee.B.returned large tracts of land to Native American tribes.C.promoted factory work and technology over farming.D.None of these choices are correct. A first-in first-out (FIFO) is a memory unit that stores information in such a manner that the item first in is the item first out. Show how a FIFO memory operates with three counters: a write counter WC that holds the address for the memory write operation; a read counter RCthat holds the address for the read operation; and an available storage counter ASC that indicates the number of items stored. ASC is incremented for every item stored and decremented for every item that is retrieved. The memory unit communicates with MAR and MBR. Which of the following statements best expresses the central idea of the article?ATeenagers' brains are more easily distracted because they use social media and text while driving more often than adults.BTeenagers are more likely than adults to take risks for money based on a study in Iowa City.CTeenagers are more prone to distraction because they are more attracted to or focused on potential rewards.DTeenagers often do not realize why they want rewards because their brains are still developing. what is the range of the linear function y = -2x + 5 Unit test What is one of the positive outcomes of recent after ww2 } globalization ?? Choose 1 answer: (A) the last few decades , of people have come poverty and carn a living.(B) Wealth, overall been more everaly access to the planet . (C) Since the Second World War , there have been no genocides - is with death tolls in the of thousands . (D) Fair and free trade has become more easily regulated by governments preventing abuses by Corporations