Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are given the following Prolog (fact/rule) database. 125 points] 1. Database for family. It consists of facts and rules. Facts male (Michae male. Hbamas)...
You are given the following Prolog (fact/rule) database. 125 points] 1. Database for family. It consists of facts and rules. Facts male (Michae male. Hbamas)... female liiennifer)... female, lisa).. father of (mark, bepb) mark is the father of beth mother of (jen, tom ien is the mother of tom Rules is male (X) male (X) father of (x,...nl Enter the program using a text editor such as yi or nano under Unix operation system and save the file as family. You may enter the program on your own computer and upload the program into your cse240prolog directory in general server. Compile the program using the Prolog command: Then, enter GNU Prolog programming environment by executing the Unix command ggralea. Execute the program family by typing GNU Prolog command family Ask questions by typing, eg.: CSE240 Introduction to Programming Languages 2 l Page Homework 13 I ..father of (michael, lisa) 12 mother of (Jiaa, Jhomas) To exit from GNU Prolog, type your end-offile character at the main Prolog prompt d (Ctrl- d). 1,436 You are given the following Prolog (fact/rule) database. 125 points] 1. Database for family. It consists of facts and rules. Facts male (Michae male. Hbamas)... female liiennifer)... female, lisa).. father of (mark, bepb) mark is the father of beth mother of (jen, tom ien is the mother of tom Rules is male (X) male (X) father of (x,...nl Enter the program using a text editor such as yi or nano under Unix operation system and save the file as family. You may enter the program on your own computer and upload the program into your cse240prolog directory in general server. Compile the program using the Prolog command: Then, enter GNU Prolog programming environment by executing the Unix command ggralea. Execute the program family by typing GNU Prolog command family Ask questions by typing, eg.: CSE240 Introduction to Programming Languages 2 l Page Homework 13 I ..father of (michael, lisa) 12 mother of (Jiaa, Jhomas) To exit from GNU Prolog, type your end-offile character at the main Prolog prompt d (Ctrl- d). 1,436
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started