6 question budget 30.
Write Prolog rules as described in the questions below. You may use any
Prolog builtin predicates. You may need to write auxiliary \helper" rules in
Your code may be tested by an automated script, so be sure to do as follows:
Place all denitions in a single le
that can be read without error
by a Prolog interpreter. If you add comment lines, prex them with a
% (prolog comment symbol)
Submit just this text le electronically
as directed on the course
Study Desk page. (Do not submit a word processed or PDF le.)
Use the rule name and arguments exactly as specied.
Do NOT submit your test facts.
Do not submit (say) a set of
parent facts that you used to test your wor