Saint Louis University |
Computer Science 150
|
Dept. of Math & Computer Science |
Topic: Functions
Related Reading: Chapter 5
Due:
9:00am, Friday 19 February 2010
Please make sure you adhere to the policies on academic integrity.
Exercise 5.9 on page 196 of the book.
Exercise 5.23 on page 199 of the book.
Exercise 5.24 on page 199 of the book.
Exercise 5.29 on page 199 of the book.
Do Exercise 5.14 on page 197 of the book, but write it as a function convertToBase(value, base) taking the original value (in decimal), and the desired base, and returning a string that represents the value converted to the given base. For example convertToBase(84, 5) should return string '314'.