Computer Project
Computer Project
Computer Project
Rise
English
School
A Project Report On
“Library
Management System”
Submitted by Submitted to
Sajjan Deepak sir
Gautam
Class:10
Prepared By: Sajjan Gautam
Remark 1
PREFA
CE
This project of “LIBRARY MANAGEMENT
SYSTEM” gives us the complete information about
the library. We can enter the record of new books
and retrieve the details of books available in the
library. We can issue the books to the students and
maintain their records and can also check how many
books are issued and stock available in the library. In
this project we can maintain the late fine of students
who return the issued books after the due date.
Throughout the project the focus has been on
presenting information and comments in an easy and
intelligible manner. The project is very useful for
those who want to know about Library Management
System.
In the last, I gratefully acknowledge and
express my gratitude to friends who supported me in
preparing this project.
Table of
Content
Prepared By: Sajjan Gautam 2
s
Background of project………………4
Designing the solution
(Algorithm and Flowchart)…………5
Coding with output screen………40
Conclusion ………………………4
Start
Display main
menu
Is choice NO
Display invalid
=1-5
choice
Yes
1 2 3 4 5
Add record Display record Filter record Delete record Update record
Stop
Step 1: Start
Step 2: Open data file “lib.dat” in append mode
Start
No
Algorithm toStop
display records
Step 1: Start
Step 2: Display menu
Step 3: Ask user to Input choice
Step 4: Check the choice number
If the choice=1 then run the procedure “Display
Start
Display menu
Yes
1 2 3 4 5
Step 1: Start
Step 2: Open data file “Lib.dat” in input mode
Step 3: Read data from file
Step 4: Print data file
Step 5: Check end of file using EOF function
Step 6: Is EOF reached?
If no, then go to step 3 else
Step 7: Close data file
Step 8: Stop
Start
Read data
Print data
No Is EOF
reached?
Yes
Close data file
Stop
Step 1: Start
Step 2: Open data file “Lib.dat” in input mode
Step 3: Read data from file
Step 4: Print book name
Step 5: Check end of file using EOF function
Step 6: Is EOF reached?
If no, then go to step 3 else
Step 7: Close data file
Step 8: Stop
Start
Read data
Print book
name
No
Is EOF
reached?
Yes
Stop
Step 1: Start
Step 2: Open data file “Lib.dat” in input mode
Step 3: Read data from file
Step 4: Print book name and author name
Step 5: Check end of file using EOF function
Step 6: Is EOF reached?
If no, then go to step 3 else
Step 7: Close data file
Step 8: Stop
Start
Read data
No
Is EOF
reached?
Yes
Stop
Prepared By: Sajjan Gautam 16
Algorithm to display name of book with its code
Step 1: Start
Step 2: Open data file “Lib.dat” in input mode
Step 3: Read data from file
Step 4: Print book name and its code
Step 5: Check end of file using EOF function
Step 6: Is EOF reached?
If no, then go to step 3 else
Step 7: Close data file
Step 8: Stop
Start
Read data
No
Is EOF
reached?
Yes
Start
Read data
No
Is EOF
reached?
Yes
Start
Display menu
Is choice
=1-2?
No Display invalid
choice
Yes
1 2
Filter with author name Filter with price
Stop
Step 1: Start
Step 2: Open data file “Lib.dat” in input mode
Step 3: Input author name from user: author
Step 4: Read data from file
Step 5: Is author name=author?
If yes then go to step 6
If no then go to step 7
Step 6: Print data
Step 7: Is EOF reached?
If yes then go to step 8
If no then go to step 3
Step 8: Close data file
Step 9: Stop
Read data
No
Is author
name=
author?
Yes
Display the data
No Is EOF
reached?
Yes
Close data file
Stop
Prepared By: Sajjan Gautam 24
Algorithm to filter the data with price
Step 1: Start
Step 2: Open data file “Lib.dat” in input mode
Step 3: Input beginning and final price: b, f
Step 4: Read data from file
Step 5: Is b>price and f<price?
If yes then go to step 6
If no then go to step 7
Step 6: Print data
Step 7: Is EOF reached?
If yes then go to step 8
If no then go to step 3
Step 8: Close data file
Step 9: Stop
Read data
No
Is b>price
and f<price?
Yes
Display the data
No Is EOF
reached?
Yes
Close data file
Stop
Prepared By: Sajjan Gautam 26
Algorithm to delete record
Step 1: Start
If no then go to step 7
If no then go to step 5
Start
Read data
Yes
Is code=new code?
No
Write data
No
Is EOF reached?
Yes
Close data file
Stop
Display menu
No
Is choice
=1-5 Display invalid
choice
Yes
1 2 3 4
Update author name Update book code Update book price Update book number
Algorithm to Stop
update author name
If no then go to step 8
If no then go to step 5
Step 4: Input new book code and book name: code, book
If no then go to step 8
If no then go to step 5
Start
Read data
No
Is book=book name?
Yes
Book code= code
No
Is EOF reached?
Yes
Close data file
Stop
Step 4: Input new book price and book name: price, book
If no then go to step 8
If no then go to step 5
Start
Read data
No
Is book=book name?
Yes
Book price= price
No
Is EOF reached?
Yes
Close data file
Stop
Step 4: Input new book number and book name: num, book
If no then go to step 8
If no then go to step 5
Start
Read data
No
Is book=book name?
Yes
Book number= num
No
Is EOF reached?
Yes
Close data file
Stop
Output screen:
Sub add ()
Open "lib.dat" For Append As #1
top:
Input "Enter name of book"; n$
Input "Enter name of author"; a$
Input "Enter code of book"; c
Output screen:
Output screen:
Output Screen:
Output Screen: