Saint Louis University |
Computer Science 1300
|
Dept. of Math & Computer Science |
Topic: Error Checking and Exceptions
Related Reading: Chapter 5.5
Due:
11:00am, Friday, 3 March 2017
Please make sure you adhere to the policies on academic integrity.
Exercise 5.33 on page 199 of the book. Note well that you do not need to error-check the parameters sent to the function, only to robustly handle any input the user may enter.
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.35 on page 200 of the book (that is, an error-checking version of Exercise 5.26 of page 199)
You do not need to (re)implement the main logic of the conversion. We are only interested in seeing how well you preform the appropriate parameter checking.
Redo Exercise 5.33, but this time also ensure that the two parameters are legitimate integers such that small < large. (For this, we are only interested in the verification of the parameters; you do not need to give the rest of the function logic already provided above.)