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)...


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 arguments
i. The two names of the presidential candidates with the most votes
ii. 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



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here