Grade 12 CS Project
Grade 12 CS Project
SUBMITTED BY :
CLASS :
ROLL NO :
OLIVE PUBLIC SCHOOL
Affiliated to CBSE,New Delhi
Affiliation No.1931179
Chitlapakkam
Signature of Principal
ACKNOWLEDGEMENT
2 ACKNOWLEDGEMENT II
3 INTRODUCTION 1
5 PROPOSED APPLICATION 3
6 APPLICATION ALGORITHM 4
7 FLOW CHART 9
10 OUTPUT 14
11 SYSTEM REQUIREMENTS 18
12 BIBLIOGRAPHY 18
CONTENTS
Medical Sector Database
1. INTRODUCTION
The code provided is a Python script that manages a database
system for a medical sector under "Nicholas Industries." It
incorporates functionalities for managing medicines, billing
customers, and performing various database operations. The
system utilizes MySQL Connector for interaction with the
database. The script includes functions for creating tables,
adding, displaying, searching, and deleting medicines. It also
manages customer billing, including functionalities for editing,
deleting, and searching bills. The system is divided into sections
for the industry owner (president) and customers (billing), each
offering distinct functionalities and access levels. The
president's section enables management and administration of
the medicines and database, while the customer section is
focused on billing operations. The script utilizes a command-
line interface for user interaction and provides a menu-driven
system for navigating through different functionalities.
2. OBJECTIVE OF THE PROJECT
The objective of the "Medical Sector Database" project is to
create a robust and efficient system that effectively manages
various aspects of a medical sector. The primary objectives
include:
3.PROPOSED APPLICATION
Nicholas Industries login portal is a user-friendly application for
Nicholas Industries' medical sector. It offers:
Admin Dashboard:
Manage medicines: Add, view, update, delete inventory.
Expiry alerts: Notify about expiring medicines.
Company-wise display: Organize medicines by company.
Customer Billing:
Generate bills, add/edit medicines, and delete bills.
Search & display detailed bills for customers.
Key Features:
Secure login for admins and customers.
Real-time updates and notifications.
Efficient MySQL database integration.
Benefits:
Streamlines inventory and billing processes.
Enhances customer experience and data-driven decisions.
4. APPLICATION ALGORITHM
Import Libraries:
Import required libraries (mysql.connector, datetime).
Database Connection:
Create global variables for database connection (mycn) and
cursor (mycur).
Establish a connection to the MySQL database using provided
credentials (localhost, root, password, database name -
NicholasMedicines).
Database Creation:
Create Database Tables:
Execute SQL commands to create two tables if they don't exist:
_medicalproject: Stores medicine details (ProductCode, name,
Packing, Expirydate, Company, Batch, Quantity, Rate).
customertable: Manages customer bills with foreign key
reference to _medicalproject table.
5. FLOWCHART
Start If choice 2 Customer
billing
If choice 3
d
If choice 1
Industry owner
Initialize Database
Connection
Display Main
Menu
Accept User
Choice
If password
correct
Commit changes to
database
Check Billing
Choice
Check
users
choice
Loop for
Industry Owner
Options
END
7. APPLICATION CODE
8. OUTPUT
9. SYSTEM REQUIREMENTS
10. BIBLIOGRAPHY
Computer science textbook for class XII – by NCERT
Computer science with python for class XII by Sumitha Arora