Difference between revisions of "CSC111 Final Exam 2015"

From dftwiki3
Jump to: navigation, search
Line 30: Line 30:
 
==Example==
 
==Example==
 
<br />
 
<br />
* Here is an example of the interaction to be expected between the user and the program:
+
* Here is an example of the interaction to be expected between the user and the program, where the user input is underlined:
 
<br />
 
<br />
  
Line 53: Line 53:
 
   
 
   
 
<br />
 
<br />
* Notice how the user enters all the files of interest on one line
+
* Notice how the user enters all the files of interest on one line.
 
* The program outputs the coldest temperature (-8.6, found in the tmin column of the files), followed by groups of 3 fields, where the first one is the city name (not the file name), the month (expressed as 3 letters), and the year.   
 
* The program outputs the coldest temperature (-8.6, found in the tmin column of the files), followed by groups of 3 fields, where the first one is the city name (not the file name), the month (expressed as 3 letters), and the year.   
 
* All fields are printed on one line only, and separated by spaces.
 
* All fields are printed on one line only, and separated by spaces.
 
* If different cities contain the same lowest temperature, they are listed in alphabetical order.  For example, Armagh is listed before Braemar in the result line, above.
 
* If different cities contain the same lowest temperature, they are listed in alphabetical order.  For example, Armagh is listed before Braemar in the result line, above.
 +
* Use the same prompt for your program ("File names?"), to make it easier to recognize the true output from the prompt.
 
<br />
 
<br />
 
==Submission==
 
==Submission==

Revision as of 09:39, 30 April 2015


...