Question: Write a program in c that should simulate election process. Assume there are three candidates A , B and C . When program will start,

Write a program in c that should simulate election process. Assume
there are three candidates A,B and C. When program will start,
it will ask for total number of voters from user. Assume each
voter will be a child process that will vote for any one of the
candidates. Probability for voting any candidate is equal i.e is
33.33%. At the end parent process will show how many votes
each candidate got. Also show winner. (For communication use
PIPE).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!