Sarah and Jane are running for Student Council President. Write a pseudocode algorithm that will collect ‘S’ or ‘J’ from a voting pool of 51 students. Tally the votes for each candidate and print the winners Name along with the total number of votes received.

s=0

j=0
for i=1..51
read vote
s++ if vote == "S"
j++ if vote == "J"
next i
print (s>j) ? "Sarah "+s : "Jane "+j