Difference between revisions of "CSC111 Final Exam 2015"

From dftwiki3
Jump to: navigation, search
Line 126: Line 126:
 
:* A tweet is always preceded by a line of 4 dashes.
 
:* A tweet is always preceded by a line of 4 dashes.
 
:* The second line is the date the tweet was created.  You can discard the "+0000" field, which refers to a time zone.
 
:* The second line is the date the tweet was created.  You can discard the "+0000" field, which refers to a time zone.
:* The third line contains the name of the sender or repeater.  Most of the tweets come from  "@smithcollege".
+
:* The third line contains the name of the sender or repeater.  Most of the tweets come from  "@smithcollege" or "@presmccartney."
 
:* The fourth line contains the location associated with the tweet.
 
:* The fourth line contains the location associated with the tweet.
  
 
<br />
 
<br />
 
==Sample File==
 
==Sample File==
* Click on this URL: http://cs.smith.edu/dftwiki/media/twitterFeed.txt and save the text that will display in your browser to a text file that you will call '''twitterFeed.txt''', in a directory of your choice on your computer.  Do not edit the information in the file, and do not remove anything from it, as your program will be tested with another file, similar in format, but with different content.
+
* Click on this URL: [http://cs.smith.edu/dftwiki/media/twitterFeed.tx http://cs.smith.edu/dftwiki/media/twitterFeed.txt] and save the text that will display in your browser to a text file that you will call '''twitterFeed.txt''', in a directory of your choice on your computer.  Do not edit the information in the file, and do not remove anything from it, as your program needs to be able to treat it "as is," and will be tested with another file, similar in format, but with different contents.
 
<br />
 
<br />
 
==Example Interaction with the User==
 
==Example Interaction with the User==
Line 154: Line 154:
 
<br />
 
<br />
 
* Your program must match this output as closely as possible, including the "---Output---" line.  Remember that your program will be tested with a collection of tweets that will be different, and probably gathered in a different time period, so your program must locate the oldest and newest tweets, and not simply output the dates shown above!
 
* Your program must match this output as closely as possible, including the "---Output---" line.  Remember that your program will be tested with a collection of tweets that will be different, and probably gathered in a different time period, so your program must locate the oldest and newest tweets, and not simply output the dates shown above!
 
+
<br />
 +
==Testing==
 +
<br />
 +
* Test your program well.  In particular, your program should be able to not 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).
 
<br />
 
<br />
 
==Submission==
 
==Submission==

Revision as of 07:54, 23 April 2015


...