benrout / plurality

A command-line program that simulates an election using the "plurality" voting system (also known as "first-past-the-post").

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plurality

A command-line program that simulates an election using the "plurality" voting system (also known as "first-past-the-post").

Example usage:

$ ./plurality Alice Bob Charlie
Number of voters: 4
Vote: Alice
Vote: Bob
Vote: Charlie
Vote: Alice
Alice

About

A command-line program that simulates an election using the "plurality" voting system (also known as "first-past-the-post").

License:MIT License


Languages

Language:C 100.0%