Changes between Version 14 and Version 15 of ProgrammingPrompts


Ignore:
Timestamp:
Nov 24, 2015, 9:22:21 PM (9 years ago)
Author:
Timothy Lin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProgrammingPrompts

    v14 v15  
    6262
    6363=== !IceCreamParlor
     64[[Image(http://www.hallsley.com/files/2013/07/7-scoop-ice-cream-cone.jpg, width=150px, height=700px, right)]]
    6465{{{
    6566#!div style="color:white"
     
    9394[[Image(http://sightline.wpengine.netdna-cdn.com/wp-content/uploads/2015/06/Foodtown-Legislature-square.jpeg, 40%, right)]] The U.S. uses the voting system of First Past the Post (or winner-takes-all election), which ''can'' cause a candidate who has won less than the majority to win all the votes, resulting in disproportionate representation.
    9495
     96A reasonable alternative to this system, which would discourage the spoiler effect, is the alternative vote, also known as instant-runoff voting. Read more about the alternative vote [https://en.wikipedia.org/wiki/Instant-runoff_voting here] and/or watch [https://youtu.be/3Y3jE3B8HsE this video] explaining the process (more fun).
     97
     98Implement a ballot counter for the alternative voting system. You will write a class that will be given a list of {{{Vote}}} objects (defined below) and must process them and determine any winners.
     99
    95100{{{
    96101#!div style="color:blue"