The uses of ``and''
Next: The uses of ``if''
Up: English versus Prolog (PP)
Previous: English versus Prolog (PP)
Back: to main list of student notes
Consider this knowledge base, which expresses some facts
about various under- and post-graduates.
Write, in Prolog, the sentences below. Explain the different meanings of
``and'' in each.
- Dave and Jason are third-years.
- Dave and Jason are friends.
- The JCR Warden's duties are mending the pinball machine and the
video-games and selling punt cards.
- First-years, second-years, and third-years are undergraduates and
members of the JCR.
Next: The uses of ``if''
Up: English versus Prolog (PP)
Previous: English versus Prolog (PP)
Back: to main list of student notes
Jocelyn Paine
Tue Jun 4 17:40:31 BST 1996