JSP--Design and Implementation of Course Selection Management System 【Course Design】

Table of contents

1 design task

1.1 Design background

1.2 Design Significance

2 System Analysis

2.1 Feasibility analysis

2.1.1 Technical Feasibility Analysis

2.1.2 Operation Feasibility Analysis

2.1.3 Economic Feasibility Analysis

2.2 Demand Analysis

2.2.1 Analysis of Functional Requirements

2.2.2 Analysis of Performance Requirements

3 system design

3.1 Overall system design

3.2.1 User login function module design

3.2.2 Administrator function module design

3.2.3 Teacher function module design

3.2.4 Student function module design

3.2.5 System flow design

3.3 Database design

3.3.1 Conceptual structure design

3.3.2 Logic structure design

3.3.3 Physical structure design

4 system realization

4.1 Realization of user login function module

4.2 Realization of administrator function module

4.3 Realization of teacher function module

4.4 Realization of student function modules

5 system test

5.1 Test purpose

5.2 Test method

5.3 Test content

5.4 Test Cases

6 Design summary and experience


1 design task

1.1 Design background

With the continuous popularization and development of the network, the course selection management system of colleges and universities has developed rapidly relying on the support of network technology. First of all, we must start from the actual needs of users and develop targeted course selection functions by understanding the needs of users. The convenience and quickness brought by users adjusts the system, and the designed system makes it more convenient for users to use. The main purpose of this system is to bring convenience to users. Users can view course information as long as they are at home.

With the continuous improvement of science and technology, computer information technology science has gradually matured and grown, and the rapidity, accuracy, and automation characteristics of computer technology have been deeply understood and recognized by people. Computer technology has entered various fields of human society, and is playing an increasingly important role in various fields such as politics, economy, life, and cultural services. As the basic core, the state attaches great importance to the education of colleges and universities, primary and secondary schools, and devotes a lot of manpower and financial resources to training college students and cultivating practical talents, and devotes a lot of energy to policies and financial resources. Therefore, the allocation of educational resources is very important, and it also highlights the importance of course selection in schools.

Due to the traditional way of manually arranging courses, teaching resources cannot be allocated scientifically, and there are many shortcomings, such as: low efficiency, poor confidentiality, inconvenient search, update and maintenance after long-term storage, resulting in unreasonable and inconvenient course selection for students, resulting in The conflict between students and school teaching resources fundamentally affects the quality of teaching. Many schools at home and abroad have actively introduced and developed many online course selection management systems, which meet the specific needs of the school itself, and greatly highlight the advantages brought by the online course selection management system, such as fast retrieval, convenient search, high reliability, large storage capacity, Long life, easy to use, etc.

Since the development of the Internet, many unsolvable problems have been solved, making work more convenient and improving work efficiency. At present, all walks of life are using network information management programs, and different groups of people are also exposed to information management, especially in major e-commerce industries. Through the analysis and summary of the development of the current network environment, the development of a course selection management system can change the way students choose courses in the past and change the state of traditional student course selection. Due to the increasing number of people, using the traditional offline student course selection mode is far from being satisfied. Users demand, and more and more campuses are also opening online course selection, so the development of a college course selection management system can solve the problem that the campus is not conducive to offline course selection, and at the same time, the campus can use the network to manage ball information, design The website guarantees the integrity and safety of information, so as to improve work efficiency and ensure the safe and normal operation of the system.

1.2 Design Significance

The online course selection management system is a part of school education management and is extremely important [1]. As a school, under the core idea of ​​educating students, it uses various methods to complete educational management, improve the efficiency of educational administration management, facilitate students' learning, optimize teachers' teaching, and thus improve the school's overall efficiency in running schools. Auxiliary school management has become a very important part, so the use of computer technology to build an online course selection management system will help the school's educational administration management. The course selection management system will help the school's educational administration management. With the help of the powerful advantages of computer applications, the use of computers to manage course selection information has advantages that cannot be compared with manual management. With the help of computers, it can be retrieved quickly, conveniently searched, high in reliability, large in storage capacity, good in confidentiality, long in life, and low in cost. The advantage is that it can greatly improve the efficiency of the school's course selection management system management, become a sufficient condition for the scientific and regularization of school management, and the only way to strive to be in line with the world. From a national point of view, the use of computer information technology to manage course selection information and student information is a work that major universities are actively carrying out, and it is also an important content of teaching management in universities.

