Computer Science, asked by shaikhzeba2006, 7 months ago

write a program election that computes the tally in a write-in election, and announces the winner. Since the votes are write-in, there is no pre-determine set of candidates. Whoever appears the most in the votes is the winner. The user enters the individual votes. one vote per line, and ends entering with typing - 1 or an empty line. To complete the tally, the program uses two arrays, A String[] variable(names), and an int[] variables (count). Upon receiving a single vote, the program checks if the name on the vote appears in names, and if it does, the program adds 1 to the value of the elements in count. if the name doesn't appear in names, the program extends both arrays by one elements, stores the name in names at the last positions and store 1 in count at the last position. In this manner, the two arrays will have the same lengths. The initial length is 0 for both arrays.​

Answers

Answered by saikiranpedada12
0

Answer:

shaheed bhagat singh ki photo lagai dil khus ho gya hai hi nahi hi WO bhi nahi hi WO bhi nahi hi WO bhi nahi hi WO bhi nahi hi WO bhi nahi hi WO bhi nahi hi WO bhi nahi hi WO bhi nahi hi WO bhinahihi WO bhi nahi hi WO bhi nahi hi WO bhi.jshdhwudn 6hdhd you are not.hhfr you are not the intended

Explanation:

add me to brainlist bro please

Similar questions