Difference between revisions of "CSC111 Final Exam 2010"

From dftwiki3
Jump to: navigation, search
Line 223: Line 223:
 
;Question 1
 
;Question 1
 
: For which town (or towns) do we have the oldest recorded information?  Although we can get the answer by searching the table above, make your program figure out the answer.  If two or more towns have records for the same month and year, and these are the oldest on record, then output the name of each town.
 
: For which town (or towns) do we have the oldest recorded information?  Although we can get the answer by searching the table above, make your program figure out the answer.  If two or more towns have records for the same month and year, and these are the oldest on record, then output the name of each town.
 +
 +
: The output should be of the form: "the oldest observation was recorded in ''townname'' in ''month'' of ''year''"
  
 
;Question 2
 
;Question 2
 
: For which town or towns do we have the lowest temperature recorded?  Also output the year of the measurement.
 
: For which town or towns do we have the lowest temperature recorded?  Also output the year of the measurement.
 +
 +
: The output should be of the form: ''the coldest temperature was recorded in ''townname'' in ''month'' of ''year''"
  
 
;Question 3
 
;Question 3
 
: For which town or towns do we have the highest temperature recorded? Also output the year of the observation.
 
: For which town or towns do we have the highest temperature recorded? Also output the year of the observation.
 +
 +
: Same output format as for Question 2
  
 
;Question 4
 
;Question 4
 
: For which town do we have the biggest '''yearly''' difference in temperature?  In other words, where did we record during the same year the largest difference between coldest and hottest temperature?
 
: For which town do we have the biggest '''yearly''' difference in temperature?  In other words, where did we record during the same year the largest difference between coldest and hottest temperature?
 +
 +
: Same output format type as for Question 2.
  
 
;Question 5
 
;Question 5
Line 239: Line 247:
 
: Was the average temperature in the U.K. colder during the first half of the 20th century (1900 to 1999), or hotter?
 
: Was the average temperature in the U.K. colder during the first half of the 20th century (1900 to 1999), or hotter?
  
 +
: Make sure your program outputs all the data required to support your answer, all in a humanly readable format.
 
</onlydft>
 
</onlydft>
 
<br />
 
<br />

Revision as of 16:52, 28 April 2010


...