Question: Write a C program that is used to elect candidates from a given list and count vote for the following candidates: 1 . Jhon Doe
Write a C program that is used to elect candidates from a given list and count vote for the following
candidates:
Jhon Doe
Ima Knight
Hillary Clark
William Smith
The candidate names are predefined in your code which may be done in one of the following ways:
Use strings to define the candidates. For example: #define candidateJhon Doe
Use arrays. For example: you may use last name of the candidates to take user input for casting
vote.
Your code should have the following functions:
castVote used to display the candidate list and cast vote for one of the candidates. Take user
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
