0% found this document useful (0 votes)
31 views3 pages

Practice example-MVC Last Class

The document outlines a Student Information System using the MVC architecture, detailing the models for students, teachers, classes, and attendance. It describes the views for students, teachers, and administrators, along with controllers that manage interactions for each role. Two scenarios are provided: a student viewing grades and a teacher marking attendance, illustrating the flow of data between the models, views, and controllers.

Uploaded by

numl-f23-19222
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views3 pages

Practice example-MVC Last Class

The document outlines a Student Information System using the MVC architecture, detailing the models for students, teachers, classes, and attendance. It describes the views for students, teachers, and administrators, along with controllers that manage interactions for each role. Two scenarios are provided: a student viewing grades and a teacher marking attendance, illustrating the flow of data between the models, views, and controllers.

Uploaded by

numl-f23-19222
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

STUDENT INFORMATION SYSTEM (MVC)-Example

1. Model:

• StudentModel: Manages data related to students, such


as student information, grades, attendance records, etc.
• TeacherModel: Manages data related to teachers, in-
cluding teacher information, classes taught, etc.
• ClassModel: Manages data related to classes, such as
class schedules, enrolled students, assigned teachers,
etc.
• AttendanceModel: Manages data related to attendance
tracking, including attendance records for students in var-
ious classes.
2. View:

• StudentView: Displays student-related information and


allows students to view their grades, attendance records,
etc.
• TeacherView: Displays teacher-related information and
allows teachers to view class schedules, student lists,
etc.
• AdminView: Displays administrative functionalities such
as managing student enrollments, creating class sched-
ules, etc.
3. Controller:

• StudentController: Handles student-related interactions,


such as viewing grades, checking attendance, etc.
• TeacherController: Handles teacher-related interactions,
such as viewing class schedules, marking attendance,
etc.
• AdminController: Handles administrative interactions,
such as managing student enrollments, creating class
schedules, etc.
1. Scenario: Student views grades:
• The StudentView displays an option for the student to
view their grades.
• The student interacts with the StudentView, selecting the
option to view grades.
• The StudentController receives the request to view
grades from the StudentView.
• The StudentController communicates with the Student-
Model to retrieve the student's grade data.
• The StudentModel retrieves the grade data for the stu-
dent from the database.
• The StudentModel sends the grade data back to the
StudentController.
• The StudentController sends the grade data to the
StudentView.
• The StudentView displays the grade data to the student.
2. Scenario: Teacher marks attendance:

• The TeacherView displays a list of classes taught by the


teacher and an option to mark attendance.
• The teacher selects a class from the list and chooses to
mark attendance.
• The TeacherController receives the request to mark at-
tendance from the TeacherView.
• The TeacherController communicates with the Atten-
danceModel to retrieve the attendance records for the
selected class.
• The AttendanceModel retrieves the attendance records
for the class from the database.
• The TeacherController sends the attendance records to
the TeacherView.
• The TeacherView displays the attendance records and
allows the teacher to mark attendance for each student.
• The teacher marks attendance, and the TeacherView
sends the updated attendance data back to the Teacher-
Controller.
• The TeacherController updates the attendance records
in the AttendanceModel.
• The AttendanceModel updates the attendance data in
the database.

You might also like