Is it important which candidate is beaten?
I don't understand the rules.
You said:
1 is the winner because he beats 0 twice and 2 twice.
Is it important who is beaten?
Type: Posts; User: Norm
Is it important which candidate is beaten?
I don't understand the rules.
You said:
1 is the winner because he beats 0 twice and 2 twice.
Is it important who is beaten?
So the count of the number of candidates that are beaten is not important?
The fact that candidate 1 has beaten 7 other candidates is not useful.
1 2 3 4 5 6 7 8
Then is this correct:
7 beats 1 other cand.
6 beats 2 other cand.
5 beats 3 other cand.
4 beats 4 other cand.
3 beats 5 other cand.
2 beats 6 other cand.
1 beats 7 other...
Sorry, I asked two questions again. I'll have to remember to only ask one at a time.
1 2 3 4 5 6 7 8
With the above voting, would 7 have beaten 1 other cand.?
Is the placement important? Or is the number of other cand.s that a cand. beats important?
1 2 3 4 5 6 7 8
With the above voting, would 7 have beaten 1 other cand.?
The candidate the beats the most is the winner. So the position in a row of the array determines the number of others that a cand. beats. In a row with 3 columns, the first cand. beats 2, the second...
Have you worked out the algorithm currently being used?
Can you post pseudo code to describe what it is doing?
That doesn't make sense to me.
Can you explain?
How many winners can there be...
You seem to miss questions when I ask more than one at a time, so I'll ask them one at a time: From post#14
Have you defined the contents of the data file?
Can you define what goes on each row...
It looks like the last 4 "elections" are the ones to test with.
Have you worked out the algorithm currently being used?
Can you post pseudo code to describe what it is doing?
Have you defined...
What about the other questions and issues in my last post?
Did you test the program with that data in a file?
I get this error:
Exception in thread "main" java.util.NoSuchElementException
How many "elections" worth of data are in the complete file?...
Where is the definition for the missing class?
What does the profiling report look like?
Is that a valid and complete file for testing?
I get this error when I use it:
There is no way to test the code without the contents of the file it reads.
Also the code does not compile because of a missing class.
When I removed the usage of the missing class and fed the...
Please Edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.
what's in the file it reads?