SlideShare a Scribd company logo
1 of 1
Download to read offline
Please Use SWISH and write the code. answer each part carefully! DOnot copy from other
people's posts. please
A) Consider a hypothetical family tree from the file FamilyTree posted in this module (Module 4).
Create a simple database containing facts and inference rules. Include facts about family
members, such as male, female, parent. Then add rules such as sister, brother, sibling, father,
mother, and grandparent. Run queries that will answer the following questions about family
members: (a) Is Pete Marks parent? (b) Is Anne Jennys parent? (c) Who is Todds father? (d) Who
is Toms sibling? (e) Who is Lillys brother? (f) Who is Henrys grandparent? (g) Who is Alices
sister? (h) Is Frank Kates brother? (i) Who is Matts mother? (j) Is Mark Annes brother?
B) Write a Prolog program that finds the maximum of a list of numbers. Submission file should
include a screenshot with tracing a program execution when a list only has 2 members and
execution without tracing when a list has 8 elements.

More Related Content

More from access2future1

PLEASE HELP ME Eric Christopher Associate Director for Glo.pdf
PLEASE HELP ME Eric Christopher Associate Director for Glo.pdfPLEASE HELP ME Eric Christopher Associate Director for Glo.pdf
PLEASE HELP ME Eric Christopher Associate Director for Glo.pdf
access2future1
 
Patient Documentation Analysis Due Date Sunday 1159 pm MT.pdf
Patient Documentation Analysis Due Date Sunday 1159 pm MT.pdfPatient Documentation Analysis Due Date Sunday 1159 pm MT.pdf
Patient Documentation Analysis Due Date Sunday 1159 pm MT.pdf
access2future1
 
Please fix the following C++ code to compile correctly in Vi.pdf
Please fix the following C++ code to compile correctly in Vi.pdfPlease fix the following C++ code to compile correctly in Vi.pdf
Please fix the following C++ code to compile correctly in Vi.pdf
access2future1
 
output and explain There is Mylist There is MyArrayList pa.pdf
output and explain There is Mylist There is MyArrayList pa.pdfoutput and explain There is Mylist There is MyArrayList pa.pdf
output and explain There is Mylist There is MyArrayList pa.pdf
access2future1
 
i am trying to add the first four lines of a studenttxt int.pdf
i am trying to add the first four lines of a studenttxt int.pdfi am trying to add the first four lines of a studenttxt int.pdf
i am trying to add the first four lines of a studenttxt int.pdf
access2future1
 
Case 8 Synergies3 Tec Services LLC v Corvo Lisa Corvo .pdf
Case 8 Synergies3 Tec Services LLC v Corvo    Lisa Corvo .pdfCase 8 Synergies3 Tec Services LLC v Corvo    Lisa Corvo .pdf
Case 8 Synergies3 Tec Services LLC v Corvo Lisa Corvo .pdf
access2future1
 
39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf
39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf
39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf
access2future1
 
Crossworo Puzzle I Down 1 The notwork design layer mosi 2.pdf
Crossworo Puzzle  I Down 1 The notwork design layer mosi 2.pdfCrossworo Puzzle  I Down 1 The notwork design layer mosi 2.pdf
Crossworo Puzzle I Down 1 The notwork design layer mosi 2.pdf
access2future1
 
Complete DB code following the instructions Implement the D.pdf
Complete DB code following the instructions Implement the D.pdfComplete DB code following the instructions Implement the D.pdf
Complete DB code following the instructions Implement the D.pdf
access2future1
 

More from access2future1 (20)

PLEASE HELP ME Eric Christopher Associate Director for Glo.pdf
PLEASE HELP ME Eric Christopher Associate Director for Glo.pdfPLEASE HELP ME Eric Christopher Associate Director for Glo.pdf
PLEASE HELP ME Eric Christopher Associate Director for Glo.pdf
 
please help with the fill in the blanks Fill in the followin.pdf
please help with the fill in the blanks Fill in the followin.pdfplease help with the fill in the blanks Fill in the followin.pdf
please help with the fill in the blanks Fill in the followin.pdf
 
Patient Documentation Analysis Due Date Sunday 1159 pm MT.pdf
Patient Documentation Analysis Due Date Sunday 1159 pm MT.pdfPatient Documentation Analysis Due Date Sunday 1159 pm MT.pdf
Patient Documentation Analysis Due Date Sunday 1159 pm MT.pdf
 
Please fix the following C++ code to compile correctly in Vi.pdf
Please fix the following C++ code to compile correctly in Vi.pdfPlease fix the following C++ code to compile correctly in Vi.pdf
Please fix the following C++ code to compile correctly in Vi.pdf
 
output and explain There is Mylist There is MyArrayList pa.pdf
output and explain There is Mylist There is MyArrayList pa.pdfoutput and explain There is Mylist There is MyArrayList pa.pdf
output and explain There is Mylist There is MyArrayList pa.pdf
 
