Define a function (BLORG-SPOKEN-NAME COLOR-OF-SPEAKER NAME-ON-TRUNK) which, given the color of the speaking Blorgian and the name inscribed on the trunk of the Blorgian being addressed, returns the name to be spoken.
For example:
| Color of Speaking Blorgian | Name on Trunk of Blorgian Being Addressed | Name to be Spoken |
|---|---|---|
| PURPLE | ZACH | ZACH-OOK-OOK |
| GREEN | ZACH | BLIP-ZACH |
| GREEN | ZAQS | BLIP-ZAQS-ICHOR |
| GREEN | QUUX | BLOP-QUUX |
| GREEN | QUIS | BLOP-QUIS-ICHOR |
| GREEN | JIMMY | JIMMY |
| PURPLE | JIMMY | JIMMY-OOK-OOK |
| expression | result |
|---|---|
| (or #f #f 'aye 'bee) | |
| (and #t #t 'aye 'bee) | |
| (sentence 1 2) | |
| '(sentence 1 2) | |
| (word 12 13) | |
| (first 98765) | |
| (first '(98 76 5)) | |
| (butfirst '(98 76 5)) | |
| (quote (and 1 2)) | |
| (not 'false) |
(define (utensil cuisine)
(cond ((equal? cuisine 'chinese) 'chopsticks)
((equal? cuisine 'ethiopian) 'fingers)
(else 'fork)))