Page 1 of 1

Q 8. Provide a knowledge-base of clauses specifying you and your team's courses in PRO- LOG. • In your database include

Posted: Mon Jun 06, 2022 5:20 pm
by answerhappygod
Q 8 Provide A Knowledge Base Of Clauses Specifying You And Your Team S Courses In Pro Log In Your Database Include 1
Q 8 Provide A Knowledge Base Of Clauses Specifying You And Your Team S Courses In Pro Log In Your Database Include 1 (57.13 KiB) Viewed 21 times
Not SQL, use Prolog please.
student(aaa,1234567).
student(bbb,2345678).
student(ccc,3456789).
courses(comp,348).
courses(comp,335).
courses(comp,345).
courses(engr,233).
studentTakeCourse(aaa,comp,348).
studentTakeCourse(aaa,comp,345).
studentTakeCourse(bbb,comp,348).
studentTakeCourse(bbb,comp,335).
studentTakeCourse(ccc,comp,348).
studentTakeCourse(ccc,engr,233).
Q 8. Provide a knowledge-base of clauses specifying you and your team's courses in PRO- LOG. • In your database include your student information (name and id) as well as all courses that each member of the team is taking this semester. The courses include course name and course number. • Write a query to return the list of courses taken by each member. • Write a query to return the team size. • Write a query to return the unique courses taken by the whole team. • Use sort/2 to sort the result of the previous query. • Unify the expression [A, BIC] with the above result. Provide the values for A, B, and C.