previous | index | next

Exercises 7.29 and 7.30 – Overview

After completion of these exercises you will be able to make these queries:
   (what movies were made in 1952) 
   ((an american in paris) (othello))

   (what movie was made in 1974) 
   ((amarcord) (chinatown))

   (what movies was made in 1991) 
   ((boyz n the hood) (dead again))
This requires the pattern/action pair made by:
        (make-pattern/action  ; new for exercise 7.29 and 7.30
	 '(what (movie movies) (was were) made in _)
	 made-in-year-action)
You will need to modify matches? and substitutions-in-to-match to recognize this pattern, and you will need to write the action procedure made-in-year-action.

Note that although

   (what movie was made in barcelona)
will be recognized, it will cause an error because barcelona is not a number. This will be fixed in exercise 7.37.

previous | index | next