Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 whomStep 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