Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
pp:l10 [2021/05/24 20:35] aghiculescu |
pp:l10 [2021/05/25 15:44] (current) roxana_elena.stiuca [Introduction to Prolog programming] |
||
---|---|---|---|
Line 13: | Line 13: | ||
Hint: use =< | Hint: use =< | ||
- | 5. Define a predicate which is satisfied if a student Ids failed to pass AT MOST two different lectures. | + | 5. Define a predicate which is satisfied if a student Ids failed to pass at least two different lectures. |
6. Define a predicate which is satisfied if at least one student graduated the lecture. | 6. Define a predicate which is satisfied if at least one student graduated the lecture. | ||
Line 73: | Line 73: | ||
%studies(Id,Lecture) | %studies(Id,Lecture) | ||
- | grade(9,pp,6). | + | studies(9,aa). |
- | grade(10,pp,4). | + | studies(10,pp). |
- | grade(10,aa,4). | + | studies(11,lfa). |
- | grade(11,lfa,10). | + | |
%grade(Id,Lecture,Grade) | %grade(Id,Lecture,Grade) | ||
+ | grade(10,pp,4). | ||
grade(9,pp,6). | grade(9,pp,6). | ||
grade(10,aa,4). | grade(10,aa,4). |