{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Write a function weakestposition that consumes the

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: city, we consider a league where points are only awarded according to the following chart. statistic fantasy points S 1 D 2 T 3 HR 4 SB 4 One way to decide which players to draft is to use expert's point projections. We will use data originating from www.cbssportsline.com formatted as follows. A provided sample file is named baseballprojections.txt. • • • The first line is a tab ­separated list of 18 column headings (exactly the same as the first line in the sample file). A tab is the single character \t. Each subsequent line is a tab ­separated list of values corresponding to the column headings. The value of Position is always one of C, 1B, 2B, 3B, SS, LF, CF, RF, DH. Each line gives the projected statistics for a real player. For example, the sample file predicts that Matt Kemp will earn 105 S, 31 D, 5 T, 35 HR, and 36 SB. Therefore we can predict that Matt Kemp will earn 105*1 + 31*2 + 5*3 + 35*4 + 36*4...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online