Professional Documents
Culture Documents
Start
Declare
Declare
Declare
Declare
Declare
Winvote
0
Write ('Good Day user, please enter your constituency')
Read Constituency
For i
1 to 4 Do
Write ('Please enter the name of a candidate')
Read (candidate[i])
Write ('Please enter the number of votes received by the candidate.')
Read Votes[i]
If
votes[i]
Else
Winvote
If
Votes[i]
Winvote
Winvote Then
Winner
Candidate[i]
Winner
Winner
Else
Endif
Endif
EndFor
Write (' For constituency',' ',constituency,' ','the winner is,',' ',(winner),' ','with','
',winvote,' ','votes.')
STOP