Question: using Logic Programming Prolog Lab Assessment: Exercises: Consider the given data, answer A, B and C: 1. All students study English 2. Sarah is studying

using Logic Programming "Prolog"

using Logic Programming "Prolog" Lab Assessment: Exercises: Consider the given data, answer

Lab Assessment: Exercises: Consider the given data, answer A, B and C: 1. All students study English 2. Sarah is studying Math and Physics 3. Jim is studying Prolog, Math, physics and Java 4. Rose is studying History 5. Mark is studying History and French 6. Peter is studying Biology 7. Alice is studying Math, Java A. Transform the given data above into Prolog Facts of your own predicates. B. Transform the given relations into Prolog Rules: 1. Classmates study the same course 2. A student is in Science studies Math and Physics 3. A student is in Computer Science is in Science and studies Prolog and Java 4. An active student studies a course other than English C. Transform the given questions/statements into queries, then test them to find out the answer and explain why 1. Is Ahmed a student? 2. Who are the students that are currently studying English? 3. Is Rose an active student? 4. Is Mohammed active student? 5. List all courses Sarah is studying. 6. Show who studies Math and does not study Physics. 7. List all classmates

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!