SchoolRegister

FINANCIALTOOLSUTILITY

Exposed Methods

addProfessor adds an ethereum address as a professor address

parameter nametypedetails
_addraddressethereum address of a professor

addStudent adds a student to the array

parameter nametypedetails
_namestringname of the student
_iduintid of the student
_schoolyearuintyear of study the student is

addSubject adds a subject with the grade for it

parameter nametypedetails
_iduintid of the student
_subjectstringname of the subject
_gradeuintgrade taken for that subject

addAbsence adds an absence to a student

parameter nametypedetails
_iduintid of the student

removeProf removes an address as a professor

parameter nametypedetails
_addraddressethereum address of a professor

removeStud removes a student from the map

parameter nametypedetails
_iduintid of the student

getAbsences returns the absences of a student

parameter nametypedetails
_iduintid of the student

getStudent returns information about a student

parameter nametypedetails
_iduintid of the student

getSubject returns the name and the grade for a subject

parameter nametypedetails
_iduintid of the student
_indexuintindex of the subject

getNumberOfSubjects returns the number of subjects a student has

parameter nametypedetails
_iduintid of the student

getNumberOfStudents returns the number of students

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract