Homework 3:
RAW MATERIAL: Interpreter code.
Question 1. Consider the macroshaft database given along with the interpreter code. Show how you would create a similar database using SQL. Your answer must include the SQL commands that accomplish the creation and filling of the database.
Question 2. Consider the query
(and (can-do-job ?x (computer programmer trainee))
(job ?person ?x))
Write the same query in SQL.
Question 3. Do exercise 4.75 from the SICP book. (Warning: This is not a trivial exercise. Make sure you allocate enough time to do this)
DELIVERABLES:
a) a text file (plain text, not Word) with the non-programming answers
b) a modified, but running, version of the logic programming interpreter
all zipped together in one big happy zip file.
DUE DATE: 2/7