Document145612
Document145612
Document145612
Table of Contents
Acknowledgment
Introduction
Objectives of the Project
Scope of the Project
System Requirements
Software and Tools Used
System Design
ER Diagram
Data Flow Diagram (DFD)
Flowchart
Database Design
Modules of the Project
Source Code
Output Screenshots
Testing and Validation
Limitations
Future Scope
Conclusion
1. Acknowledgment
I would like to express my gratitude to my Computer Science teacher [Teacher's
Name] for their guidance and support throughout this project. I would also like to
thank my school administration and parents for providing the necessary resources
and motivation.
2. Introduction
The Book Shop Management System is a software project designed to automate and
streamline operations in a bookshop. Using Python and MySQL, this project manages
book details, stock, and sales efficiently.
5. System Requirements
Hardware Requirements
Processor: Intel i3 or higher
RAM: 4 GB or higher
Hard Disk: 20 GB free space
Display: Monitor with 1366x768 resolution
coding.
MySQL: The relational database management system (RDBMS).
mysql-connector-python: Python library to connect with MySQL.
Tabulate: Library to display data in table format.
Text Editor/IDE: IDLE, VS Code, or PyCharm.
7. System Design
7.1 ER Diagram
The ER diagram (Entity-Relationship Diagram) is as follows:
scss
Copy code
[Book]
- Book_ID (Primary Key)
- Title
- Author
- Price
- Quantity
[Sales]
- Sale_ID (Primary Key)
- Book_ID (Foreign Key)
- Quantity_Sold
- Sale_Date
7.2 Data Flow Diagram (DFD)
Level 0 DFD
sql
Copy code
+-----------------------------+
| Book Shop Management System |
+-----------------------------+
/ \
User Database
Level 1 DFD
css
Copy code
[Add Book] --> [Database]
[Search Book] --> [Database]
[Update Book] --> [Database]
[Delete Book] --> [Database]
7.3 Flowchart
Below is the flowchart for the main functionalities:
sql
Copy code
+-------------------+
| Start |
+-------------------+
|
+-----------------------+
| Display Main Menu |
+-----------------------+
/ | \
Add View Search
| | |
Update DB Display Fetch Data
\ | /
+-------------------+
| Exit |
+-------------------+
8. Database Design
Books Table
Column Name Data Type Constraints
Book_ID INT PRIMARY KEY
Title VARCHAR(100) NOT NULL
Author VARCHAR(100) NOT NULL
Price FLOAT NOT NULL
Quantity INT DEFAULT 0
Sales Table
Column Name Data Type Constraints
Sale_ID INT PRIMARY KEY
Book_ID INT FOREIGN KEY
Quantity_Sold INT NOT NULL
Sale_Date DATE DEFAULT CURRENT_DATE
9. Modules of the Project
Add Book: Adds a new book into the database.
View Books: Displays all book details.
Search Book: Fetches details of books matching the search query.
Update Book: Updates price, quantity, and other fields.
Delete Book: Deletes a book record.
Record Sales: Updates quantity sold and stock.
10. Source Code
Database Connection
python
Copy code
import mysql.connector
def get_connection():
conn = mysql.connector.connect(
host="localhost",
user="root",
password="password",
database="bookshop"
)
return conn
(Include the detailed code for Add, View, Search, Update, and Delete functions. I
shared this earlier.)
This report, when neatly formatted with proper headings and screenshots, will be
15-20 pages long. Let me know if you need additional enhancements! ??