Question: For prolog 1. Create a Prolog database by typing the facts listed below in a .pro file. Consult the file in Amzi Prolog. While in

For prolog
1. Create a Prolog database by typing the facts listed below in a .pro file. Consult the file in Amzi Prolog. While in Amzi Prolog, type in the queries given below Facts Ashley collects stamps Ashley collects coins Carol collects figurines Carol collects stamps A collectable is anything that someone collects Beth sells collectables to Ashley Dan sells collectables to Carol if Carol collects them Queries Does Beth see coins to Ashley? What does Dan sell to Carol? What does Ashley buy? 2. Create a Prolog database by typing the facts listed below in a .pro file. Consult the file in Amzi Prolog. While in Amzi Prolog, type in the queries given below. You are to turn in the first response from Prolog. It is not necessary to show the responses after the', is hit. Facts Tom worksfor Dick Harry worksfor Mary Dick works in the HumanResources department. Mary works in the QualityAssurance department If someone worksfor another person then they are in the same department as the person that they work for If someone has another person who worksfor them, then they are the boss of all the people who work for them. Queries Is Dick Tom's boss? What department does Harry work in? Is Tom Mary's boss? Does Tom work in HumanRecources? Who is the boss of whom
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
