0% found this document useful (0 votes)
13 views4 pages

Flowchart Library.drawio (1)

The document outlines a flowchart for managing a library system, detailing processes for user account creation, login, book management, and borrowing procedures. It includes steps for both admin and member interactions, such as validating credentials, managing member and book records, and handling book returns. The flowchart concludes with closing the connection to the MySQL database after all operations are completed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

Flowchart Library.drawio (1)

The document outlines a flowchart for managing a library system, detailing processes for user account creation, login, book management, and borrowing procedures. It includes steps for both admin and member interactions, such as validating credentials, managing member and book records, and handling book returns. The flowchart concludes with closing the connection to the MySQL database after all operations are completed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

FLOWCHART

Start

Connect with MySQL

Create admin.csv file and


add admin details into it

Establish Connection to
"library" database

Yes Ask the user if he/she has an account

Login to the account No

Login as Admin

Create a member
account
Login as Member

Prompt the user


Prompt the user
Prompt the user for User ID,
for admin User ID
for member User ID, password and
and password
password and mobile number
mobile number

Validate the mobile


number format
Is 10 digit?
Verify the member credentials by Verify the admin credentials by
reading from the member.csv file reading from the admin.csv file

n y

user = "Member"

Add these details to


member.csv file
user = "Admin"

Get the current date from


the database
Manage members

Execute sql query to


fetch the current date
Execute query to fetch
the total days in the
current month from the
calendar table
Add members Remove members
Extract the day, month
and year from the
fetched date
Number of Number of
members to add members to remove Update Books

Capture member details


for each member
Capture member's User ID Number of
This includes User ID,
for each member Books to be updated
password and
mobile number

Prompt for Book name


Writes the details of each and author
member except the removed This is to identify the book
Writes the details each
member into the temp.csv file from the table
into the member.csv file

What to update
for the particular
Deletes the member.csv file
and renames the temp.csv file book
into member.csv

Manage books Update the Update the Update the


author of genre of the number of copies
the book book available

Add Books Remove Books

Number of Number of
Books added Books added Update the corresponding
details in the library_books table

Capture book details


Capture book details
for each book
for each book
This includes book name,
This includes Book ID,
author, genre,
name, author Handle the returning of a
available copies, price
borrowed book

Add book to Remove book from the


library_books table library_books table Prompt for
member User ID

Enter the book ID for Displays all the books


each book returned currently borrowed by the
one at a time member
The delay in the
Have you received Is the returned book
submission (if any)
the book? (y/n): damaged? (y/n):
is calculated

y n y n

All the factors is


The book is then added accounted for and fine
to the table is calculated
library_books

After returning the required


The user's status as the borrower After user paid fine; the user's status
books;
of the particular received book as the borrower of the books not
the total fine (if any)
has been removed received has been removed
is displayed

Displays member's
dashboard

Search by Search by Search by genre Explore books Reissue/renew


List all books
Book name author a book

Shows the book Shows the book


Shows the book with the author with the genre Shows 2 random book Shows all the books
with the name you searched for you searched for from each genre in the database
you searched for

Select a book
based on the
displayed results

Prompt the user to


enter the borrow
Read the book Borrow the book
duration in weeks
or days

Decrease the available Calculate the due date


copies of the book by 1 Add the selected book to the based on the borrow
in the library_books table user's cart duration
It can hold upto a max of 3
books
You can now read the book Insert the borrowing details into the
Display the user's borrowers table
on-site and return it before
cart and total price these details include:
exiting the library
User ID of the member, Book ID,
Book name, Author, Price, due date, phone
number of the borrower

Decrease the available


copies of the book by 1
in the library_books table

The necessary Enter the Book ID Displays all the books


details on the borrowed of the book currently borrowed by the
book is shown to be reissued user

Extend the You can extend it The new due date The due date marked in
duration by by a maximum of is appropriately the borrowers table is
weeks or days 14 days or 2 weeks calculated updated to the new value

Close the connection


with MySQL database

End

You might also like