Gasmgmt (Project10
Gasmgmt (Project10
2 FARIDABD
PROJECT REPORT ON
ROLL NO :
NAME :
CLASS : XII
PGT (CS)
KV NO. 2 FARIDABD
1
KV NO. 2 FARIDABD
CERTIFICATE
GAS MANAGEMENT SYSTEM in the subject Computer Science (083) laid down in
the regulations of CBSE for the purpose of Practical Examination in Class XII
Shashi Adlakha
PGT Comp Sci
Master IC
Name: __________________________
2
TABLE OF CONTENTS
01 ACKNOWLEDGEMENT 04
02 INTRODUCTION 05
04 PROPOSED SYSTEM 06
07 FLOW CHART 15
08 SOURCE CODE 16
09 OUTPUT 19
10 TESTING 20
3
12 BIBLIOGRAPHY 24
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on
the encouragement and guidelines of many others. I take this opportunity to express
my gratitude to the people who have been instrumental in the successful completion
of this project.
I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project.
The guidance and support received from all the members who contributed
and who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
4
SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)
INITIATION PHASE
7
PICTORIAL REPRESENTATION OF SDLC:
PLANNING PHASE
8
of operations, system security, verification and validation, and systems engineering
management planning.
This phase formally defines the detailed functional user requirements using
high-level requirements identified in the Initiation, System Concept, and Planning
phases. It also delineates the requirements in terms of data, system performance,
security, and maintainability requirements for the system. The requirements are
defined in this phase to alevel of detail sufficient for systems design to proceed. They
need to be measurable, testable, and relate to the business need or opportunity
identified in the Initiation Phase. The requirements that will be used to determine
acceptance of the system are captured in the Test and Evaluation MasterPlan.
Further define and refine the functional and data requirements and document
them in the Requirements Document,
Complete business process reengineering of the functions to be supported
(i.e., verify what information drives the business process, what information is
generated, who generates it, where does the information go, and who
processes it),
Develop detailed data and process models (system inputs, outputs, and the
process.
Develop the test and evaluation requirements that will be used to determine
acceptable system performance.
DESIGN PHASE
DEVELOPMENT PHASE
Testing as a deployed system with end users working together with contract
personnel
This phase is initiated after the system has been tested and accepted by the
user. In this phase, the system is installed to support the intended business
functions. System performance is compared to performance objectives established
during the planning phase. Implementation includes user notification, user training,
installation of hardware, installation of software onto production computers, and
integration of the system into daily work processes. This phase continues until the
system is operating in production in accordance with the defined userrequirements.
12
FLOW CHART
START
for i
in
rang
print("1.CREATE ACCOUNT")
elif
eli
if elif ch elif
f
choi choi oic choi
ch
ce== ce== e ce=
oic
2:
input("ENTER THE
input("enter the namecustomer") NAME OF CUSTOMER:") mycursor.fetchall()
input("enter your account mycursor.execute("select *
number:")
from gasin")
input("enter your complete
address:")
print("YOUR RESULT IS ") input("ENER yOUR
input("enter your debit card
NAME")
number:")
print("CHOOSE A CHOICE :")
print("1. C N G ..Rs.75/l")
mycursor.fetchall
Your account is created print("2.L P G .Rs.80/l") ()
13
if if if
ch ch c
== == h
80*lpg
1:"))
if
if chio==
cho
==1
remaind=v_credit-total
print("your record is updated")
print("your record
is updated")
elif elif
choi ch
ce== oic
print("data inserted")
STOP 14
SOURCE CODE
import mysql.connector as sql , datetime as dt
conn=sql.connect(host='localhost',user='root',passwd='ADMINIST
RATOR12345',database='gasin')
if conn.is_connected():
print("connected")
mycursor=conn.cursor()
if (passw == passwd) :
else:
print("invalid")
print("1.CREATE ACCOUNT")
15
choice=int(input("enter your choice as per the above
information:"))
if choice==1:
import datetime
v_date=datetime.datetime.now()
continue
elif choice==2:
re=mycursor.fetchall()
for x in re:
print(x)
continue
elif choice == 3:
import datetime
v_date=datetime.datetime.now()
date = v_date
16
print("the date & time is:",v_date)
print("1. C N G ......Rs.75/l")
print("2.L P G .......Rs.80/l")
if ch==1:
amount= 75*cng
v_cng='cng',v_amtobe_paid='amont',where customer
='customer_name'")
if cho==1:
remaining=v_credit-amount
v_credit=('remaining'),v_date=('date') where
v_customer='customer_name'")
else:
print("INVALID CODE")
if ch==2:
17
lpg=int(input("enter the amount bought by the
customer:"))
pay = 80*lpg
v_lpg='lpg',v_amtobe_paid='pay' where
v_customer='customer_name'")
if choo==1:
remain=v_credit-pay
v_credit='remain',v_date='date'where v_customer
='customer_name'")
if ch==3:
total=80*lpgas+75*cngas
v_lpg='lpgas',v_cng='cngas',v_amtobe_paid='total' where
v_customer='customer_name'")
18
if chio==1:
remaind=v_credit-total
v_credit='remaind',v_date='date'where v_customer
='customer_name'")
elif choice==4:
se = mycursor.fetchall()
for x in se:
print(x)
continue
elif choice==5:
mycursor.execute("select v_credit ,
v_customer='customer_name'")
record=mycursor.fetchall()
for x in records:
print(x)
continue
elif choice==6:
import datetime
v_date=datetime.datetime.now()
date = v_date
19
v_debit=input("enter your debit card number:")
values(v_customer,v_accno,'(date)', 'v_add',44453,1009900)")
print("inserted")
continue
elif choice==0:
break
conn.commit()
20
OUTPUT
21
TESTING
TESTING METHODS
Software testing methods are traditionally divided into black box testing and
white box testing. These two approaches are used to describe the point of view that
a test engineer takes when designing test cases.
SPECIFICATION-BASED TESTING
22
specified in the test case. Specification-based testing is necessary, but it is
insufficient to guard against certain risks
The black box tester has no "bonds" with the code, and a tester's perception
is very simple: a code must have bugs. Using the principle, "Ask and you shall
receive," black box testers find bugs where programmers don't. But, on the other
hand, black box testing has been said to be "like a walk in a dark labyrinth without a
flashlight," because the tester doesn't know how the software being tested was
actually constructed.
That's why there are situations when (1) a black box tester writes many test
cases to check something that can be tested by only one test case, and/or (2) some
parts of the back end are not tested at all. Therefore, black box testing has the
advantage of "an unaffiliated opinion," on the one hand, and the disadvantage of
"blind exploring," on the other.
White box testing, by contrast to black box testing, is when the tester has
access to the internal data structures and algorithms (and the code that implement
these)
23
White box testing methods can also be used to evaluate the completeness of
a test suite that was created with black box testing methods. This allows the software
team to examine parts of a system that are rarely tested and ensures that the most
important function points have been tested.
24
HARDWARE AND SOFTWARE REQUIREMENTS
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
25
26
BIBLIOGRAPHY
***
27