Class 5 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 signature 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.