Question: write in C language Vote System ( 2 persons) requirements Input vote number of people and vote result, sort the result when report and output
Vote System ( 2 persons) requirements Input vote number of people and vote result, sort the result when report and output the result. 2) system design This system could have two parts of data input and report. detailed design Use structure: Struct { Char code; Int score: Candidates[N]; //candidates array #define N 3: Use two dimensional array, the row direction corresponds to a vote, the column direction corresponds to each candidate scores Candidate[M][N]; (1) input part Char tmp[3); //temporary variable of votes Input vote number of people n; For(i-0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
