previous | index | next

Exercise 7.36

After completion of this exercise you will be able to make these queries:
   (what movies did forest whitaker appear in between 1980 and 1990)
   (i do not know)

   (what movies did forest whitaker appear in between 1990 and 2000)
   ((the crying game))

   (what movie does orson welles direct between 1940 and 1950)
   ((citizen kane))

   (what movie does orson welles direct between 1950 and 1960)
   ((othello))
This requires the pattern/action pairs made by:
        (make-pattern/action  ; new for exercise 7.36
         '(what (movie movies) (did does) ... appear in between _ and _)
	 appear-in-between-action)

        (make-pattern/action  ; new for exercise 7.36
         '(what (movie movies) (did does) ... direct between _ and _)
         direct-between-action)
You will need to write the action procedures appear-in-between-action and direct-between-action.

previous | index | next