Lecture 6 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

A person consists of a name, age, address and telephone number. An address consists of a street, city, state, and zip code. Write the data definitions for person and address. Then write a function that satisfies the following contract and purpose:

;; mass-senior?: person -> boolean
;; consumes a person, and produces true if the person is a senior
;; citizen (age >= 65) living in Massachusetts, or false otherwise.