Question: USING PROLOG: Create the program pro.pl in the (Notepad++) text editor, and enter and save the following facts. prereq (introCS, datastructs). prereg (datastructs, progLangs). prereg

USING PROLOG: Create the program pro.pl in the (Notepad++) text editor, and enter and save the following facts. prereq (introCS, datastructs). prereg (datastructs, progLangs). prereg (datastructs, graphics). prereg (linAlg, graphics). Then ask questions such as. ?- preg (X, graphics). 2. Write Prolog facts which translate the following statements. a) Lupo is a wolf b) Foxy is a fox c) Bunny is a rabbit d) Bunny eats corn e) Slimey is a snail f) Tweety is a bird g) Tweety, eats corn Ask appropriate questions related to your KB. 3. Express in Prolog part of your family tree in terms of mother/2, father/2 relations as shown below: mother (tiffany, ellen). male (robert). father (paul, john) . female (ellen). father (jason, paull) Ask appropriate questions. USING PROLOG: Create the program pro.pl in the (Notepad++) text editor, and enter and save the following facts. prereq (introCS, datastructs). prereg (datastructs, progLangs). prereg (datastructs, graphics). prereg (linAlg, graphics). Then ask questions such as. ?- preg (X, graphics). 2. Write Prolog facts which translate the following statements. a) Lupo is a wolf b) Foxy is a fox c) Bunny is a rabbit d) Bunny eats corn e) Slimey is a snail f) Tweety is a bird g) Tweety, eats corn Ask appropriate questions related to your KB. 3. Express in Prolog part of your family tree in terms of mother/2, father/2 relations as shown below: mother (tiffany, ellen). male (robert). father (paul, john) . female (ellen). father (jason, paull) Ask appropriate questions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
