Prolog program for prerequisite and registration of courses
% Implement the predicate can_register(Student, Course), % where can_register(S,C) is true iff S is a student who has % passed or waived all of the prerequisites of course C. % For example, the prereqs of csc529 are csc330 and csc350. % Suppose nancy passed csc330 and csc350: she can register for 529. % Suppose dilbert […]