S
S
shane892015-11-26 23:30:18
PHP
shane89, 2015-11-26 23:30:18

How to count votes?

good night. There is a rating, counts on a 5 point scale. There are voices. 1) 4, 2) 1, 3) 5, 4) 5, 5) 2, 6) 4, 7) 1. It is necessary to paint over the stars, there are 5 of them, depending on the votes. How to count votes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2015-11-26
@shane89

well, calculate the arithmetic mean - and round.

V
Valery Serov, 2015-11-27
@DrBronson

Add up the sums of all balls of votes, then divide by the number of all votes, round up to the desired one and show a card with marked stars according to the range of the arithmetic mean that we have already calculated

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question