Sunday
December 21, 2014

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

java - Write a java application that finds the smallest of several integers. ...
6th grademath - this is a word problem:the country of hoffnemath is holding its ...
Algebra - In an election between two candidates, 530 votes were cast. If the ...
abc - Alice, Bob, Candice and David run for school president. There are 201 ...
maths - In a recent election for class president, Monika received 7 of the 10 ...
Math - In a special local election, one candidate received 288 votes less than ...
Math - Using the Borda Count Method, find the winner of the election A has 3106 ...
Math - Using the Borda Count Method, find the winner of the election A has 3106 ...
programming - Write a program which allows user to enter 10 student names and ...
civics - 1)What are the current flaws in the Electoral College system? 2) What ...

Search
Members