Question: Convert the following information into a Prolog program: Nadia owns a Beagle named Sasha. Sjanie owns a Labrador named Zappa. Peter owns a Dalmation named
Convert the following information into a Prolog program:
Nadia owns a Beagle named Sasha.
Sjanie owns a Labrador named Zappa.
Peter owns a Dalmation named Domino.
John owns a Boxer named Daisy.
Marni owns a Ridgeback named Ben.
Beagles are medium dogs and are used for hunting.
Bassets are also used for hunting.
Labradors are large dogs and are used as guide dogs.
German Shepherds are used as guard dogs.
Use one predicate to represent all the known details regarding a particular dog and one predicate for a particular dog breed, eg
dog
breed
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
