1.0.1 • Published 10 months ago

palvadeau_florian_osstd-js v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Random grades generator 🔥

This library is made to generate random grades to each student of a required csv file. Then it calculates the average grade of all the students and returns it at the last line of the csv file

This library modify csv files !

Installation 📢

npm install palvadeau_florian_osstd-js

How to run ? 🏎

As a basic library, you can call the function wherever you want ! Don't forget to import the required file (index.js)

const addRandomGradeToCSV = require("../index");
addRandomGradeToCSV(minGrade, maxGrade);

How to import your custom csv ? ⚙

Warning : your csv template must be the same as the original one ! Rename your custom csv into file.csv, then just drag and drop it into the root file.

Then, just go ahead with the same method !

addRandomGradeToCSV(minGrade, maxGrade);

What are the parameters ? 🤔

NameUsage
minGradeFirst parameter, it defines the minimum number of the random generation
maxGradeSecond parameter, it defines the maximum number of the random generation

What is the csv format ? 📃

Student_pkNomPrenomCommentaireNote
12312321312DOEJohn16
12312321313DOEMaria10
12312321314DOEJane13
12312321315DOEJack17
12312321316DOEMariasse13
Moyenne13.80
1.0.1

10 months ago