Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Python | Schedule | Submit

Saint Louis University

Computer Science 1300
Introduction to Object-Oriented Programming

Michael Goldwasser

Spring 2017

Dept. of Math & Computer Science

Homework Assignment 06

Error Checking and Exceptions

Contents:


Overview

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.


Problems to be Submitted (18 points)

  1. (6 points)

    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.

  2. (6 points)

    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.

  3. (6 points)

    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.


Extra Credit

  1. (2 points)

    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.)


Michael Goldwasser
CSCI 1300, Spring 2017
Last modified: Saturday, 18 February 2017
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Python | Schedule | Submit