Question: write in C language program Struct Vote System ( 2 persons) 1) requirements Input vote number of people and vote result, sort the result when
Struct Vote System ( 2 persons) 1) requirements Input vote number of people and vote result, sort the result when report and output the result. 2system design This system could have two parts of data input and report. detailed design Use structure: { Char code; Int score; Candidates[N]; //candidates array #define N3; 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
