1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pashok25 [27]
3 years ago
15

Write the following statements as Prolog clauses, in the order given: If it is raining or snowing, then there is precipitation.

If it is freezing and there is precipitation, then it is snowing. If it is not freezing and there is precipitation, then it is raining. It is snowing. What answer does Prolog give to the following queries: Is it freezing
Engineering
1 answer:
Anika [276]3 years ago
8 0

Answer:

a. See Explanation Below

b. No

Explanation:

a.

Interpreting the statements line by line.

First, the prolog clauses need to be initialised, as follows:

:- dynamic freezing/0, precipitation/0, snowing/0, raining/0.

If it is raining or snowing, then there is precipitation.

The statement is splited in two.

1st, if it is raining then there is precipitation

Or

2nd, if it is raining, then there is precipitation.

So, both statements are given as:

precipitation :- raining.

precipitation :- snowing.

If it is freezing and there is precipitation, then it is snowing.

This is a conditional statement that checks if it is freezing AND there's is precipitation.

If true, then it is snowing.

The above statement is given as:

snowing :- freezing, precipitation.

If it is not freezing and there is precipitation, then it is raining.

This is a conditional statement that checks if it is not freezing AND there's is precipitation.

If true, then it is raining.

The not clause is represented as \+

The above statement is the given as:

raining :- \+ freezing, precipitation.

It is snowing.

This is represented as follows

snowing.

So, the full prolog clause is as follows

:- dynamic freezing/0, precipitation/0, snowing/0, raining/0.

precipitation :- raining.

precipitation :- snowing.

snowing :- freezing, precipitation.

raining :- \+ freezing, precipitation.

snowing.

b. What answer does Prolog give to the following queries:

Is it freezing

No

Reason;

All of the conditions above point to raining or snowing; none points to freezing.

Hence, it is no.

You might be interested in
Showing or hiding records in a database is called “filtering.”<br> True<br> False
agasfer [191]

Answer:

TRUE

Explanation:

4 0
2 years ago
Read 2 more answers
Water flows through a horizontal plastic pipe with a diameter of 0.15 m at a velocity of 15 cm/s. Determine the pressure drop pe
Sonja [21]

Answer:0.1898 Pa/m

Explanation:

Given data

Diameter of Pipe\left ( D\right )=0.15m

Velocity of water in pipe\left ( V\right )=15cm/s

We know viscosity of water is\left (\mu\right )=8.90\times10^{-4}pa-s

Pressure drop is given by hagen poiseuille equation

\Delta P=\frac{128\mu \L Q}{\pi D^4}

We have asked pressure Drop per unit length i.e.

\frac{\Delta P}{L} =\frac{128\mu \ Q}{\pi D^4}

Substituting Values

\frac{\Delta P}{L}=\frac{128\times8.90\times10^{-4}\times\pi \times\left ( 0.15^{3}\right )}{\pi\times 4 \times\left ( 0.15^{2}\right )}

\frac{\Delta P}{L}=0.1898 Pa/m

4 0
3 years ago
Using an "AND" and an "OR", list all information (Equipment Number, Equipment Type, Seat Capacity, Fuel Capacity, and Miles per
Tomtit [17]

Answer:

Explanation :

The given  information to be listed can are Equipment Number, Equipment Type, Seat Capacity, Fuel Capacity, and Miles per Gallon.

Check the attached document for the solution.

5 0
2 years ago
Which sentence is correct about the exergy of an empty (pressure around zero Pascal) tank with a volume of V, located in an envi
sineoko [7]

Answer:

The correct option is;

c.  the exergy of the tank can be anything between zero to P₀·V

Explanation:

The given parameters are;

The volume of the tank = V

The pressure in the tank = 0 Pascal

The pressure of the surrounding = P₀

The temperature of the surrounding = T₀

Exergy is a measure of the amount of a given energy which a system posses that is extractable to provide useful work. It is possible work that brings about equilibrium. It is the potential the system has to bring about change

The exergy balance equation  is given as follows;

X_2 - X_1 = \int\limits^2_1 {} \, \delta Q \left (1 - \dfrac{T_0}{T} \right ) - [W - P_0 \cdot (V_2 - V_1)]- X_{destroyed}

Where;

X₂ - X₁ is the difference between the two exergies

Therefore, the exergy of the system with regards to the environment is the work received from the environment which at is equal to done on the system by the surrounding which by equilibrium for an empty tank with 0 pressure is equal to the product of the pressure of the surrounding and the volume of the empty tank or P₀ × V less the work, exergy destroyed, while taking into consideration the change in heat of the system

Therefore, the exergy of the tank can be anything between zero to P₀·V.

6 0
3 years ago
Differentiate between "Threshold and Resolution" with suitable examples.
9966 [12]

Answer:

to make the bace of a building more sturdy

Explanation:

example: the bace of the empire state building is stone very sturdy

6 0
2 years ago
Other questions:
  • The popularity of orange juice, especially as a breakfast drink, makes it an important factor in the economy of orange-growing r
    14·1 answer
  • What is an Algorithm? *
    5·1 answer
  • The function of a circuit breaker is to _____.
    12·1 answer
  • A 11-cm-diameter horizontal jet of water with a velocity of 40 m/s relative to the ground strikes a flat plate that is moving in
    7·1 answer
  • How does flextape adhere under water?​
    8·1 answer
  • Technician A says that latent heat is hidden heat and cannot be measured on a thermometer. Technician B says that latent heat is
    12·1 answer
  • What are the characteristic features of stress corrosion cracks?
    15·1 answer
  • By using order of magnitude analysis, the continuity and Navier-Stokes equations can be simplified to the Prandtl boundary-layer
    9·1 answer
  • When bending metal, the material on the outside of the curve stretches while the material on the inside of the curve compresses.
    14·1 answer
  • What is the mode of operation of a ramp digital voltimeter​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!