diff --git a/election-results/README.md b/election-results/README.md index 7276b2a..3d26bf8 100644 --- a/election-results/README.md +++ b/election-results/README.md @@ -8,24 +8,14 @@ The fields in the file will be separated by commas but each row will vary in len A result will consist of: -1. A constituency -2. A repeating set of pairs with the party code and the votes cast +A. A constituency +B. A repeating set of pairs with the party code and the votes cast So for example: "Cardiff West, 11014, C, 17803, L, 4923, UKIP, 2069, LD", "Islington South & Finsbury, 22547, L, 9389, C, 4829, LD, 3375, UKIP, 3371, G, 309, Ind" - -## Tasks: -We want to transform this into a cleaned-up result that shows: - -a) the constituency name -b) the result for each party -c) find the winner for each constituency -d) translates the party code into a full name -e) shows the share of the vote as a percentage of all the votes cast - ### Codes * C - Conservative Party @@ -37,6 +27,21 @@ e) shows the share of the vote as a percentage of all the votes cast * SNP - SNP +## Tasks: +We want to transform this into a cleaned-up result that shows: + +1. the constituency name + +2. the result for each party + +3. find the winner for each constituency + +4. translates the party code into a full name + +5. shows the share of the vote as a percentage of all the votes cast + + + ## Extension tasks: ### Validation