Data describing object locations

You have problems, and we're glad to hear them. Explain the problem, what you have tried, and where you got stuck.
Feel free to share a little info on yourself and the course.
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.

Data describing object locations

Postby n3071956 » Thu Oct 23, 2014 9:44 am

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).
n3071956
 
Posts: 1
Joined: Thu Oct 23, 2014 9:41 am

Return to Homework

Who is online

Users browsing this forum: No registered users and 1 guest