Sunday
April 26, 2015

Homework Help: Java

Posted by Cheunology on Monday, April 29, 2013 at 9:49pm.

in Java how do you create a method that will prompt the user to type in 10 votes to determine a winner in a two candidate election?
Ex: Vote 10 times - Smith vs. Watson

User enters:
Watson
watson
wATson
Smith
SMITH
smiTh
watson
smith
watson
waTSoN
And then this should report that Watson wins 6 votes to 4 votes.
the names dont have to be Watson and Smith, any two names will do.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Members