The electoral petition of 2021 was aimed at determining the winner of the 2020 election. The rule is that the winner of an election in Ghana must obtain at least 50% +1 of the valid votes cast.
(a) Explain the concept of method in java
(b) Declare a method called Greatest, your method should have five argumentsi. The two names of the presidential candidates with the most votesii. Total number of votes for each of them.iii. Total valid votes cast.
(c) Your method should declare that candidate that had at least 50%+1 of the valid votes cast as winner
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here