npm.io
1.1.6 • Published 9 years ago

enem-score-calculator

Licence
ISC
Version
1.1.6
Deps
0
Vulns
0
Weekly
0

Enem Score Calculator

npm version

Installation

npm install enem-score-calculator

Usage

var enemScoreCalculator = require('enem-score-calculator');

# Calculate score by answers
console.log(enemScoreCalculator.calculateScoreByAnswers('abcd', 'abcc', 1000));
# 750

# Calculate score by weights
console.log(enemScoreCalculator.calculateScoreByWeights([500, 500, 500, 1000], [1, 1, 1, 10], 1000, true));
# 885

And you're good to go!

License

MIT

Keywords