Generally speaking, compared with the traditional course selection method, the course selection management system of the college credit system saves resources and avoids unnecessary consumption. Teaching is more transparent. Moreover, with the continuous increase of the number of college students, the amount of data in the educational administration course selection management system is also increasing. It is also possible to change the traditional model of course selection in the past, without giving full play to the help of the course scheduling system for educational administration management, to adapt to the reform of the admissions examination system and the implementation of the "shift system" teaching mode, and to strive to achieve a scheduling system suitable for the new teaching mode. The course selection management system finds a solution to the shortcomings of the traditional course scheduling system and adapts to the reform of the national examination system.

The designed research will supplement the deficiencies in the traditional course scheduling system, find a reasonable solution to the problem of course scheduling in the new teaching mode of "walking shifts", improve the efficiency and accuracy of course scheduling for educational administrators, and simplify course scheduling Manual operation in all aspects, better use of human resources, rational arrangement of teaching resources, and solving the problem of resource shortage. It satisfies the teachers' expectations of class arrangement as much as possible, gives full play to the students' freedom of choice, and stimulates the teachers' teaching enthusiasm and students' learning enthusiasm, which has certain research significance. With the help of the powerful advantages of computer applications, the use of computers to manage course selection information has advantages that cannot be compared with manual management. With the help of computers, it can be retrieved quickly, conveniently searched, high in reliability, large in storage capacity, good in integrity, long in life, and low in cost. And other advantages, can greatly improve the efficiency of school students' course selection, become a sufficient condition for the scientific and regularization of school management, and the only way to strive to be in line with the world. From a national point of view, the use of computer information technology to manage course selection information and student information is a work that major universities are actively carrying out, and it is also an important content of teaching management in universities.

2 System Analysis

2.1 Feasibility analysis

2.1.1 Technical Feasibility Analysis

The course selection management system is developed and designed using the MVC framework, JAVA programming language and MYSQL database. As a computer major student, I have been exposed to a lot of programming knowledge during school, including various programming software, and I have a relatively good understanding of them. system, so there is still a certain degree of confidence in technology development [2].

2.1.2 Operation Feasibility Analysis

Inexperienced in program development, the design of the interface will not be too complicated. It must be simple and beautiful, and the operation must be convenient, so that users cannot feel unsmooth. Once the user enters the operation interface, there will be a corresponding prompt on the interface, and the corresponding functional operation module can be found by following the operation prompt, which can be used without training for the user.

2.1.3 Economic Feasibility Analysis

The course selection management system mainly starts from cost saving, and then carries out specific system design. Since all the tools and technical support used in the system design process are all free, the system can be implemented without any cost. design. All the resources used are free, and can be downloaded and used as long as there is a network, and no corresponding fees are required, so the project is completely feasible economically.

2.2 Demand Analysis

2.2.1 Analysis of Functional Requirements

The course selection management system mainly includes four functional modules, namely the login function module, the administrator function module, the teacher function module and the student function module [3].

(1) Use case analysis of the login module: to realize the login of users with different identities.

(2) Use case analysis of the administrator function module: the core user in the system is the system administrator. After the administrator logs in, he can manage the background system through the administrator menu. The main functions are: student information management, teacher information management, course information management. The administrator use case diagram is shown in Figure 2.1.

Figure 2.1 Administrator use case diagram

(3) Use case analysis of the teacher function module: one of the main users of the system, the main functions are: student information management, course information management, grade information management, and personal information viewing. The teacher use case diagram is shown in Figure 2.2.

