Gas - Management - System
Gas - Management - System
ON
ITARSI(M.P)
SUBMITTED BY:
1) ARYAN SINGH [Roll No- ]
………………………… ……………………………..
Signature of Student Signature of Teacher/Guide
YADAV
Roll No.: Designation: PGT
(Comp.Sc.)
……….…………………
Signature of Principal
Name: MR. VIKASH MAAN
PLACE:
SILIGURI
DATE:
05/01/2025
ACKNOWLEDGEMENT
CONTENTS
1. Introduction-----------------------------------------------
2. Theoretical Background------------------------------
3. Problem Definition & Analysis----------------------
4. System Implementation-------------------------------
4.1 The Hardware used:----------------------------------
4.2 The Softwares used:----------------------------------
5. System Design & Development---------------------
5.1 Database Design:-------------------------------------
5.2 Coding:---------------------------------------------------
6. References ------------------------------------------------
1. Introduction
Python is a widely used general-purpose, high level programming language. It was created by
Guido van Rossum in 1991 and further developed by the Python Software Foundation. It was
designed with an emphasis on code readability, and its syntax allows programmers to express
their concepts in fewer lines of code.
Python is a programming language that lets you work quickly and integrate systems more
efficiently.
There are two major Python versions: Python 2 and Python 3. Both are quite different.
Learning Python gives the programmer a wide variety of career paths to choose from. Python is
an open-source (free) programming language that is used in web programming, data science,
artificial intelligence, and many scientific applications. Learning Python allows the
programmer to focus on solving problems, rather than focusing on syntax. Its relative size and
simplified syntax give it an edge over languages like Java and C++, yet the abundance of
libraries gives it the power needed to accomplish great things.
2. Theoretical Background
2.1 What is Database?
♦ The data stored can be sorted or indexed at the user's discretion and direction.
♦
Various reports can be produced from the system. These may be either standardized report
or that may be specifically generated according to specific user definition.
♦ Mathematical functions can be performed and the data stored in the database can be
manipulated with these functions to perform the desired calculations.
♦ To maintain data integrity and database use.
The DBMS interprets and processes users' requests to retrieve information from a database. In most
cases, a query request will have to penetrate several layers of software in the DBMS and operating
system before the physical database can be accessed. The DBMS responds to a query by invoking
the appropriate subprograms, each of which performs its special function to interpret the query, or
to locate the desired data in the database and present it in the desired order.
✔ Creation of a document that describes the external behavior and the association constraints
that will satisfies those needs.
✔ Evolution of needs.
✔ The proposed system should maintain all the records , and should generate the required
reports and information when required.
✔ To provide efficient and secured Information storage, flow and retrieval system, ensuring
the integrity and validity of records.
✔ To provide graphical and user-friendly interface to interact with a centralized database based
on client-server architecture.
✔ To identify the critical operation procedure and possibilities of simplification using modern
IT tools and practices.
4. System Implementation
SOFTWARE SPECIFICATION:-
Operating System : Windows 7
Platform : Python IDLE 3.7
Database : MySQL SERVER 5.1
Languages : Python
HARDWARE SPECIFICATION:-
CODING:
conn=sql.connect(host='localhost',user='root',passwd='ADMINISTRATO
R12345',database='gasin') if conn.is_connected():
print("connected") mycursor=conn.cursor()
(0,999999999999999):
print("1.CREATE ACCOUNT")
PARTICULAR CUSTOMER")
print("6.TOINSERT MULTIPLE
VALUES") print("7.enter 0 to
log out")
choice=int(input("enter your
information:")) if choice==1:
datetime v_date=datetime.datetime.now()
choice==2:
re=mycursor.fetchall() print("YOUR
print(x)
== 3:
v_cng='cng',v_amtobe_paid='amont',where customer
='customer_name'") cho=int(input("if
1:")) if cho==1:
remaining=v_credit-amount
mycursor.execute ("updata gasin set
v_credit=('remaining'),v_date=('date') where
v_customer='customer_name'")
print("INVALID CODE")
if ch==2:
remain=v_credit-pay
total=80*lpgas+75*cngas print("the
v_lpg='lpgas',v_cng='cngas',v_amtobe_paid='total
if chio==1:
remaind=v_credit-total
v_credit='remaind',v_date='date'where
choice==4:
choice==5:
print(x)
continue elif
choice==6:
v_customer=input("enter the name customer ")
values(v_customer,v_accno,'(date)', 'v_add',44453,1009900)")
break
conn.commit()
OUTPUT
6. References
In order to work on this project titled STOCK MANAGEMENT, the following books and literature
are refered by me during the various phases of development of the project.
(1) http://www.mysql.org/
(2) http://www.python.org/
Website: https://www.w3resource.com
Other than the above-mentioned books, the suggestions and supervision of my teacher and my class
experience also helped me to develop this software project.