Questions tagged [voting-system]
179 questions
-1
votes
1 answer
How to get results from txt file and then sum it?
I'm writing an electronic voting system and in the end, I want to show on the screen percentage results, not the numbers for candidates. So I collected everything in a file. It looks like this: "results.txt"
Jessica: 2
Amanda: 3
Michael: 0
Sam:…

Nastya Osipchuk
- 3
- 2
-1
votes
1 answer
How to create a polling system in HTML for a movie review website?
How do I creating a voting system that uses checkboxes for 1 star, 2 stars, 3 stars, 4 stars and 5 stars. According to what the user picks it will generate an average user rating from the given votes and display the number of stars required.
I am…
user10848359
-1
votes
1 answer
Developing a simple voting system in php need help
I need to set up a simple voting system for my application., My application consists of articles posted as well as comments. I would like to add voting abilities to both articles and comments and at the same time be able to sort comments based upon…

Ali
- 7,353
- 20
- 103
- 161
-1
votes
1 answer
using cookies in up/down voting system
I want to build Up/down voting system for several articles retrieved from database, but i want to add cookie for each article to limit number of votes so cookie will expires in one day, but i don't know where to add the appropriate code.
more…

Fares Ayyad
- 383
- 1
- 3
- 18
-1
votes
1 answer
How to implement the D'Hondt method to allocate seats to votes in SQL?
I have a simple SQL (PostgreSQL or MySQL) table where rows represents parties while a column represents the number of votes they received on an election. I want to allocate the number of seats (n) to each party (i.e. to a new column) using the…

Viktor
- 121
- 6
-1
votes
1 answer
Comments with votes and "best answers"
I would like to make something like question and answers sites. I need votes and best answer on the comments. I've already done from scratch something but I don't like the appearence and I am looking for a ready template.
I found this one here but…

Tasos
- 7,325
- 18
- 83
- 176
-1
votes
2 answers
PHP based voting script
I am working on a tube site that categorizes each video by its origin country other than just the category.
I need to think of a voting system that will allow users to correct us if we made a mistake with the country and possibly suggest the correct…

Zbone
- 507
- 2
- 4
- 16
-1
votes
5 answers
How do I create a simple vote up / down php script in php?
I want a simple non-MySQL PHP script that allows viewers to vote up or vote down a page. If it has to be MySQL database driven, then that's just how it has to be. Ideally, not though.
So basically if you were to view source of this page in a web…

Garry
- 251
- 2
- 13
-2
votes
2 answers
Is this an effective anonymous user voting system!
UPDATED
overview of the problem
I am developing a public idea sharing
website, where any user(after creating
an account) can submit ideas; they
will then be reviewed & rated by our
internal reviewers. And only the best
submitted ideas…

anand
- 39
- 2
- 7
-2
votes
1 answer
Software to optimise people's preferences
Say I have two colours of lollipops, and five lollipops of each colour (so ten in total), and I want to distribute these among my friends. We each submit some ranked preferences:
Ben: 1 - Orange, 2 - Green, 3 - Red
Joe: 1 - Green, 2 - Blue, 3 -…

Jack Nagy
- 3
- 1
- 5
-2
votes
1 answer
How to implement one-off up/down voting that can be summed/ counted?
User @guru's idea: each user can shift vote (up or down) rather than total clicks++/--.
how to create up/down voting function in angularjs
The problem I faced is this one-off vote feature once voted, other users can only change vote (but not add or…

Thinkerer
- 1,606
- 6
- 23
- 43
-3
votes
1 answer
-4
votes
1 answer
Self ordering voting system
I need some javascript based code that can help my voting system. Basically I am struggling to work out how to get my items that receive votes to move into order by itself LIVE. So If an item had 52 votes and the item below gained 2 votes to make 54…

kris
- 1
- 1
-5
votes
1 answer
how to i start back fresh after one round of voting, without having stored statistic data in it
/**
* @(#)MTVSurvey.java
*
*
* @author
* @version 1.00 2011/1/13
*/
import java.util.*;
import java.util.InputMismatchException;
public class testing {
static Scanner input = new Scanner(System.in).useDelimiter("\r\n");
…

Nabil
- 1