Figure 2.2 Teacher use case diagram

(4) Use case analysis of the student function module: one of the main users of the system, the main functions include: view course information, select courses, query results, and view personal information. The student use case diagram is shown in Figure 2.3.

Figure 2.3 Student use case diagram

2.2.2 Analysis of Performance Requirements

(1) System response efficiency: The page response time should be within 3 seconds, and the longest should not exceed 4 seconds.

(2) The interface is simple and clear: the system interface is required to be simple and clear, easy to operate, and in line with user operating habits.

(3) High storage capacity: Because there are a lot of information to be stored in the course selection management system, there is a great requirement for the storage capacity of the system, and a powerful database is needed to ensure that all information can be carried out safely and stably storage.

(4) Ease of learning: The system must be easy to use in operation, there are not many complicated operations, and the system can be operated only by simple learning.

(5) Stability requirements: The developed course selection management system requires stable operation, with no unclear interface or blurred fonts during operation.

3 system design

3.1 Overall system design

The course selection management system chooses two modes: B/S structure (Browser/Server, browser/server structure) and Web service-based [4]. It is suitable for operation on the Internet, as long as the user can connect to the Internet, the system can be operated and used at any time and any place. The working principle diagram of the system is shown in Figure 3.1.

 Figure 3.1 System working principle diagram

The whole system is composed of multiple functional modules. All the functional modules should be listed one by one, and then the functional design should be carried out one by one, so that each module has a corresponding functional design, and then the overall design of the system can be carried out. . The system structure diagram of course selection management system is shown in Figure 3.2.

Figure 3.2 System structure diagram

 3.2 System detailed design

The detailed design is to classify each module finely after the overall design is completed, and to determine the functions of each module and how to realize these functions.

3.2.1 User login function module design

The login module mainly satisfies the permission login of administrators, teachers and students. The sequence diagram of the login module is shown in Figure 3.3.

Figure 3.3 Sequence Diagram of Login Module

3.2.2 Administrator function module design

Administrators can modify or delete teacher information, student information, course information, etc. The flowchart of the administrator function module is shown in Figure 3.4.

Figure 3.4 Flow chart of administrator function module

 3.2.3 Teacher function module design

The teacher module is mainly for student information management, course information management, achievement information management, and personal information viewing. The flow chart of the teacher function module is shown in Figure 3.5.

Figure 3.5 Flow chart of teacher function module

3.2.4 Student function module design

The student module is mainly for viewing course information, selecting courses, querying grades, and viewing personal information. The flow chart of the student function module is shown in Figure 3.6.

Figure 3.6 Flow chart of student function module

3.2.5 System flow design

According to the specific situation of the actual problem, combined with the basic object-oriented theory and basic skills, can correctly analyze the problem, and can design an effective algorithm and program to solve the problem. The overall flow chart of the system is shown in Figure 3.7.

Figure 3.7 Overall flow chart of the system

3.3 Database design

3.3.1 Conceptual structure design

There are 4 entities in the database of this system: administrator, teacher, student and course.

The administrator entity includes administrator number, account number, password, name and other fields. The administrator entity diagram is shown in Figure 3.8.

Figure 3.8 Administrator Entity Diagram

The teacher entity includes fields such as teacher number, account number, password, name, title, etc. The teacher entity diagram is shown in Figure 3.9.

Figure 3.9 Teacher Entity Graph

The student entity includes fields such as student number, account number, password, name, student number, and major. The student entity diagram is shown in Figure 3.10.

Figure 3.10 Student Entity Graph

The course entity includes fields such as course number, course name, credits, teacher number, electives, class hours, etc. The course entity diagram is shown in Figure 3.11.

Figure 3.11 Course Entity Diagram

Administrators can manage teacher information, student information, and course information. Teachers can manage student information, course information, and grade information. Students can select courses, view courses, and view scores. The system ER diagram is shown in Figure 3.12.

Figure 3.12 System ER Diagram

 3.3.2 Logic structure design

