Discussion Board
There are no previous messagesThere are no next messages
Current Forum: Homework 1 Forum
Date: Thu Sep 6 2001 11:09 am
Author: Venugopal, Ashish R. <arv@andrew.cmu.edu>
Subject: Handling error cases

Q:Do we need to handle the case where input doesn't make sense (e.g. there is a plus node with no children)? A:Only handle the cases that the DoIt.java driver file brings up and test. Normally you would check for things like this, but we are not testing that issue here. Q:Is it ok to get "infinity" as a result of a divide by zero (that is, do we need to throw an exception or something)? A: Try it out, you will see that java handles this for you by making Infinity part of the int datatype. So, you don't have to worry.
Post response

There are no previous messagesThere are no next messages
Current Thread Detail:
Handling error cases      Venugopal, Ashish R.      Thu Sep 6 2001 11:09 am       

Back to previous screen