Student Management System in Dart: A Flutter-based application for Module 5 of the 'App Development with Flutter' course. Utilizes Dart programming language with Object-Oriented Programming (OOP) concepts to create a comprehensive student management system, offering efficient data organization and user-friendly interfaces.
Obtained Marks: 100%
Enhance the student management system by using interfaces to ensure role-based behavior and actions.
- Declare a method
void displayRole()
to be implemented by classes that represent different roles (Student, Teacher).
- Include attributes for
name
,age
, andaddress
. - Include a reference to the
Role
interface. - Provide a constructor and getter methods for the attributes.
- Implement the
Role
interface methods.
- Include additional attributes for
studentID
,grade
, and a list to storecourseScores
. - Provide a constructor to initialize attributes.
- Override the
displayRole()
method to display"Role: Student"
. - Implement a method to calculate the average score of courses.
- Include an attribute for
teacherID
and an array to storecoursesTaught
. - Provide a constructor to initialize attributes.
- Override the
displayRole()
method to display"Role: Teacher"
. - Implement a method to display the courses taught by the teacher.
- In the main method, create instances of
Student
andTeacher
classes. - Set the attributes using appropriate methods.
- Use the
displayRole()
method to display the role of each person. - This extended scenario incorporates interfaces to provide role-based behavior for
Students
andTeachers
.
-
If a student, named John Doe, is 20 years old and resides at 123 Main Street. His average score is 89.0, calculated from scores of 90, 85, and 82 in three subjects. Then Output should be:
Student Information: Role: Student Name: John Doe Age: 20 Address: 123 Main St Average Score: 89.0
-
If a teacher, named Mrs. Smith, is 35 years old and resides at 456 Oak St. And his course thoughts are Math, English, Bangla. Then Output should be:
Teacher Information: Role: Teacher Name: Mrs. Smith Age: 35 Address: 456 Oak St Courses Taught: - Math - English - Bangla