;;-------------------------------------------------
;; examples of running
;;-------------------------------------------------
CLIPS> (clear)
CLIPS> (load "CourseList.clp")
Defining deftemplate: course-history
Defining deftemplate: course-properties
Defining deftemplate: courses-for-graduate
Defining defrule: initialize +j+j
Defining defrule: prompt =j
Defining deffunction: is-passed
Defining deffunction: is-prerequisite-clear
Defining defrule: no-name +j+j
Defining defrule: no-id =j+j
Defining defrule: no-semester +j
Defining defrule: print-info =j+j+j
Defining defrule: print-courses +j
Defining defrule: end-of-print-courses +j
Defining defrule: passed-course +j+j
Defining defrule: collect-passed +j+j
Defining defrule: ready-to-select =j+j+j+j+j
Defining defrule: select-required +j+j+j+j+j+j
Defining defrule: unselect-the-passed-course =j=j+j
Defining defrule: select-a-course =j=j+j+j+j+j+j
Defining defrule: finalize1 =j+j+j+j+j+j
Defining defrule: finalize2 =j=j+j+j+j+j
TRUE
CLIPS> (reset)
CLIPS> (run)
Enter your name
James
Enter your ID
10020
Enter the semester (Fall/Spring)
Fall
You are not on the list
CLIPS> (reset)
CLIPS> (run)
Enter your name
Jake
Enter your ID
12333
Enter the semester (Fall/Spring)
Fall
Your input for the ID is not correct
CLIPS> (reset)
CLIPS> (run)
Enter your name
Jake
Enter your ID
11222
Enter the semester (Fall/Spring)
Fall
---------------
Current report 
---------------
Name: Jake
ID: 11222
Field: CIS
The list of courses which you have taken:
cis100 : A
cis111 : B
cis112 : A
cis200 : A
cis205 : B
cis233 : B
---------------
 Next schedule 
---------------
cis113
cis120
cis300
cis301
cis399
cis405
CLIPS> (reset)
CLIPS> (run)
Enter your name
Jake
Enter your ID
11222
Enter the semester (Fall/Spring)
Spring
---------------
Current report 
---------------
Name: Jake
ID: 11222
Field: CIS
The list of courses which you have taken:
cis100 : A
cis111 : B
cis112 : A
cis200 : A
cis205 : B
cis233 : B
---------------
 Next schedule 
---------------
cis211
cis300
cis301
cis333
cis405
cis500
CLIPS> (reset)
CLIPS> (run)
Enter your name
Pooh
Enter your ID
12333
Enter the semester (Fall/Spring)
Fall
---------------
Current report 
---------------
Name: Pooh
ID: 12333
Field: CIS
The list of courses which you have taken:
cis100 : B
cis111 : D
cis113 : D
cis120 : A
cis200 : F
cis205 : B
---------------
 Next schedule 
---------------
cis111
cis200
cis233
cis250
cis301
cis405

