Q 8. Provide a knowledge-base of clauses specifying you and your team's courses in PRO- LOG. • In your database include
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Q 8. Provide a knowledge-base of clauses specifying you and your team's courses in PRO- LOG. • In your database include
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.