Saint Louis University |
Computer Science 150
|
Dept. of Math & Computer Science |
Topic: Functions, Exceptions
Related Reading: Chapter 5
Due:
9:00am, Tuesday 8 March 2011
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.25 on page 199 of the book.
Exercise 5.29 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)
Write a function with signature convertBase(value,base)
that takes a postive integer value and a base from
(you do not need to do any error checking of the parameters for this exercise)