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
A command-line program that simulates an election using the "plurality" voting system (also known as "first-past-the-post").
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
A command-line program that simulates an election using the "plurality" voting system (also known as "first-past-the-post").
MIT License