Question: java programming Q 17. (7 points) Write a program that allows the user to enter the last names of five candidates in a local election
Q 17. (7 points) Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate's name, the votes received by that candidate, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election. In addition to main method, your program must have at least two methods; a method that returns the winner and a method that returns the sum of votes. Format the output using the format method. Name your class: Candidates. A sample output is
Step by Step Solution
There are 3 Steps involved in it
Based on the details provided in the question heres how you can write a Java program for this election simulation Stepbystep Explanation 1 Main Method The main method will take input from the user for ... View full answer
Get step-by-step solutions from verified subject matter experts
