https://github.com/heyfoz/cpp-voting-ballot-array-functions
The Voting Ballot Array Functions Program (C++) creates 3 arrays to store candidates, votes, and percentages to simulate a random election winner. The arrays are filled after the program reads an input file titled "Candidates.txt". Functions are used to pass the arrays and calculate the results, which are printed to the console & an output file.
https://github.com/heyfoz/cpp-voting-ballot-array-functions
ballot cpp simulation voting
Last synced: over 1 year ago
JSON representation
The Voting Ballot Array Functions Program (C++) creates 3 arrays to store candidates, votes, and percentages to simulate a random election winner. The arrays are filled after the program reads an input file titled "Candidates.txt". Functions are used to pass the arrays and calculate the results, which are printed to the console & an output file.
- Host: GitHub
- URL: https://github.com/heyfoz/cpp-voting-ballot-array-functions
- Owner: heyfoz
- License: mit
- Created: 2022-11-17T19:58:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-17T21:39:55.000Z (over 3 years ago)
- Last Synced: 2025-01-30T05:11:48.193Z (over 1 year ago)
- Topics: ballot, cpp, simulation, voting
- Language: C++
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cpp_voting_ballot_array_functions
The Voting Ballot Array Functions Program (C++) creates 3 arrays to store candidates, votes, and percentages to simulate a random election winner. The arrays are filled after the program reads an input file titled "Candidates.txt". Functions are used to pass the arrays and calculate the results, which are printed to the console & an output file titled "ElectionResults.txt".
Link to .cpp file: Voting Ballot Array Functions C++ Program
Copyright (c) 2022 ffm5113