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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post 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 20 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply