jdalbey

Ballot Tabulation Problem

Oct 31st, 2013
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. The Candy Lovers of America held a vote to see which candy bar is the most popular.
  2. 871 people voted. Their ballots are here:
  3. http://pastebin.com/E9ujCCRe
  4. The voting results are here:
  5. http://pastebin.com/wb0ZbJTx
  6. The vote tabulation algorithm is here:
  7. http://www.fairvote.org/irv/a_fairer_way.htm
  8.  
  9. Write a program using Maps to implement the tabulation algorithm.
  10. Do not discuss this problem with anyone except the instructor.
  11.  
  12. (The instructor's solution is 225 LOC. It took 438 minutes. Thus productivity rate is 30.8 LOC/hr. He had 10 compile defects and only two defects during testing.)
Advertisement
Add Comment
Please, Sign In to add comment