Question: In the CLIPS program below. How can I get the message Welcome to the advising system. to always fire first without using salience. I control
In the CLIPS program below. How can I get the message "Welcome to the advising system." to always fire first without using salience. I control fact must be used instead.
; Facts (deffacts prerequisites (after CSE1000 take CSE2000) (after CSE1001 take CSE2001) (after MATH1000 take MATH2000) (after MATH1001 take MATH2001) (after CEE1000 take CEE2000)) Rules (defrule welcome (declare (salience 10000)) (printout t crlf) (printout t crlf) (printout t "Welcome to the advising system." crlf) (printout t crlf)) (defrule rule2 (after ?coursel take ?course2) (student ?name $? ?coursel $) (printout t "Since " ?name" has taken " ?course! ", 1 suggest taking " ?course2-crlf) (printout t crlf)) ; Facts (deffacts prerequisites (after CSE1000 take CSE2000) (after CSE1001 take CSE2001) (after MATH1000 take MATH2000) (after MATH1001 take MATH2001) (after CEE1000 take CEE2000)) Rules (defrule welcome (declare (salience 10000)) (printout t crlf) (printout t crlf) (printout t "Welcome to the advising system." crlf) (printout t crlf)) (defrule rule2 (after ?coursel take ?course2) (student ?name $? ?coursel $) (printout t "Since " ?name" has taken " ?course! ", 1 suggest taking " ?course2-crlf) (printout t crlf))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
