cs61a_sp08_mt1_03 - ay , the procedure returns #t , and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Question 5 (8 points): For this question (both parts), use only higher order procedures, not recursion, even in helper procedures! (a) Define a procedure is-pig-latin? That takes a sentence as its argument, and determines whether or not it is a pig-latin sentence. IN other words, if every word in the sentence ends with
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ay , the procedure returns #t , and otherwise it returns #f . (b) Define a procedure latin-change that given a sentence as argument, changes all words that end in ay to end in ey ....
View Full Document

This note was uploaded on 08/26/2009 for the course CS 61A taught by Professor Harvey during the Spring '08 term at University of California, Berkeley.

Ask a homework question - tutors are online