0

CS607 Assignment No.2 December 2020 – Solution File Download

Question No.1

Convert the following expression to conjunctive normal form, write all the equivalence rules that you will use to convert.

a)         ¬((¬p→¬q)¬r)

 

b)         (p→q)→(¬rq)

 

Question No.2

 

Using deftemplate add a function with the name “person” with slots name, age, degree, and GPA. Then add the fact of that person with your details.

Also, write a rule with the name “is-student-passed” where you will set a condition on CGPA, if CGPA will be 3.5 or 3.7 then the student will be passed. Write the code for this rule and run this rule.

Take screenshots of your CLIPS IDE window. If any student will send code on word or pdf file marks will be ZERO.

 

admin Changed status to publish
Add a Comment