Question: course ( cpsc 1 3 1 ) . course ( cpsc 3 3 5 ) . course ( cpsc 3 7 5 ) . course
coursecpsc
coursecpsc
coursecpsc
coursecpsc
coursecpsc
coursemath
prereqcpsc cpsc cpsc has cpsc as a prerequisite
prereqcpsc math
prereqcpsc cpsc
prereqcpsc math
prereqcpsc cpsc
Write a Prolog program that will answer the queries to the situations above.
a Give the Prolog program which will include:
i Facts.
ii Rules that can be used to answer the queries: all courses that can be taken, and all courses that have already been taken. To be added.
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
