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
During a load test, a battery's voltage drops below a specific value. what action should the technician take?
Katyanochek1 [597]

Answer:

B

Explanation:

allow battery to become fully discharged and retest

4 0
2 years ago
What’s the purpose of current tracks
Taya2010 [7]

Answer:

What's the purpose of tracks going in the red? Having tracks go into the red is surely redundant, I don't see any purpose in having tracks distort ... It just seems like a hang on from the old days of tape, it's something that people who ... be in daws and I'm trying to assemble an alternative I understand the current mixing system. The Dow Jones Industrial Average (DJIA) is a stock index of 30 blue-chip industrial ... Today, the DJIA is a benchmark that tracks American stocks that are ... To calculate the DJIA, the current prices of the 30 stocks that make up the ... the longevity of the Dow serves this purpose better than all other indices.

Explanation:

3 0
3 years ago
If the old radiator is replaced with a new one that has longer tubes made of the same material and same thickness as those in th
Nookie1986 [14]

Answer: hello some parts of your question is missing attached below is the missing information

The radiator of a car is a type of heat exchanger. Hot fluid coming from the car engine, called the coolant, flows through aluminum radiator tubes of thickness d that release heat to the outside air by conduction. The average temperature gradient between the coolant and the outside air is about 130 K/mm . The term ΔT/d  is called the temperature gradient which is the temperature difference ΔT between coolant inside and the air outside per unit thickness of tube

answer : Total surface area = 3/2 * area of old radiator

Explanation:

we will use this relation

K = \frac{Qd }{A* change in T }

change in T =  ΔT  

therefore New Area  ( A ) = 3/2 * area of old radiator

Given that the thermal conductivity is the same in the new and old radiators

3 0
3 years ago
A mass of 5 kg of saturated water vapor at 100 kPa is heated at constant pressure until the temperature reaches 200°C.
Alex73 [517]

Answer: you can watch a video on how to solve this question on you tube

6 0
3 years ago
A vector AP is rotated about the Z-axis by 60 degrees and is subsequently rotated about X-axis by 30 degrees. Give the rotation
Musya8 [376]

Answer:

R = \left[\begin{array}{ccc}1&0&0\\0&cos30&-sin30\\0&sin30&cos30\end{array}\right]\left[\begin{array}{ccc}cos 60&-sin60&0\\sin60&cos60&60\0&0&1\end{array}\right]

Explanation:

The mappings always involve a translation and a rotation of the matrix. Therefore, the rotation matrix will be given by:

Let \theta and \alpha be the the angles 60⁰ and 30⁰ respectively

that is \theta = 60⁰ and

\alpha = 30⁰

The matrix is given by the following expression:

\left[\begin{array}{ccc}1&0&0\\0&cos30&-sin30\\0&sin30&cos30\end{array}\right]\left[\begin{array}{ccc}cos 60&-sin60&0\\sin60&cos60&60\0&0&1\end{array}\right]

The angles can be evaluated and left in the surd form.

4 0
2 years ago
Other questions:
  • For a heat pump, COP<1. a) True b) False
    11·1 answer
  • What is the uncertainty in position of an electron of an atom if there is t 2.0 x 10' msec uncertainty in its velocity? Use the
    12·1 answer
  • A motor cycle is moving up an incline of 1 in 30 at a speed of 80 km/h,and then suddenly the engine shuts down.The tractive resi
    11·1 answer
  • In a device to produce drinking water, humid air at 320C, 90% relative humidity and 1 atm is cooled to 50C at constant pressure.
    14·1 answer
  • Running ropes must be taken out of service if they have _____ broken wires in one strad in one lay
    15·2 answers
  • What is the definition of insert view and why do we use it
    10·1 answer
  • Christopher has designed a fluid power system that repeatedly gets clogs. Which of the following objects should he choose to add
    13·1 answer
  • What are the BENEFITS and RISKS of using automobiles?
    10·1 answer
  • A hub a signal that refreshes the signal strength.
    5·1 answer
  • List five pieces of personal safety equipment which must be in everyday use in the workshop​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!