Professional Documents
Culture Documents
Pseudocode
Pseudocode
// This program will accept the name, party and votes of a total of four candidates in a constituency that
he/she represents.
// The program will then determine the winning candidate by the total votes received, and display
the //information about that winning candidate, regarding the Name of the candidate that won, the
party //and votes received by the candidate.
Variables:
START
Winning_Candidate USERINPUT
c
Winner_Party USERINPUT
Winner_Votes USERINPUT
FOR NumberOfCandidate = 0 to 2
Candidate_Votes USERINPUT
Winner_Candidate USERINPUT
Winner_Party USERINPUT
Winner_Votes Candi_Votes
ENDIF
ENDFOR
STOP