Docsity

Guide to Analyzing User Requirements for Library Management Systems, Slides of Database Programming

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification
TEC Level 5 HND Diploma in Computing
Unit number and title
Unit 04: Database Design & Development
Submission date
07/12/2023
Date Received 1st submission
Re-submission Date
14/12/2023
Date Received 2nd submission
Student Name
Nguyen Minh Anh
Student ID
BH00644
Class
SE06203
Assessor name
Ha Ngoc Linh
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Anh
Grading grid
P2
P3
P4
P5
M2
M3
M4
M5
D2
D3
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d

Partial preview of the text

Download Guide to Analyzing User Requirements for Library Management Systems and more Slides Database Programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date 07 /12/2023 Date Received 1st submission Re-submission Date 14 /12/2023 Date Received 2nd submission Student Name Nguyen Minh Anh Student ID BH Class SE06203 Assessor name Ha Ngoc Linh Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Anh Grading grid

P2 P3 P4 P5 M2 M3 M4 M5 D2 D

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

  • I. INTRODUCTION:
  • II. BODY:
      1. Database System Development
      • 1.1. Analyze user requirements: Library Management
      • 1.2. Analyze system requirements:
      • 1.3. ERD
      • 1.4. Query:
      • 1.5. Use Case:
      • 1.6. Design interfaces for users, administrators and functions of each interface:
      1. Query in the system:
      • 2 .1. Queries to SELECT data with illustrations of final result...............................................................................................................................................
      • 2.2. Queries to INSERT data with illustrations of final result.
      • 2.3. Queries to UPDATE data with illustrations of final result...............................................................................................................................................
      • 2.4. Queries to DELETE data with illustrations of final result.
      • 2.5. Parts of the system that need to be added, edited or deleted along with their queries
    • 3 Test the system
      • 3.1. Test Plan
      • 3.2. Test Case:
      1. Evaluate database systems:
      • 4.1. Conclusion and evaluation for the database:
        • 4.2. Upgrade suggestions to solve encountered problems:
      1. Document:
    • 5.1. Technical Document: - 5.1.1. Code Division: - 5.1.2. Folder: - 5.1.3. Code development plan:
      • 5.2. User Document:
    • 5.2.1. User Manual
    • 5.2.2. Word flow: Library Management System Development Workflow....................................................................................................................
  • III. CONCLUSION:
  • IV. REFERRENCES
  • Figure 1 ERD TABLE OF FIGURE
  • Figure 2 Use Case
  • Figure 3 login interface
  • Figure 4 User interface
  • Figure 5 Admin interface
  • Figure 6 kiemsoatsach interface
  • Figure 7 VayMuon Interface..........................................................................................................................................................................................................
  • Figure 8 nhanvien Interface
  • Figure 9 tacgia Interface................................................................................................................................................................................................................
  • Figure 10 Exit Interface
  • Figure 11 Sql Connection
  • Figure 12 Login query
  • Figure 13 Query checks username and password
  • Figure 14 "else if"
  • Figure 15 kiemsoatsach table........................................................................................................................................................................................................
  • Figure 16 Query to SELECT
  • Figure 17 Query to INSERT
  • Figure 18 Query to UPDATE
  • Figure 19 Query to DELETE
  • Figure 20 nhanvien table...............................................................................................................................................................................................................
  • Figure 21 Query1
  • Figure 22 ADD, EDIT, DELETE of nhanvien table
  • Figure 23 tacgia table
  • Figure 24 Query
  • Figure 25 ADD, EDIT, DELETE of tacgia table.................................................................................................................................................................................
  • Figure 26 VayMuon table
  • Figure 27 Query
  • Figure 28 ADD, EDIT, DELETE of VayMuon table
  • Figure 29 User table
  • Figure 30 Query

II. BODY:

1. Database System Development

1.1. Analyze user requirements: Library Management

Analyzing user requirements is an important step in developing an efficient and easy-to-use database system for library management. This process requires a deep understanding of the needs, expectations, and specific functionality that the end user expects from the system. Here is a step-by- step guide to analyzing user requests in the context of library management:

  • Identify related parties:
    • Identify and engage with stakeholders such as library administrators, bookkeeping staff, and end users of the system.
  • Collect Functional Requirements:
    • Record specific functions and features that users want. This includes book information management, searching, borrowing/returning books, and statistical reporting.
  • Consider Non-Functional Requirements:
    • Identify non-functional requirements such as system performance, security, scalability, and availability.
  • Understanding Data Relationships:
    • Analyze how data is related and connected in the system. This is important for designing a robust relational database.
  • Priority Requirements:
    • Collaborate with users to prioritize requests based on importance and impact to their daily operations.
  • Identifying Use Scenarios:
    • Develop detailed usage scenarios that describe how users will interact with the system in specific situations.
  • Write User Stories:
  • Create user stories to document how users interact with the system in a real-life environment.
  • Check and Confirm Requirements:
  • Conduct testing sessions with stakeholders to ensure that requirements are properly understood and meet actual needs.
  • User Requirements Document:
  • Compile all collected information into an accurate and detailed document that serves as a guide for the system development process. Analyzing user requirements is a fundamental step to building a strong library management system and properly responding to the needs of the user community.

