Question: This assignment is worth 100 points. You are required to use the SWI-Prolog environment (http://www.swi-prolog. org) to implement the programs below. To complete this assign-


This assignment is worth 100 points. You are required to use the SWI-Prolog environment (http://www.swi-prolog. org) to implement the programs below. To complete this assign- ment, for convenience, you may also consider using the online SWI-Prolog engine available from that site. The online engine's direct URL is http://swish.swi-prolog.org/. Please up- load a single package that includes (1) the source-code, (2) a text file including the instructions for properly executing the programs e.g., usage/invocation of the program (i.e., goal/query) and any constraints that the GTA should be aware of prior to running and testing the program using the SWI-Prolog environment, and (3) screen snapshots (pictures/snapshots embedded on three test cases for each problem. (1. 10pts) Using the structures parent (X,Y), male (X), and female(X), write a Prolog struc- ture that defines sister(X,Y)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
