Investigatory Project Cs
Investigatory Project Cs
PROJECT
COMPUTER
SCIENCE
TABLE OF
CONTENTS
S.No. Topic Page No.
1 Project Synopsis 5
2 Objective 7
3 Requirements 8
4 References 9
5 General Information 10
6 Code
7 Output
ACKNOWLEDGEM
ENT
I would like to express my greatest
appreciation to the all individuals who have
helped and supported me throughout the
project. I am thankful to my computer
teacher for her ongoing support during the
project, from initial advice, and
encouragement, which led to the final report
of this project.
PROJECT
SYNOPSIS
TITLE OF PROJECT
Travel Booking System
DEFINITION
Travel Booking System is an all in one application
designed and programmed with the sole aim of
helping the users to book a travel to
Contribution / Team
members:
The role wise composition of our team was:
TABLE 1 CREATION:
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manage
r',database='travel_bookings')
c1=conn.cursor()
c1.execute('create table accounts(Phone_number bigint(13)
primary key,name varchar(30),password bigint(10));')
conn.commit()
TABLE 2 CREATION:
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manage
r',database='travel_bookings')
c1=conn.cursor()
c1.execute('create table customer_bookings(Phone_number
bigint(13) ,FOREIGN KEY(Phone_number) REFERENCES
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:]
U!!!!!!__________')
print()
print(' ',n)
print()
print('Press 1 to Login')
print('Press 4 to Exit')
print()
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(" +
conn.commit()
import sys
sys.exit()
datan=datan[0]
datan=list(datan)
datan= datan[0]
datan= str(datan)
#selecting password
phone_number =({})".format(a)
c1.execute(y)
data=c1.fetchall()
data=data[0]
data=list(data)
data=data[0]
if b!=data:
print()
print("***********************INVALID
PASSWORD**************************")
conn.commit()
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=')
driver=input("driver gender
preferences=")
urgency=input('urgency(yes/no)=')
c1.execute("insert into
conn.commit()
print()
AT',time,"********************************")
import sys
sys.exit()
if choice1==13:
Dist=int(input('distance travelled
[km]='))
bill=Dist*5
if choice1==14:
c1.execute("select
data=c1.fetchall()
print(row[0],'- {',row[1],'}')
conn.commit()
import sys
sys.exit()
print()