Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Prolog program for Donald Duck?s Family Tree.jpg(please refer to attachment) . In your program, you should have thefollowing terms as facts in your

  1. Write a Prolog program for Donald Duck?s Family Tree.jpg(please refer to attachment) . In your program, you should have thefollowing terms as facts in your knowledge base (5%):
  2. parent(x, y).
  3. male(x).
  4. female(x).
  5. marry(x, y)
  6. Additionally, you should also definerules for the following relationships (10%): 
  1. father
  2. mother
  3. child
  4. son
  5. daughter
  6. aunt
  7. uncle
  8. siblings
  9. cousin
  10. second_cousin
    1. Write a swi pro-log code about donald ducks family based on theimage

image

067 MATILDA McDUCK DOWNY ODRAKE SIR ROAST MCDUCK AV HUEY DUCK QUAGMIRE MCDUCK SIR STUFT McDUCK DUCK SCROOGE MADUCK OP WAY 2001 SIR SKAMPHOLE McDUCK DEWEY DUCK HORTENSE MCDUCK 363 FERGUS MCDUCK 101 DIRTY DINGUS MADUCK DELLA DUCK HUGH SEAFOAM MCDUCK THE CLAN MEDUCK LOUIE DUCK BAS JAKE MCDUCK QUACKMORE DUCK DONALD DUCK MALCOLM MODUCK ANGUS POTHOLE MCDUCK GOOSTAVE GANDER MOLLY MALLARD SIR EIDER MCDUCK Donald Duck Family Tree SIR QUACKLY MODUCK BLADSTONE GANDER erw My Mr. M B DAPHNE DUCK HUMPERDINK DUCK FAMILY FETHRY DUCK PINTAIL DUCK DUCK 66 LULUBELLE LOON ABNER WHITEWATER DUCK 313 EIDER DUCK ELVIRA GRANDMA COOT GERTRUDE GADWALL O 412 GUS GOOSE FANNY COOT CASEY COOT CLINTON COOT CORNELIUS GOOT COOT KIN LUKE GOOSE CUTHBERT COOT GRETCHEN BREBE

Step by Step Solution

3.49 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

Facts parentdonald huey parentdonald dewey parentdonald louie parentdella huey parentdella dewey parentdella louie parentscamper april parenthortense ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming Language Pragmatics

Authors: Michael L. Scott

4th Edition

0124104096, 978-0124104099

More Books

Students also viewed these Programming questions

Question

Explain how you might implement setjmp and longjmp on a SPARC.

Answered: 1 week ago

Question

What are Voronoi polygons and when should they be used?

Answered: 1 week ago