Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Please discuss assignment 4 here, also share link if you found it helpful in making assignment.

 

Topics Covered: PROLOG AND JAVA PROGRAMMING LANGUAGES.

Views: 2134

Attachments:

Replies to This Discussion

lectures covered 22-26.

 

if it's raining and cold then it's snowy.

can it converted to PROLOG rule

snowy:-raining, cold

OR

snowy(X):- raining(X), cold(X)

plz any one give the solution of question 1 part 2 plz guide me 

what i do is.

 

define facts, rules, and goals according to every situation given.

A program structure is written which is not compiled with any compiler. i just make it as it is already given to our handouts.

fact is like

raining(Islamabad)

cold(mansehra)

rule is like

snowy:-raining, cold

goal is like

?-raining(islamabad)

 

Please other students are also advised to get discussion and confirm me. am i doing right? i dont have any idea if i am doing correct.

u r doing very well

send more idea and i wl give u more comments

ISV3083 Salam ap sahe kar rahy ho mai ne bhi esy kiya mai ne rat ko tutorial sy sikha ky kesy karna he us me rule or facts ky sath lety hain jesy first wala he ky snowy (Y) In Y we put cities name and as we know that Snowy condition only fulfill if its rain and cold so which city fulfill this condition query true 

lekin last ka smjh nahi a rha ky Us me sirf cold ye ya Cold kun ky agar Sirf cold lagy to wo cities bhi nahi ayain gi jahan sunny he ISV3083 ap btao gy kesy ho ga ye ?

Can u share idea in detail?????????????????????????????????????

snowy (Islamabad). 

no 

as the its only snowy if its raining and cold to islamabad is only raining so it is false like this we solve all

Are these correct?

Q#1: A

Sol:

snowy :- raining, cold

pleasant :- cold, sunny

hot :- sunny

rainbow :- raining, sunny

lovely :- raining

Ji Khaksar its right answer 

Asalam-o-Alikum,

Bhai Sir nay program ko compile karnay ka kaha hay, prolog wala code compile karna hay yah java ka?

java ka karna he prolog ka nahi kaha 

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service