System Description & Design
System Description & Design
The system aims to offer a simplistic interface for managing student records and provide useful
reports.
Users of the system will be required to first log in (meaning there should be a record of the user with
a password and username in the system. After logging in the user may then view all the student
records, search, delete and editing existing records and add new student record(s). The system
should produce reports for each course with relation to the students.
System Requirements
Main System Requirements
Generate Report
«extends»
«uses»
-End2
Login Delete Student
* «uses»
«uses»
User
Search Student
«extends»
View Students
Database Design
User
PK username
password
Student
course
PK student_id
PK course_id
first_name
last_name course_name
gender credits
FK1 course_id department
Class design
User
-username : string
DBConnect
-password : string User
+User(in username : string, in password : string) -host : string
-user : string -username : string
+login() : bool -password : string
-password : string
-dbName : string +User(in username : string, in password : string)
-connection : object +login() : bool
+connect() : bool
+getConnection() : object
Student
-student_id : string Course
-first_name : string -course_id : string
-last_name : string -End4 -course_name : string
-gender : string -credits : short
-course : Course -department : string
+getStudentID() : string * +Course()
+setStudentID(in student_id : string) : void +getAllCourseIDs(in db : DBConnect) : string[]
+getFrstName() : string +read(in db : DBConnect) : bool
+setFirstName(in first_name : string) : void
+getGender() : string StudentForm
+setGender(in gender : string) : void
+getCourse() : string LoginForm
-End3 -addStudent() : void
+setCourse(in course : string) : void
-removeStudent() : void
+Student()
-searchStudent() : void -login() : void
+create(in db : DBConnect) : bool
1 -viewStudent() : void
+update(in db : DBConnect) : bool
-validate() : bool
+delete(in db : DBConnect) : bool
+read(in db : DBConnect) : bool
+search() : Student[]
DFD
User
Update
Student id and updates Student
Login details
Report
Updated student details
Student id Printed report
Search parameters
Search Student Student lists
Student records
Student details
Delete Student
Search parameters
Student
Add Student
Validated student details
Sequence diagram
Add new Student
addStudent()
validate()
create(db)
result
display result
Search for student
searchStudent()
search(db)
students
display students
login
User loginForm user
login()
login(db)
loginStatus
display loginStatus