Monday
April 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 - Is there a method in Java in which to see if an integer value contains ...
Java - create a java program that accepts students names, and test scores from a...
JAVA PROGRAMMING - "POWERS" Compute the power of a number given the base and ...
Java - What kind of Math do I need to be proficient in in order to be prepared ...
Computer Language Java - What is the concept of multi-threading in java and how ...
java programming - write a java program using arrays function for hotel bill ...
JAVA - simple java program to retrive data from oracle database between specific...
Computer Science-Java - Hi, I have to write a method that returns my first name...
Java - I am trying to write an algorithm for my JAVA class and am having some ...
computer - this isnt really a school question but i have a question about the ...

Search
Members