title: how to calculate average rating
body: <p>Sorry if I am not clear:</p>
  
  <p>How would I calculate the average rating based on the MinRate and MaxRate</p>
  
  <p>for example: <strong>minRate</strong> = 0 or 1 and <strong>MaxRate</strong> = 2 or 3 or 4 or 5 or 0</p>
  
  <p>How would I calculate the rating?</p>
  
  <p><strong>Update End</strong></p>
  
  <p>I am implementing a 5 star rating system and my table structure has two columns:
  1) MinRate 2) MaxRate</p>
  
  <p>so my question is: how do calculate the average rating?</p>
  
  <p>here is how I have in my 5 star rating implementation.</p>
  
  <pre><code>int[] {7, 0, 0, 8, 5}; 
  </code></pre>
  
  <p>This means that:</p>
  
  <ul>
  <li>7 users rated the article with a 1</li>
  <li>0 users rated the article with a 2</li>
  <li>0 users rated the article with a 3</li>
  <li>8 users rated the article with a 4 </li>
  <li>5 users rated the article with a 5</li>
  </ul>