Difference between revisions of "CSC111 Final Exam 2010"
(→Problem #1: Temperatures in the UK) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <onlydft> | |
− | |||
=Final Exam= | =Final Exam= | ||
Line 12: | Line 11: | ||
The '''exam is due on Friday, May 7th, at 4:00 p.m.''' You will need to submit the exam using the '''submit''' command, similarly to the way you have submitted homework assignment this past semester. | The '''exam is due on Friday, May 7th, at 4:00 p.m.''' You will need to submit the exam using the '''submit''' command, similarly to the way you have submitted homework assignment this past semester. | ||
</bluebox> | </bluebox> | ||
+ | |||
=Problem #1: Temperatures in the UK= | =Problem #1: Temperatures in the UK= | ||
Line 27: | Line 27: | ||
* The main address for the data is that of the Met-Office site: http://www.metoffice.gov.uk/climate/uk/stationdata/ | * The main address for the data is that of the Met-Office site: http://www.metoffice.gov.uk/climate/uk/stationdata/ | ||
− | * Note: in case the metoffice.gov.uk were to go down during the exam period, the data has been replicated at http://cs.smith.edu/~ | + | * Note: in case the metoffice.gov.uk were to go down during the exam period, the data has been replicated at http://cs.smith.edu/~dthiebaut/UKTemperatures/, and you can use this Smith-based Url instead. The data files are the same at both places. |
* A file name is associated with each city or town. For example, the city of '''Aberporth''' is associated with '''aberporthdata.txt''', and the record of the weather data for '''Aberporth''' is stored at URL http://www.metoffice.gov.uk/climate/uk/stationdata/aberporthdata.txt | * A file name is associated with each city or town. For example, the city of '''Aberporth''' is associated with '''aberporthdata.txt''', and the record of the weather data for '''Aberporth''' is stored at URL http://www.metoffice.gov.uk/climate/uk/stationdata/aberporthdata.txt | ||
Line 282: | Line 282: | ||
=Problem #2= | =Problem #2= | ||
− | Write a program called final2.py that contains a '''recursive''' function called '''minmax()''' which returns the smallest and largest | + | Write a program called final2.py that contains a '''recursive''' function called '''minmax()''' which returns the smallest and largest elements of a list. |
Example '''main()''' program: | Example '''main()''' program: | ||
Line 325: | Line 325: | ||
<br /> | <br /> | ||
+ | </onlydft> | ||
<br /> | <br /> | ||
<br /> | <br /> | ||
Line 333: | Line 334: | ||
<br /> | <br /> | ||
<br /> | <br /> | ||
− | [[Category:CSC111]] | + | [[Category:CSC111]][[Category:Exams]] |
Latest revision as of 10:50, 2 September 2017