Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voting System

Compiling, Running, and Testing the Voting System

You can compile the voting system with make in the src directory of the project, i.e., in repo-Team12/Project1/src. This creates the the voting system executable named voting-system, which can be found in the build/bin directory, assuming that you are in the src directory of the project. You can execute it by typing the following:

./build/bin/voting-system

When the voting system is run, it will prompt you for a ballot file. The path to the ballot file is relative to where the voting system is run, e.g., if the ballot file ballot.csv is in repo-Team12/Project1, you would type ../ballot.csv. The audit file and media report will be created in the directory where the voting system is run, i.e., using the above command, in repo-Team12/Project1/src. The names of these files will begin with VotingSystem_AuditFile_ and VotingSystem_MediaReport_, respectively.

You can run all of the tests by typing the following:

./build/bin/unittest

The audit files and media reports generated from running the tests will be created in the testing directory of the project. Most of the tests are automated and depend on the relative path to the testing directory. The tests will likely result in failure if the src and testing directories are not in the same directory.

Viewing the Doxygen Documentation

You can view the Doxygen documentation by typing the following at the top level of the project directory, i.e., in repo-Team12/Project1:

xdg-open ./documentation/html/index.html

Cleaning the Project

Finally, you can clean up a compiled build with make clean.

About

This majority system a minor variation of single-member district plurality voting that was developed to ensure that the winning candidate enjoys the support of the majority of the voters in the district. It was also thought to be an improvement over the two-round system because it does not require a separate election--it provides an "instant" runo…

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages