school/cs236/tests/lab01/test1.txt

22 lines
453 B
Plaintext
Raw Normal View History

2016-04-06 20:46:32 -07:00
Schemes:
student(Name, ID, Address, Major)
Facts:
Student('North', '51', '10 Main', 'CS').
# |student('Reagan', '52', '11 Maple', 'CS').|
student('Reagan', '52', '11 Maple', 'CS').
student('Clinton', '53', '12 Ashton', 'MATH').
Rules:
major(Name,Major):-student(Name,ID,Address,Major).
Queries:
major('North',Major)?
major(Name,'MATH')?
#| major(Name,'MATH')?
# major(Name,'MATH')? |#
# |major(Name,'MATH')?|