According to Section 3.3.1, the conceptual model in the system can be converted into a specific table (relational) structure, which is divided into 5 relationships, and the details are as follows:

(1) Administrator ( administrator number , account number, password, name);

(2) Teachers ( teacher number , account number, password, name, title);

(3) Students ( student number , account number, password, name, student number, major);

(4) Courses ( course number , course name, credits, electives, class hours);

(5) Results information ( score number , score).

3.3.3 Physical structure design

Administrator information table: used to store system administrator number, account number, password and name and other information. The administrator information table is shown in Table 3.1.

Table 3.1 Administrator Information Form

serial number

field

illustrate

type

length

constraint

Can it be empty

1

id

administrator number

int

primary key

no

2

userName

account

varchar

20

no

3

password

password

varchar

20

no

4

trueName

admin name

varchar

20

yes

Teacher information table: used to store information such as teacher number, account number, password, name and title. The teacher information table is shown in Table 3.2.

Table 3.2 Teacher Information Form

serial number

field

illustrate

type

length

constraint

Can it be empty

1

id

serial number

int

primary key

no

2

userName

account

varchar

20

no

3

password

password

varchar

20

no

4

trueName

teacher name

varchar

20

yes

5

title

job title

varchar

50

yes

Student information table: used to store information such as student number, account number, password, name, student number and major. The student information form is shown in Table 3.3.

Table 3.3 Student Information Form

serial number

field

illustrate

type

length

constraint

Can it be empty

1

id

serial number

int

primary key

no

2

userName

account

varchar

20

no

3

password

password

varchar

20

no

4

trueName

teacher name

varchar

20

foreign key

yes

5

stuNo

student ID

varchar

20

yes

6

professional

major

varchar

30

yes

Course information table: used to store information such as student number, account number, password, name, student number and major. The course information table is shown in Table 3.4.

Table 3.4 Course Information Table

serial number

field

illustrate

type

length

constraint

Can it be empty

1

id

serial number

int

primary key

no

2

courseName

Course Title

varchar

40

yes

3

credit

credit

int

yes

4

teacherId

teacher number

int

foreign key

yes

5

isxuan

Whether elective

int

yes

6

coursetime

class

int

yes

Grade information table: used to store grade number, student number, course number and scores. The score information table is shown in Table 3.5.

Table 3.5 Score Information Table

serial number

field

illustrate

type

length

constraint

Can it be empty

1

id

serial number

int

0

primary key

no

2

studentId

student number

int

0

foreign key

no

3

courseId

Course No

int

0

foreign key

no

4

coursetime

Fraction

int

0

yes

4 system realization

4.1 Realization of user login function module

Users can choose different identities to choose to log in. When logging in, they need to enter the user name and password, select the user type, and then compare it in the database. If it is confirmed to be correct, they can enter the main page [5].

4.2 Realization of administrator function module

Administrators can manage student information, teacher information, and course information, and can modify or delete student information, teacher information, and course information [6].

4.3 Realization of teacher function module

The teacher module can manage student information, course information, and grade information, modify or delete student information, course information, and grade information, and view personal information [7].

4.4 Realization of student function modules

The student module can select courses, view course information, query grade information, and view personal information. Students can select courses or withdraw from courses [8].

5 system test

5.1 Test purpose

The purpose of the test is to control the stability and operability of the system. For software development and utilization, the ultimate purpose is the final test and trial, which is an indispensable and important link. For software developers, when arranging each individual function, there must be a separate test, and multiple functional software can be developed only after passing the test phase, which not only shortens the development time, but also can be used in a single Problems are found in the early tests, so as to avoid the integrated software, it is difficult to quickly solve or quickly locate the problem when finding the problem.

