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
1 A power transmission includes a belt drive, a chain drive and a gear drive. Which of the following is the best arrangement bet
Setler79 [48]

Answer:d

Explanation:

(d) chain drive belt drive gear drive

3 0
3 years ago
Tech A says that in some cases, the electronic brake control module can be programmed with a new tire size to restore proper ele
Vlad [161]

Answer:

Both Techs A and B

Explanation:

Electronic braking systems are controlled by the electronic brake control module. It is a microprocessor that processes information from wheel-speed sensors and the hydraulic brake system to determine when to release braking pressure at a wheel that's about to lock up and start skidding  and activates the anti lock braking system or traction system when it detects it is necessary.

Some electronic brake control modules can be programmed to the size of the vehicle's new tires to restore proper electronic brake control performance. While others may require replacing the module to match the module's programming to the installed tire size. So, both technicians A and B are correct.

3 0
3 years ago
What do you mean by searching?​
nikitadnepr [17]

Answer:

thoroughly scrutinizing, especially in a disconcerting way.

Explanation:

8 0
3 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
List all possible fracture mechanisms under which the unidirectional composites fail. Briefly explain and describe the related m
professor190 [17]

Answer:

Ususushehehehhuuiiïbbb

Explanation:

Yyshehshehshshsheyysysueueue

7 0
2 years ago
Other questions:
  • Which of the following describes fibers? a)- Single crystals with extremely large length-to-diameter ratios. b)- Polycrystalline
    10·1 answer
  • Se requiere un permiso aprobación o restricción contaminante para todos los métodos comerciales de descarga de aguas residuales
    13·1 answer
  • At a festival, spherical balloons with a radius of 140.cm are to be inflated with hot air and released. The air at the festival
    10·1 answer
  • The air standard efficiency ofan Otto cycle compared to diesel cycle for thie given compression ratio is: (a) same (b) less (c)
    12·1 answer
  • PLEASE HELP ASAP!!! Thanks
    11·1 answer
  • In a hydraulic system, a 100.-newton force is applied to a small piston with an area of 0.0020 m2. What pressure, in pascals, wi
    13·1 answer
  • A 1/4" nut driver with a 1.52 inch diameter handle is used to install a 14" 6 UNC
    13·1 answer
  • Can somebody help me with that
    13·1 answer
  • Porque el invento de la bombilla es importante?
    6·1 answer
  • What classes do you have to take in college for be a system software engineer
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!