Changes between Version 14 and Version 15 of ProgrammingPrompts
- Timestamp:
- Nov 24, 2015, 9:22:21 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProgrammingPrompts
v14 v15 62 62 63 63 === !IceCreamParlor 64 [[Image(http://www.hallsley.com/files/2013/07/7-scoop-ice-cream-cone.jpg, width=150px, height=700px, right)]] 64 65 {{{ 65 66 #!div style="color:white" … … 93 94 [[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. 94 95 96 A 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 98 Implement 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 95 100 {{{ 96 101 #!div style="color:blue"