After the development and design of the course selection management system is completed, it is necessary to conduct a system test. The main purpose of the test is to discover and find out the problems in the system [9], and solve them in time to ensure that the system can run normally and stably. During the system test, follow the specified test steps, and record the test results in detail, and choose an automated test when testing, which can save time and ensure the accuracy of the test. Compared with Because manual testing is more convenient, there are many uncertain factors in manual testing, and a series of problems may appear during the testing process. Similar problems will not occur in machine testing. Finally, save the documents after the test is completed in time, so that it can be used in subsequent tests.

5.2 Test method

Black box testing and white box testing are two common approaches in software testing. Black-box testing is the evaluation of software functionality and performance by testing the inputs and outputs of a software system without considering the internal code or structure. Testers only need to judge whether the software conforms to the expected behavior by inputting data and observing the output results. White box testing means that testers need to understand the internal structure, code and algorithm of the software, and evaluate the quality and performance of the software by checking the internal logic of the program. White box testing usually requires testers to have knowledge in programming and software development.

Both black-box testing and white-box testing are usually important components in software testing, and they can complement each other to evaluate the overall quality of software. Black-box testing can help testers evaluate the actual user experience and functionality of a software system, while white-box testing can help testers evaluate the reliability and security of software codes. The system adopts the method of black box testing.

5.3 Test content

When conducting black-box testing of the course selection management system, the main purpose is to make the system stable and user-friendly. Testers need to test the following:

Whether the user login function is normal; whether the functions of the administrator to manage teachers, students, and courses are normal; whether the functions of teachers to manage students, courses, grades, etc. are normal; whether the function of student selection is normal.

5.4 Test Cases

Several main functional modules of the system are used as a test of the course selection management system to improve each functional module and improve the stability of the system [10].

(1) The user login function module test cases mainly test whether the functions of different user login systems are normal, and check whether the results meet expectations. The user login function module test examples are shown in Table 5.1.

Table 5.1 User login function module test cases

use case number

use case title

Preconditions

Steps

Test Data

expected outcome

test status

1

Log in with the correct account and password

none

1. Enter the login page;

2. Username input account "admin"

3. Enter the password "123" in the password field

4. Select "Administrator" as the user type

5. Click the login button

Account: admin

Password: 123

User Type: Administrator

Login successfully, enter the system home page

pass

2

Log in with the correct account and password

none

1. Enter the login page;

2. Username input account "a"

3. Enter the password "123" in the password field

4. Select "Student" as the user type

5. Click the login button

account number: a

Password: 123

User Type: Student

Login successfully, enter the system home page

pass

3

Log in with the correct account and password

none

1. Enter the login page;

2. Username input account "z"

3. Enter the password "123" in the password field

4. Select "Teacher" as the user type

5. Click the login button

Account number: z

Password: 123

User Type: Teacher

Login successfully, enter the system home page

pass

4

Log in with wrong account password

none

1. Enter the login page;

2. Username input account "admin"

3. Enter the password "12345" in the password field

4. Select "Administrator" as the user type

5. Click the login button

Account: admin

Password: 12345

User Type: Administrator

If the login fails, a "username or password error" prompt box pops up

pass

(2) The test case of the administrator function module mainly tests whether the operation functions of the administrator to manage student information, teacher information and course information are normal, and check whether the results meet expectations. The administrator function module test examples are shown in Table 5.2.

Table 5.2 Administrator function module test cases

use case number

use case title

Preconditions

Steps

Test Data

expected outcome

test status

1

Student Information Management

login to homepage

1. Click the Modify button

2. Click the save button

none

Successfully modified

pass

2

Teacher Information Management

login to homepage

1. Click the delete button

2. Click the OK button

none

successfully deleted

pass

3

Course Information Management

login to homepage

1. Click the Modify button

2. Click the reset button

3. Click the Save button

none

save failed

pass

(3)教师功能模块测试用例主要测试教师管理学生信息,课程信息和成绩信息等操作功能是否正常,查看结果是否符合预期。教师功能模块测试用例如表5.3所示。

表5.3 教师功能模块测试用例

用例编号

用例标题

前置条件

操作步骤

测试数据

预期结果

测试状态

1

学生信息管理

