Aniket-Engg / solidity-school

First place for early developers to learn Solidity
366 stars 82 forks source link

AttendanceRegister #21

Closed Aniket-Engg closed 5 years ago

Aniket-Engg commented 5 years ago

Standard: 2 Sequence: 5 Contract Name: AttendanceRegister

Problem Statement: Write a contract named "AttendanceRegister" which will be deployed by teacher. There will be a function add which will take student name, class & joiningDate and will store it where:

Each student will be stored corresponding to a unique serial number called roll number.

Only teacher can add the data of student. An event will be emitted on success.

Use struct, modifier & mapping wherever applicable.

Add related hint, if required.