Question
e-voting program code in c++ or java 1. The register voter methods should take as parameters a name, and assign a voter ID from a
e-voting program code in c++ or java
1. The register voter methods should take as parameters a name, and assign a voter ID from a list of
valid voter IDs.
2. The verify voter method takes a voter ID as input and verifies if the voter with the voter ID is registered
and under what name? However it should not allow the voter to vote if they have voted before.
3. The vote method should allow a voter to cast a single vote for a single candidate.
4. The tally results, should return the votes each of the candidates received to be displayed by the client.
5. Announce winner should just return the election winner's name.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started