Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question about a website calculator

    This website calculates r-score (it's a type of formula that is used with number in Quebec Cegep's): http://rscore.x10.mx/

    Anyhow, I looked at the source and saw that he identified each text box a variable and submit puts it all together to give r-score. But where is the formula used to calculate the r-score listed in the source?

    Like when I look through the source I see it takes the "High school average" variable, the "class average" variable, etc. and then when I click submit, it gives me a number, but what is it doing with all these variables to get these numbers? Has he hidden the calculation formula or am I blind?

    Thanks!

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,915
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    The calaculations formulae are contained in an external Javascript file js.js.

    You can find the formula at http://en.wikipedia.org/wiki/R_score

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Last edited by Philip M; 12-24-2011 at 07:56 AM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •