Sodapdf
Sodapdf
PROJECT REPORT ON
ROLL NO : 12112
CLASS : XII
1
kendriya Vidyalaya Ambernath
CERTIFICATE
2
TABLE OF CONTENTS [ T O C ]
SER DESCRIPTION
01 ACKNOWLEDGEMENT
02 INTRODUCTION
04 FLOW CHART
05 SOURCE CODE
06 OUTPUT
08 BIBLIOGRAPHY
3
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.
4
PROJECT ON DAILY TRAVEL BOOKING
INTRODUCTION
This software is helpful to citizens ,being exploring in nature and also in urgency to
go for a board towards achieving their respective objectives . For booking the transport
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
5
FLOW CHART
START
conn=sql.connect(host='localhost',user='root',password='manager',database
='travel_booking')
c1=conn.cursor()
conn.autocommit==True
n=str(n)
today=n[5:]
6
print(' ','________TRAVEL DAILY welcomes U!!!!!!__________')
print()
print(' ',n)
print()
print('Press 1 to Login')
if choice
==1:
7
a=int(input('Enter your phone number='))
c1.execute(u)
datan=c1.fetchall()
s=c1.rowcount
s=abs(s)
if s!==1:
print()
print("***********************ACCOUNT DOESN'T
EXIST************************")
8
print()
name=str(input('Name='))
c1.execute("insert into
accounts(Phone_number,password,name )values(" +
str(phone_number) +",'" +password + "',' "+name+" ')")
9
phone_number=int(input('Phone Number='))
name=str(input('Name='))
conn.commit()
10
print('Account sucessfully Created')
import sys
if
choice==3:
import sys
sys.exit()
11
else:
print()
print()
print("*************
STOP
12
SOURCE CODE
DATABASE CREATION:
conn=sql.connect(host='localhost',user='root',password='manage
r',database='travel_bookings')
c1=conn.cursor()
if conn.is_connected:
TABLE 1 CREATION:
conn=sql.connect(host='localhost',user='root',password='manage
r',database='travel_bookings')
c1=conn.cursor()
conn.commit()
TABLE 2 CREATION:
conn=sql.connect(host='localhost',user='root',password='manage
r',database='travel_bookings')
c1=conn.cursor()
13
accounts(Phone_number),Your_location
varchar(30),Your_destination varchar(30),time
varchar(30),Driver varchar(60),Urgency
varchar(30),date_booked varchar(90));')
conn.commit()
conn=sql.connect(host='localhost',user='root',password='manage
r',database='travel_booking')
c1=conn.cursor()
conn.autocommit==True
n=str(n)
today=n[5:]
print()
print(' ',n)
print()
print('Press 1 to Login')
print('Press 4 to Exit')
print()
14
if choice ==1:
print()
c1.execute(u)
datan=c1.fetchall()
s=c1.rowcount
s=abs(s)
if s!= 1:
print()
print("***********************ACCOUNT
DOESN'T EXIST************************")
print()
create=int(input("Press 32 to create
account {{or}} Press 0 to exit="))
if create==32:
phone_number=int(input('Phone
Number='))
name=str(input('Name='))
c1.execute("insert into
accounts(Phone_number,password,name )values(" +
str(phone_number) +",'" +password + "',' "+name+" ')")
conn.commit()
import sys
15
sys.exit()
else:
import sys
sys.exit()
datan=datan[0]
datan=list(datan)
datan= datan[0]
datan= str(datan)
#selecting password
c1.execute(y)
data=c1.fetchall()
data=data[0]
data=list(data)
data=data[0]
if b!=data:
print()
print("***********************INVALID
PASSWORD**************************")
conn.commit()
16
if b==data:
print()
print("LOGGED IN !!!!!")
print()
print("HI",datan,"!!")
print()
print()
print('13.Bill verification')
print('0.Exit')
print()
if choice1==0:
print()
import sys
sys.exit()
if choice1==12:
your_location=input('Your_location=')
your_destination=input('Your_destination=')
17
driver=input("driver gender
preferences=")
urgency=input('urgency(yes/no)=')
c1.execute("insert into
customer_bookings values(" + str(a) +",' " + your_location +
" ' ,' "+your_destination+ " ' ,' "+time+ " ' ,' "+driver+" '
,' "+urgency+" ',' "+today+" ' )")
conn.commit()
print()
import sys
sys.exit()
if choice1==13:
Dist=int(input('distance travelled
[km]='))
bill=Dist*5
if choice1==14:
c1.execute("select
your_destination,date_booked from customer_bookings where
phone_number like '"+str(a)+"';")
data=c1.fetchall()
print(row[0],'- {',row[1],'}')
conn.commit()
import sys
sys.exit()
18
if choice!=14 and 12 and 13:
print()
print()
print("********************INVALID
CHOICE**********************")
import sys
sys.exit()
if choice==2:
phone_number=int(input('Phone Number='))
name=str(input('Name='))
c1.execute("insert into
accounts(Phone_number,password,name )values(" +
str(phone_number) +",'" +password + "',' "+name+" ')")
conn.commit()
import sys
sys.exit()
if choice==3:
conn.commit()
print()
19
print("**************************************SUCCESSFULLY
ACCOUNT DELETED**************************************")
import sys
sys.exit()
if choice==4:
import sys
sys.exit()
print()
print()
print("********************INVALID
CHOICE**********************")
20
OUTPUT
1.
2.
21
3.
4.
22
HARDWARE AND SOFTWARE REQUIREMENTS
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python.
INSTALATION PROCEDURE
Pre-Requisites :-
23
1. You have to have the following softwares for the successful running of this
software; which are
Installation :-
1. There will be two folders namely 'Python Files' and 'EXE files'.
2. The folder 'Python Files' will contain the source code of the software in python
language. If you are running the software by the 3rd step mentioned below you have
to pre install the following modules :-
I) mysql.connector
II) matplotlib.
3. Open the files in any python editors and run it to start and work on the
software.
4. The folder 'EXE files' will contain two files namely 'main.exe' and
'Tables_in_mysql.exe'.
24
5. First run the 'Tables_in_mysql.exe' to create the tables in MySQL.
1. Then run the file 'main.exe' to start and work on the software.
CAUTION :-
If you are running the software through running the python files or by running
the .exe files ; first run the file named 'Tables_in_mysql'.
BIBLIOGRAPHY
25
3. By : Dipankar Sonawane
4. Website: https://www.w3resource.com
***
26