 |
|
Innovation award
 Nominee: 1x |
This class can be used to calculate the number of seats assigned to a party upon election results using the D'Hondt method.
It takes as parameters the number of available seats and an associative array that relates each party with the votes they received.
The class distributes the available seats using the D'Hondt method and returns an associative arrays that relates each party with the number of assigned seats that they got.
The code and the comments are in Catalan.
|
|
| Name: |
Calculadora Escons |
| Base name: |
calculadoraescons |
| Description: |
Calculate elected seats using D'Hondt method |
| Version: |
1.1 |
| PHP version: |
5.0 |
| License: |
GNU General Public License (GPL) |
| All time users: |
251 users |
| All time rank: |
6386 |
| Week users: |
3 users |
| Week rank: |
923  |
| |
|
 June 2007
Number 10 |
The D'Hondt method is used in many countries to calculate the number of seats assigned to a party, depending on the percentage of votes that they get in elections.
This class provides an implementation of the D'Hondt method. It can be used by PHP sites that want to show on the Web the partial or final results of elections that take place on countries that use this method of assigning elected seats.
Manuel Lemos |
| There are not enough user ratings to display for this class. |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|