Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting: Add line breaks between tasks #70

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions election-results/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down