Name the hormones that influence the menstrual cycle Ident.pdf
Name the hormones that influence the menstrual cycle  Ident.pdfName the hormones that influence the menstrual cycle  Ident.pdf
Name the hormones that influence the menstrual cycle Ident.pdf
 
Mike and Carol Brady realized that their house was not big e.pdf
Mike and Carol Brady realized that their house was not big e.pdfMike and Carol Brady realized that their house was not big e.pdf
Mike and Carol Brady realized that their house was not big e.pdf
 
Debugging C Console Program Debug the program to identify .pdf
Debugging C Console Program Debug the program to identify .pdfDebugging C Console Program Debug the program to identify .pdf
Debugging C Console Program Debug the program to identify .pdf
 
742 Example 743 Continued Suppose that we have iid Ber.pdf
742 Example 743 Continued Suppose that we have iid Ber.pdf742 Example 743 Continued Suppose that we have iid Ber.pdf
742 Example 743 Continued Suppose that we have iid Ber.pdf
 
Holt Enterprises recently paid a dividend D0 of 275 It .pdf
Holt Enterprises recently paid a dividend D0 of 275 It .pdfHolt Enterprises recently paid a dividend D0 of 275 It .pdf
Holt Enterprises recently paid a dividend D0 of 275 It .pdf
 
i am trying to add the first four lines of a studenttxt int.pdf
i am trying to add the first four lines of a studenttxt int.pdfi am trying to add the first four lines of a studenttxt int.pdf
i am trying to add the first four lines of a studenttxt int.pdf
 
2 Use the information above to complete the Aging of Accoun.pdf
2 Use the information above to complete the Aging of Accoun.pdf2 Use the information above to complete the Aging of Accoun.pdf
2 Use the information above to complete the Aging of Accoun.pdf
 
3 Question 3 points a Seepage 561 John and Daniel grestly .pdf
3 Question 3 points a Seepage 561 John and Daniel grestly .pdf3 Question 3 points a Seepage 561 John and Daniel grestly .pdf
3 Question 3 points a Seepage 561 John and Daniel grestly .pdf
 
Case 8 Synergies3 Tec Services LLC v Corvo Lisa Corvo .pdf
Case 8 Synergies3 Tec Services LLC v Corvo    Lisa Corvo .pdfCase 8 Synergies3 Tec Services LLC v Corvo    Lisa Corvo .pdf
Case 8 Synergies3 Tec Services LLC v Corvo Lisa Corvo .pdf
 
39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf
39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf
39Draw a Flowchart for Calculate GrossPay Button Click Even.pdf
 
Crossworo Puzzle I Down 1 The notwork design layer mosi 2.pdf
Crossworo Puzzle  I Down 1 The notwork design layer mosi 2.pdfCrossworo Puzzle  I Down 1 The notwork design layer mosi 2.pdf
Crossworo Puzzle I Down 1 The notwork design layer mosi 2.pdf
 
CHALENSE ACTIVIV 481 Confidence intervals for population .pdf
CHALENSE ACTIVIV 481 Confidence intervals for population .pdfCHALENSE ACTIVIV 481 Confidence intervals for population .pdf
CHALENSE ACTIVIV 481 Confidence intervals for population .pdf
 
Complete DB code following the instructions Implement the D.pdf
Complete DB code following the instructions Implement the D.pdfComplete DB code following the instructions Implement the D.pdf
Complete DB code following the instructions Implement the D.pdf
 
Chocolatefie de Geneve SA is located in a Frenchspeaking .pdf
Chocolatefie de Geneve SA is located in a Frenchspeaking .pdfChocolatefie de Geneve SA is located in a Frenchspeaking .pdf
Chocolatefie de Geneve SA is located in a Frenchspeaking .pdf
 
Consider the following job information Each job must procee.pdf
Consider the following job information Each job must procee.pdfConsider the following job information Each job must procee.pdf
Consider the following job information Each job must procee.pdf
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 

Recently uploaded (20)

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

Please Use SWISH and write the code answer each part carefu.pdf

  • 1. Please Use SWISH and write the code. answer each part carefully! DOnot copy from other people's posts. please A) Consider a hypothetical family tree from the file FamilyTree posted in this module (Module 4). Create a simple database containing facts and inference rules. Include facts about family members, such as male, female, parent. Then add rules such as sister, brother, sibling, father, mother, and grandparent. Run queries that will answer the following questions about family members: (a) Is Pete Marks parent? (b) Is Anne Jennys parent? (c) Who is Todds father? (d) Who is Toms sibling? (e) Who is Lillys brother? (f) Who is Henrys grandparent? (g) Who is Alices sister? (h) Is Frank Kates brother? (i) Who is Matts mother? (j) Is Mark Annes brother? B) Write a Prolog program that finds the maximum of a list of numbers. Submission file should include a screenshot with tracing a program execution when a list only has 2 members and execution without tracing when a list has 8 elements.