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
11. Which of the following is the brake fluid most often used?
Olenka [21]
Dot 3 is mostly used in a lot of v4 and v6
4 0
3 years ago
Read 2 more answers
A two-bus power system is interconnected by one transmission line. Bus 1 is a generator bus with specified terminal voltage magn
mixas84 [53]

Answer:

a) | v2 | ,  β2   ( load, bus voltage at bus 2 )

  p1 ,  q1 ( slack, bus power at bus 1 )

b) q2 , β2  

  p1 and q1 ( slack, bus power at bus 1 )

Explanation:

Attached below is a schematic representation of the solution

<u>a) Identify the variables in the solution vector assume Bus 2 is a load bus</u>

The specified parameters are ; P2 and q2

while | v2 | and β2 are not specified

given that bus 2 is a load bus, bus 1 is a slack bus with ; | v1 |  and β1 been specified while p1 and q1 are not specified

<em>Hence the variables in the solution </em>

<em>= | v2 | ,  β2   ( load, bus voltage at bus 2 )</em>

<em>   p1 ,  q1 ( slack, bus power at bus 1 ) </em>

<u>b) Identify the variables in the solution vector ( assume Bus 2 is a PV bus )</u>

specified at Bus 2 are ; | p2 | , | v2 |

unspecified : q2 , β2

Bus 1 ( still a slack bus )

specified parameter : | v1 |  and β1

unspecified : p1 and q1

<em>Hence the variables in the solution </em>

<em>= q2 , β2  </em>

<em>   p1 and q1 ( slack, bus power at bus 1 ) </em>

7 0
3 years ago
Can i join three 12 volts batteriesto give me 24 volts output​
bulgar [2K]

Answer:

YES

Explanation:

If we connect batteries in series then the output voltage is the sum of the individual voltage of each battery i.e if you connect three 12 volts batteries in series then their output voltage will be 12+12+12=36 volts, but the current rating of the batteries in series will be same of the individual battery rating in 'mah'.

But when we connect the batteries in parallel their voltage is not added  but their current rating in mah is addition of their individual rating.

So, If you want 24 volts from three 12 volts battery then you can connect two of them in series and the other one in parallel with them this will give 24 volts and the current will be addition of the two series batteries and the third which is in parallel with them. You can use this configuration if current value is not a big factor.

8 0
3 years ago
A total of 245 kip force is applied to a set of 10 similar bolts. If the spring constant of each bolt is 0.4 Mlb/in and that of
zubka84 [21]

Answer: The net force in every bolt is 44.9 kip

Explanation:

Given that;

External load applied = 245 kip

number of bolts n = 10

External Load shared by each bolt (P_E) = 245/10 = 24.5 kip

spring constant of the bolt Kb = 0.4 Mlb/in

spring constant of members Kc = 1.6 Mlb/in

combined stiffness factor C = Kb / (kb+kc) = 0.4 / ( 0.4 + 1.6)  = 0.4 / 2 = 0.2 Mlb/in

Initial pre load Pi = 40 kip

now for Bolts; both pre load Pi and external load P_E are tensile in nature, therefore we add both of them

External Load on each bolt P_Eb = C × PE = 0.2 × 24.5 = 4.9 kip

So Total net Force on each bolt Fb = P_Eb + Pi

Fb = 4.9 kip + 40 kip

Fb = 44.9 kip

Therefore the net force in every bolt is 44.9 kip

4 0
3 years ago
A fully braced structural member in a building is subjected to several different loads, including roof loads of D = 5 k and L_r
allochka39001 [22]

Answer: 37.4K

Explanation:

See attachment

7 0
3 years ago
Other questions:
  • Nc3
    12·1 answer
  • Show from the first principles that, for a perfect gas with constant specific heat capacities
    14·1 answer
  • Que rol tiene el ecosistema el patos
    15·1 answer
  • 5) A 80-kg man has a total foot imprint area of 480 cm2. Determine the pressure this man exerts on the ground if (a) he stands o
    5·1 answer
  • Torque is a twisting force. If the required torque applied on a 3 ft wrench is 45 ft·lb, what is the force that must be applied?
    5·1 answer
  • Depreciation is.... *
    7·2 answers
  • Convection ovens operate on the principle of inducing forced convection inside the oven chamber with a fan. A small cake is to b
    6·1 answer
  • The cost of hiring new employees outpaces the raises for established employees is
    5·1 answer
  • Which of the following suggestions would best help alleviate the Gulf of Mexico dead zone?
    13·1 answer
  • Component of earthing and reasons why each material is being used<br><br>​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!