Discussion Board
There are no previous messagesGo to the following message
Current Forum: Homework 3 Forum
Date: Fri Sep 28 2001 12:43 am
Author: Shi, Ying <shy@cmu.edu>
Subject: count() & approximation()

in the hw write-up it says
"the count fcn simply returns the # of times a word appears in the file"

it does not say what to return for the exceptional condition that the word does not exist in the file at all.

while seems approximation acturally is supposed to handle the exceptional condition

therefore, we assume the parameter passed to count() is always a word existing in the file. RIGHT ??? and we're not supposed to handle the above mentioned exception

Thanks!!
Post response

There are no previous messagesGo to the following message
Current Thread Detail:
count() & approximation()      Shi, Ying      Fri Sep 28 2001 12:43 am       
Re: count() & approximation()      Lee, Peter      Fri Sep 28 2001 9:49 am       

Back to previous screen