Question: 1 . 1 Create the Knowledge Base in membership.pl file. Use Membership operation to check whether X is present in list L or not? Define
Create the Knowledge Base in membership.pl file. Use Membership operation to check whether X is
present in list L or not?
Define one predicate to do so
Name is listmemberXL
Compile the file and ask the following questions:
Is b a member of list: ba b c
Is b a member of list: bab c
Is b a member of list: b cab c
Is b a member of list: da b c
Run the program, screen shot the output and pasted it to a Word document.
For the Knowledge Base, you can either submit membership.pl file or you copy and paste
it to the same Word document.
Create the Knowledge Base in delete.pl file. Use delete operation to delete X from list L
Compile the file and ask the following questions:
Delete a from list: aeiou
Delete a from list: a
Delete X from list: aeiou and new list: aeou find X
Delete a from list: eiou
Run the program, screen shot the output and pasted it to a Word document.
For the Knowledge Base, you can either submit delete.pl file or you copy and paste it to
the same Word document.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
