Question: Problem definition: Record the votes for an election on a referendum. Input: . Ask the user for their voter id number or enter DONE to

Problem definition: Record the votes for an election on a referendum. Input: . Ask the user for their voter id number or enter "DONE" to quit o Display an error if the voter id is not numeric Tell the user they already voted if the voter id already exists Otherwise ask the user if they are voting for yes or no. Valid entries are y or Y for yes, n or N for no. O Be sure to record each vote, in case a challenge or recount is issued. Output: . The % who voted yes and the % who voted no A message declaring the winner. If a tie, display a message that the election will have to be held again. Rubric: 10 points: gathering the votes correctly, with the appropriate error checking. . 10 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
