3.7 Exercise 3.7
Making a joint account is not difficult: All you need to do is add a new layer of password checking (so that the new password only works with the newly-created joint account). This behaves similarly to the password checking we already made, except it returns the unlocked main account if the given joint password is correct.
(define (make-joint account password new-password) (lambda (p m) (if (eq? p new-password) (account password m) (lambda args "Incorrect password"))))