Each subsequent line is a commaseparated list of

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: = 466 fantasy points. Matt Kemp plays the position CF. The value of a position is the average fantasy points taken over all players at that position. Write a function weakest_position that consumes the name of a file formatted as described above and produces a string which is the position with the smallest value. For example, 'C' is produced if the sample file is used. If several positions have the same value, then produce any one of these positions. Assume that there is at least one player at each position. 3 CS 116 Winter 2012 Note the unusual due date and time! Assignment 10 Note the unusual due date and time! Due at 11:59pm on Monday, April 2 3. If 10,000 people voted differently in the last Canadian federal election, is it possible that the result would have been different? What about 50,000 people or 100,000 people? Canadians can access data about federal elections at http://www.elections.ca/. We will use files downloaded from the Elections Canada website formatted as follows. A provided sample file for the 2011 election is named elections.csv. (*See note below.) • • • • • • The first line is a comma ­separated list of 7 column headings which will always e...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online