登录到主页

1.点击修改按钮

2.点击保存按钮

修改成功

通过

2

课程信息管理

登录到主页

1.点击删除按钮

2.点击确定按钮

删除成功

通过

3

成绩录入

登录到主页

1.点击成绩录入

2.输入成绩20

3.点击录入成绩按钮

4.点击确定按钮

录入成功

通过

(4)学生功能模块测试用例主要测试学生选课功能是否正常,查看结果是否符合预期。学生功能模块测试用例如表5.4所示。

表5.4 学生功能模块测试用例

用例编号

用例标题

前置条件

操作步骤

测试数据

预期结果

测试状态

1

选择课程

登录到主页

1.点击选择课程按钮

2.选择Python课程

3.点击选择课程按钮

选择成功

通过

2

退选课程

登录到主页

1.点击选择课程按钮

2.选择需要退选的Python课程

3.点击退选课程课程按钮

退选成功

通过

6设计总结和心得体会

本系统通过对MVC模式和MYSQL数据库的使用,从硬件和软件两反面说明了选课管理系统的设计与实现的可行性,本系统结论及研究成果如下:实现了MVC与MYSQL相结合构建的选课管理系统,通过本次选课管理系统的设计与实现,小组成员感触到学习一门新技术,最重要的是实践,只有多动手才能尽快掌握它,一个系统的开发,经验是最重要的,经验不足,就难免会有许多考虑不周之处。要想吸引更多的用户,系统的界面必须要美观、有特色、友好,功能要健全。

由于在此之前对于MVC知识并没有深层次了解,所以从一开始就碰到许多困难,例如一开始的页面显示不规范、数据库连接有问题、无法实现参数的传递等等,通过不断的查阅相关的资料,以及向老师同学请教,最后出现的所有的问题都得到了解决,通过这次的系统开发,学到了很多的知识,也明白了我们在哪些方面有不足的地方,尤其是学会如何从大量的信息中筛选出所需有用的信息,同时更加深刻的体会到了,虽然书本上的大部分知识都是有价值,正确的,但实际上每个人编程的思路和对数据处理的方法、思想都是不同的,这就要求我们一定要通过实践才能找到解决问题的方案。在此次课程设计中,我们不断的提高了自己,也得到了宝贵的经验,相信这些对我们以后的发展都会有很大帮助。

通过这次选课管理系统的开发,让我们学到了更多的知识,同时通过这次系统的设计也让我们明白了自己在哪方面有不足,以后加以学习争取可以开发住更多有用的适用的系统软件,本次系统的设计提高了我们的编程水平,为了我们今后系统的开发打下了结实的基础。

参考文献

[1]刘伟冉.基于Java的网上选课系统设计和实现[J].黑龙江科技信息, 2020, 000(027):53-61.

[2]钮永莉,邹长忠.基于MVC框架的高校学生选课系统的设计与实现[J].  2021(2018-3):57-59.

[3]李凌涛.基于JSP的学生信息管理系统设计与实现[J].信息与电脑, 2021(018):033.

[4]王开柱,宁洪伟,李锐.B/S模式的网上选课系统的设计与开发[J]. 2021.

[5]韩洪勇,朱珍珍,姚连达.基于JSP和Servlet的学生信息管理系统[J].科技风, 2020(19).

[6]刘斌,张雄,胡明浩.实验室选课系统web后端设计[J]. 2022(17).

[7]许家伟.基于JSP的在线考试系统的设计与实现[J].现代信息科技, 2023, 7(8):4.

[8]李凌涛.基于JSP的学生信息管理系统设计与实现[J].信息与电脑, 2021(018):033.

[9]刘承良.教学管理系统平台选课管理功能的研究[J].电脑知识与技术, 2022(21).

[10]肖建芳.多校区高校公共选修课选课管理系统的研究与设计[J].南方职业教育学刊.2020.10(1).

Guess you like

Origin blog.csdn.net/weixin_65089091/article/details/131473047