I need help with the following question below and im new too this...
Data describing object locations is held in a series of lists of the form…
(object-id category super-category location)
eg:
(defparameter *obj-data*
‘((apple#3 apple fruit kitchen)
(mango#5 mango fruit kitchen)
(tom cat agent hallway)
(jerry mouse agent bedroom)
-etc-
))
Write a function which takes three arguments (i) a super-category (ii) a location name (iii) a data
set and returns a nil/non-nil value (indicating false/true) indicating whether an instance of the
super-category can be found in the named location (NB: your solution will be better if the non-nil
values it returns are useful).
Data describing object locations
Forum rules
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.