Questions tagged [tabulate]
The tabulate tag has no usage guidance.
8
questions
0
votes
1answer
21 views
cs50 pset3 runoff tabulate function help
I have been stuck at the tabulate function for quite some time, I'm able to code all the other functions except for this tabulate functions.
If possible do help me look to see what wrong with the ...
0
votes
2answers
16 views
Runoff Help: Tabulate Handles Multiple Rounds of Preferences
I cannot figure out why I am getting rejected on check50 for ":( tabulate handles multiple rounds of preferences - tabulate function did not produce correct vote totals". I get green ...
0
votes
0answers
26 views
pset 3 runoff - problem with tabulate
I am a (very) beginner coder, so pls be gentle!! I have numerous mistakes in my code, but am unsure how to fix them. The code is working for some things, and I have scored 73 % on the problem set, but ...
0
votes
1answer
86 views
CS50 Runoff Tabulate
So I have been working on the tabulate function and Check50 says that the function is correct and it does properly work when no candidate is eliminated and when one is eliminated, but not when ...
0
votes
1answer
87 views
Pset 3 runoff. Votes not updating, trying to understand the code sequencing
Ok so im stuck on the tabulate funtion in runoff for pset3.
The issue im having is that when i call to "printf" the candidates vote counts the votes still come out as 0. So i dont think the ...
0
votes
1answer
58 views
Pset3 runoff tabulation error
[![enter image description here][1]][1]
I keep getting a tabulation error with check50 that I cannot replicate
11 voters, 4 candidates, 3 or 4 rounds of voting works fine with I run it, and debug50 ...
0
votes
1answer
62 views
cs50 pset3 runoff tabulate - why you say candidates[i].votes = 0 ; here?
why use that ??
for (int i = 0; i < candidate_count; i++)
{
candidates[i].votes = 0;
}
}
return 0;
1
vote
1answer
546 views
tabulate doesn't count votes when multiple candidates are eliminated
for (int i = 0; i < voter_count; i++)
{
// vote for top-preferred candidate if possible
if (candidates[preferences[i][0]].eliminated == false)
{
candidates[preferences[i][0]]....