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
Which of the following is NOT a line used on blueprints?
jonny [76]

Answer: Photo lines

Explanation: made more sense

4 0
2 years ago
A cyclic tensile load ranging from 0 kN to 55 kN force is applied along the length of a 100 mm long bar with a 15 mm x 15 mm squ
Yuliya22 [10]

Answer:

square cross section. The bar is made of a 7075-T6 aluminum alloy which has a yield strength of 500 MPa, a tensile strength of 575 MPa, and a fracture toughness of 27.5 MPaâm.

Required:

a. What is the nominal maximum tensile stress on the bar?

b. If there were an initial 1.2 mm deep surface crack on the right surface of the bar, what would the critical stress needed to cause instantaneous fast fracture of the bar be?

7 0
3 years ago
When encountering low visibility from rain or fog, you should use your ____.
kirza4 [7]

Answer:

B

Explanation:

Low beams should only be used when fog and rain is present, as high beams can cause a dangerous glare to you and other drivers. You should also use your fog lights, but not every vehicle has them.

4 0
3 years ago
A debugging process where you, the programmer, pretend you are a computer and step through each statement while recording the va
Ipatiy [6.2K]

Answer:

hand tracing

Explanation:

as a programmer when we pretend  computer in the  debugging process by the step of each statement in recording    

then there value of variable is hand tracing because as The hand tracking feature is the use of hands as an input method      

so while recording value of each variable each step is hand tracing

5 0
3 years ago
Given asphalt content test data:
VMariaS [17]

Answer:

hello your question is incomplete attached below is the complete question

A) overall mean = 5.535,  standard deviation ≈ 0.3239

B ) upper limit = 5.85, lower limit = 5.0

C) Not all the samples meet the contract specifications

D) fluctuation ( unstable Asphalt content )

Explanation:

B) The daily average asphalt content has to obtained in order to determine the upper and lower control limits using an average asphalt content of 5.5% +/- 0.5% everyday

The upper limit : 14 may = ( 5.8 + 5.1 ) / 2 = 5.85

The lower limit : 16 may = ( 5.2 + 4.8 ) / 2 = 5.0

attached below is the required plot

C ) Not all the samples meet the contract specifications and the samples that do not meet up are samples from :

15 may and 16 may . this is because their Asphalt contents are 6.2 and 4.8 respectively and sample number 18 and 20

D ) what can be observed is that the ASPHALT content fluctuates between the dates while the contract specification is fixed

5 0
3 years ago
Other questions:
  • This is a new technology meant to reduce vehicle roll-overs A. Lane-departure warning B. Anti-lock brakes C. Inspection reports
    7·1 answer
  • Some engineers have developed a device that provides lighting to rural areas with no access to grid electricity. The device is i
    13·1 answer
  • An incompressible fluid flows along a 0.20-m-diameter pipe with a uniform velocity of 3 m/s. If the pressure drop between the up
    15·1 answer
  • Under conditions for which the same roojm temperature is mainteined bt a heating or cooling system, it is not uncommon for a per
    10·1 answer
  • In Engineering, what is a shoulder on a bridge?
    8·1 answer
  • The value 100 MW is equivalent to (a) 100×10^6 w (b) 100 x 10^-6 w (c) 100 x 10^-3 w (d) 100 x 10^3 w
    14·1 answer
  • Expert Review is done by end users.
    9·1 answer
  • Which design activity is part of the design for manufacturability (DFM) methodology?
    10·1 answer
  • Discuss in detail the manners of interaction with opposite gender
    10·1 answer
  • Calculate the resistance of a circuit with 1.5 A and 120 V. Use the appropriate formula from the list of formulas on the
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!