Find the queries that will collect the right solutions given a database.
After that, we have to use these queries to create a predicate called "answer" such that typing "answer." in Prolog will write out all the solutions.
e.g. it's supposed to look like:
? - answer.
[solution to a]
[solution to b]
[solution to c]
true.
However, I'm not sure how to create a predicate where I don't have to pass any items/variables into it. Whenever I've tried to create a predicate "answer" and call it, I get errors saying "answer" cannot have 0 items.
edit: The question is:
Use your exact queries from above and create a predicate "answer" that prints using write the above answers, i.e., the following query is to work:
?- answer.
[solution to question a]
[solution to question b]
[solution to question c]
true.