Prolog Problems

Job ID: 33501635

Budget: $2 – $8 USD

The credit value of the courses taken by the students and their grades in the 100 system are recorded.
 Students study in various departments.
 It is necessary to have a certain average in order to attend each elective course (average is obtained from course credit and grade information).
 A maximum of 5 students can register for an elective course.
 A student can take a maximum of 2 elective courses.
 If a student's previous elective course grade is not below 50 (passing threshold), he/she cannot take it again.
Under these conditions;
1. Can a student take an elective course?,
(predicate ElectiveCourseTake(number,coursecode))
In order for the 2nd elective course to be opened, there must be at least 3 students.
(predicate ElectiveCourseAc(coursecode))
Develop a Prolog application that will perform inferences with SWIProlog.
Facts to be created in the database
Student(number, name, chapter)
Elective Course (course code, course, credit)
DepartmentCourse(coursecode,course,credit)
StudentCourse(number, course code, grade)
If the elective course belongs to a department and each student can only take one elective course from her department
Related categories: Prolog