Skip to content

the-little-tailor/Runoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

A program that runs a runoff election, as per the below.

USAGE:

Call the ./runoff command and fill in the names of the candaidates.
Choose the nuimber of voters.
Each voter must fill in their preferences.
The program would go over the votes and display the name of the winner.

Your program should behave per the example below:

./runoff Alice Bob Charlie
Number of voters: 5
Rank 1: Alice
Rank 2: Charlie
Rank 3: Bob

Rank 1: Alice
Rank 2: Charlie
Rank 3: Bob

Rank 1: Bob
Rank 2: Charlie
Rank 3: Alice

Rank 1: Bob
Rank 2: Charlie
Rank 3: Alice

Rank 1: Charlie
Rank 2: Alice
Rank 3: Bob

Alice


Further details at the below link:

https://cs50.harvard.edu/x/2020/psets/3/runoff/

About

A program that runs a runoff election

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages