Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA ONLY 2. Review- (loops, counters, strings, If statements, arrays) Save As Assign12 A vote is held after 26 singers represented by the letters AZ
JAVA ONLY
2. Review- (loops, counters, strings, If statements, arrays) Save As Assign12 A vote is held after 26 singers represented by the letters AZ participated in round of a singing competition. Your job is to count the votes and determine the outcome. A line of input will be a sequence of characters (any amount), each of which will be A-Z representing the votes for a particular singer. Output the winner - The singer with the most votes and how many votes they had. - Tie, if there are an equal number of votes between two or more singers and the votes they had. Example run: Enter the votes: ABBABBCCZ The Winner is singer B with 4 votes Enter the votes: ABBABACCC Singer A,B,C tied with 3 votes each Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started