Difference between revisions of "CSC111 Final Exam 2015"

From dftwiki3
Jump to: navigation, search
Line 231: Line 231:
 
* Test your program well.  In particular, your program should be able not to crash if the file given to it contains only 1 entry, or if the file is empty.
 
* Test your program well.  In particular, your program should be able not to crash if the file given to it contains only 1 entry, or if the file is empty.
 
* You can assume that all entries will always contain 4 fields (date, location, screen-name, and text).
 
* You can assume that all entries will always contain 4 fields (date, location, screen-name, and text).
* When looking for the number of unique locations found in the tweets, "Northampton, MA" and "Northampton, Massachusetts" count as 2 different locations.  Basically if the lowercase string versions of two different locations are not equal, the locations are distinct.  "Northampton MA" and "Northampton, MA" are distinct (because of the comma).  "northampton" and "Northampton" are the same.
+
* When looking for the number of unique locations found in the tweets, "Northampton, MA" and "Northampton, Massachusetts" count as 2 different locations.  Basically if the lowercase string versions of two different locations are not equal, the locations are distinct.  "Northampton MA" and "Northampton, MA" are distinct (because of the comma).  "northampton" and "Northampton" are the same. "Northampton " and "Northampton" are the same (because the stripped strings are the same)
 
<br />
 
<br />
 
==Submission==
 
==Submission==

Revision as of 07:52, 1 May 2015


...