Saint Louis University |
Computer Science 150
|
Dept. of Math & Computer Science |
Topic: Functions, Exceptions
Related Reading: Chapter 5
Due:
1:10pm, Friday, 29 February 2013
Please make sure you adhere to the policies on academic integrity.
Write a function acronym(phrase) that accepts a string as a parameter, and returns a new string that includes the first letter of every word in the original phrase, all in uppercase. For example, a call to acronym('Laughing out loud') should return the string 'LOL'.
Exercise 5.23 on page 199 of the book.
Exercise 5.34 on page 200 of the book (that is, an error-checking version of Exercise 5.23 of page 199)
You do not need to reimplement the main logic of the function. What we are interested in is seeing how you would perform the appropriate parameter checking.
Exercise 5.33 on page 199 of the book.
Exercise 5.25 on page 199 of the book.