1.2. Analyze system requirements:

In this section, we will analyze system requirements to ensure efficiency in managing book information and optimize workflow. The main goal is to build a flexible and scalable system to meet future user needs, while improving the ability to find, organize, and track book information.

  • Efficiency in Book Information Management: Determine how the system will streamline the book information management process. This includes functions such as adding new books, updating book information, and deleting books from the system.
  • Workflow Optimization: Define current workflows and determine how the system can optimize them. These procedures may include borrowing/returning books
  • System Flexibility and Scalability: Ensure that the system is designed to be flexible and scalable. This requires system architecture to easily integrate new functions and expand the database when necessary.
  • Improved Searchability: Analyze how the system will improve the ability to find information about books. Including search by title, author, genre, and other criteria so users can easily identify the books they are looking for.
  • Organize and Track Book Information: Determine how the system will organize and track book information. This may involve tracking inventory, loan/return history, and other information about the book.
  • Meeting Future Needs: Ensure that the system is capable of meeting future user needs. This includes identifying and integrating new features based on user feedback and trends.
  • Integrating Book Borrowing/Returning Function: Analyze how the system will integrate the book borrowing/returning function effectively. This involves the book borrowing process, book status confirmation, and book return process.

1.3. ERD

Figure 1 ERD

1.4. Query:

create table VayMuon( vay_ID int not null primary key, ID_nhanvien int, ngayvay int, ngaytra int, tenmuon nvarchar( 255 ), diachi nvarchar( 255 ), dienthoai int); create table nhanvien( ID_nhanvien int not null primary key, tennhanvien nvarchar( 255 ), email nvarchar( 255 ), dienthoai int, ID_sach int ); create table sach( ID_sach int not null primary key, tieude nvarchar( 255 ), ID_tacgia int , theloai nvarchar( 255 )); create table tacgia( ID_tacgia int not null primary key, que nvarchar( 255 )); alter table VayMuon add constraint fk_ foreign key (ID_nhanvien) references nhanvien(ID_nhanvien); alter table nhanvien add constraint fk_nhanvienSach foreign key (ID_sach) references sach(ID_sach);

Login: User logs in to the library. Search for books: Users can search for the books they need. Borrow and return: Users can borrow and return materials in the library.

  • Use case for administrators User management Administrators can manage user information and allow or prohibit user access. Document management Administrators can manage the information and quantity of resources in the library, allow or pause borrowing, user login, etc. Add, Update, Delete Resources Administrators can add, delete and update resources in the library.

1.6. Design interfaces for users, administrators and functions of each interface:

My program is created using Microsoft Visual Studio software. The application helps us log in, view, add, edit, and delete administrator and user information. The data information in the application is taken from the data table created in asm1.

Figure 3 login interface The library management login form is the login interface used to authenticate users and allow them to access the library management system. Username: Users need to enter their login name in the corresponding field on the login form. The login name is typically a unique piece of information provided to each user. Password: Users need to enter their password in the corresponding field on the login form. Login button: After entering the correct login name and password, users can press the "Login" button to authenticate information and access the library management system. Exit button: The "Exit" button allows the user to exit the login form and close the application. Before exiting, a confirmation dialog may be displayed for the user to confirm exit. Library management login form helps authenticate users and control access to internal functions and data

Figure 5 Admin interface In the administrator management information, we can see that first when logging into the system, there will be the main administrator interface, as we have seen, in this interface there will be 4 functions: "check user control", "employee control", "book control", and "author control". And the effect of these functions will be to help administrators control all information about this system. To be able to log in to the admin form, in the login form when we enter the correct account name and admin password, we will see the admin form as above and there is only 1 admin account to use. Make sure the administrator account is secure and avoid intrusion into other administrator accounts.

And when we click on manage on the interface, we will switch to the 4 forms mentioned above, including all the functions displayed in each interface.

  • Kiem soat sach Figure 6 kiemsoatsach interface
  • Kiem soat nguoi dung:

Figure 8 nhanvien Interface

  • Kiem soat tac gia

Figure 9 tacgia Interface In addition, in the upper part of the interface, there will be two parts: system and management. Here when we click on the system, a sign-out and exit message will appear, log out will take us back to the login form and exit will exit the database. When we click on manage, a new interface will appear and when you exit, it will display a message saying ban muon dang xuat?