Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Swi Prolog Given a bunch of facts in the following form: fan(frank, [childhoods_end, the_dune_chronicles, neverwhere]). fan(gunther, [rendezvous_with_rama, the_lord_of_the_rings]). author(jrr_Tolkien, [the_lord_of_the_rings, the_silmarillion]). author(douglas_adams, [the_hitchhikers_guide_to_the_galaxy]). novel(the_illustrated_man, 1951).

Swi Prolog

Given a bunch of facts in the following form:

fan(frank, [childhoods_end, the_dune_chronicles, neverwhere]). fan(gunther, [rendezvous_with_rama, the_lord_of_the_rings]).

author(jrr_Tolkien, [the_lord_of_the_rings, the_silmarillion]). author(douglas_adams, [the_hitchhikers_guide_to_the_galaxy]).

novel(the_illustrated_man, 1951). novel(little_women, 1868).

1.)Complete the denition of the predicate author names(Author) in, which will be true true if Author is an author whose novels chandler is a fan of.

2.) Complete the denition of the predicate fans names(Fan) in hw4-handout/query/query.pl, which is true if Fan is a person who is a fan of the novels authored by brandon sanderson.

3.) Complete the denition of the predicate mutual novels(Book) in hw4-handout/query/query.pl, which is true if Book is a novel that is common between either of phoebe, ross, and monica

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions