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
The secondary line to voltage of a threephase connected transformer bank is 11 VACWhat would be the secondary line to neutral vo
NemiM [27]
Crazy cause I didn’t ask now I asked so whats the question
8 0
3 years ago
If 1 inch equals 10 feet, what would the measured distance be if the line scaled 1 1/2 inches?
Crank

Answer: B. 15 feet

Explanation:

4 0
3 years ago
Read 2 more answers
Find the diameter of the test cylinder in which 6660 N force is acting on it with a modulus of elasticity 110 x 103 Pa. The init
Shtirlitz [24]

Answer:

The diameter of the test cylinder should be 7.65 meters.

Explanation:

The Hooke's law relation between stress and strain is mathematically represented as

Stress=E\times strain\\\\\sigma =e\times \epsilon

Where 'E' is modulus of elasticity of the material

Now by definition of strain we have

\epsilon =\frac{\Delta L}{L_{o}}

Applying values to obtain strain we get

\epsilon =\frac{0.5}{380}=0.001316

Thus the stress developed in the material equals

\sigma = 110\times 10^{3}\times 0.001316=144.76N/m^{2}

Now by definition of stress we have

\sigma =\frac{Force}{Area}\\\\\therefore Area=\frac{Force}{\sigma }\\\\\frac{\pi D^{2}}{4}=\frac{6660N}{144.76}=46m^{2}

Solving for 'D' we get

D=\sqrt{\frac{4\times 46}{\pi }}=7.653meters

6 0
3 years ago
If you are being tailgated and need to make a stop, you should
alexandr402 [8]

If you are being tailgated and need to make a stop, you should:

B. flash your brake lights ahead of time.

C. slow sooner to make a gradual stop.

<h3>What is tailgating?</h3>

Tailgating can be defined as an act which typically involves a tailgater driving dangerously close behind another vehicle that is in front.

This ultimately implies that, a tailgating vehicle is a hazard to any driver because when he or she brakes suddenly, it may result in the tailgater hitting him or her from the rear.

In this context, we can infer and logically deduce that if you are being tailgated and need to make a stop, you should flash your brake lights ahead of time and slow sooner to make a gradual stop.

Read more on tailgating vehicle here: brainly.com/question/14287208

#SPJ1

8 0
2 years ago
4.
Stella [2.4K]
A gas cylinders be cleaning chemical see wedding rods de leathers must be stored in and approve steel cabinet
3 0
3 years ago
Other questions:
  • Here you will program the Newton-Raphson root finding method with details specified as fol-lows. Your code will continue perform
    5·1 answer
  • A fluid of density 1400 kg/m^3 and viscosity of 0.9 kg/m.s flows through an 80 mm diameter pipe with a velocity of 5 m/s. What t
    6·1 answer
  • A vehicle has a crimped fuel return line. What effect will this have on 5-Gas analyzer gas readings?
    5·2 answers
  • The flow rate on an arterial is 1,800 veh/h, evenly distributed over two lanes. If the average speed in these lanes is 40 mi/h,
    8·1 answer
  • What is the output of a system with the transfer function s/(s + 3)^2 and subject to a unit step input at time t = 0?
    5·1 answer
  • Guys i need help and some ones please help me
    12·1 answer
  • What conclusions can you reach from your gym teacher’s science-fair display?
    13·1 answer
  • Words and numbers can be<br> printed using many different<br> or type styles.
    14·1 answer
  • A 1-w, 350-ω resistor is connected to 24 v. Is this resistor operating within its power rating?
    13·1 answer
  • What is the derivative of?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!