Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

JAIRAM PUBLIC SCHOOL (SENIORSECONDARY)SALEM.

ACADEMIC YEAR: 2023-2024

A PROJECT REPORT ON

“AIR LINE RESERVATION ”

SUBMITTED BY
ROLL NO :
NAME : SRI KRISHNA.B
CLASS : XII
SUBJECT : COMPUTERSCIENCE
SUB CODE : 083

PROJECT GUIDE: Mr. M.VISWANATHAN

PGT (COMPUTER SCIENCE)

DEPARTMENT OF COMPUTER SCIENCE

JAIRAM PUBLIC SCHOOL

SALEM.

1
JAIRAM PUBLIC SCHOOL SALEM

CERTIFICATE

This is to certify that Cadet (SRI KRISHNA. B) Roll No:

_______________________has successfully completed the project work entitled “ AIR

LINE RESERVATION ” in the subject Computer Science (083) laid down in the

regulations of CBSE for the purpose of Practical Examination in Class XII to be held in

Jairam Public School on ___________________.

INTERNAL GUIDE PRINCIPAL

INTERNAL EXAMINER EXTERNAL EXAMINER

2
ACKNOWLEDGEMENT

Apart from the efforts for me, the success of my 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.

I express my heartfelt gratitude to my parents for constant encouragement while


carrying out this project.

I express my sincere gratitude to our honorable Principal Mr. I. PAUL FRANCIS


XAVIER, Jairam Public School who has been continuously motivating and extending their
helping hand to us.

I express my sincere thanks to our CO-ORDINATORS, Jairam Public School


Salem, for constant encouragement and the guidance provided during this project.

My sincere thanks to Mr. M.VISWANATHAN, A guide, Mentor all the above a


friend, who critically reviewed my project and helped in solving each and every problem,
occurred during implementation 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.

3
CONTENTS
ABSTRACT

1. INTRODUCTION …………………………………… 6

2. SYSTEM REQUIREMENTS ……………………………. 7

2.1 Hardware Requirements

2.2 Software Requirements

3. WORKING DESCRIPTION ……………………………. 8

4. SOURCE CODE …………………………………………... 9

5. OUTPUT …………………………………………………. 13

6. CONCLUSION …………………………………………… 15

7. BIBLIOGRAPHY ……………………………………. 16

4
FOOD ORDER PROCESSING SYSTEM

ABSTRACT:

The Airline reservation Processing Management is very useful in ordering tickets, food

and keeping the record of ordered tickets well as the record of the customer of your

service. It helps the customer also to keep check on their own account.

5
INTRODUCTION

1.INTRODUCTION

Online Airline reservation system is to allocate an option to

customers to book the tickets online and to check the testimony online. This

system will help company to dispose of the flight tickets online. Before the

ARS people find many problems that the people come to the airport and

save their seats and as well as inquire the time of flight from representative.

To overcome these difficulties the “Online Airline Reservation System” was

introduced.

6
SYSTEM REQUIREMENTS

2. HARDWARE AND SOFTWARE REQUIREMENTS

2.1 HARDWARE REQUIREMENTS

PROCESSOR : Intel(R) Pentium(R) CPU G4400.

MOTHERBOARD : H110M-S2-CF

RAM : 4.00 GB

HARD DISK : 250 GB

MONITOR

KEYBOARD AND MOUSE

PRINTER

2.2 SOFTWARE REQUIREMENTS

OPERATING SYSTEM : Windows10

FRONT-END : Python 3.9

BACK-END : My SQL

7
3.WORKING DESCRIPTION

This program is designed to keep the AIR LINE RESERVATION SYSTEM.

This program consists of EIGHT options as follows

1. To enter the customer data


2. For ticket amount
3. For viewing food menu
4. For food bill
5. For luggage bill
6. For complete amount
7. For exit

8
4.SOURCE CODE

air.py

import mysql.connector
con = mysql.connector.connect(host="localhost", user="root", passwd="",
database="air")
mycursor=con.cursor()

def registercust():

L=[]

Custno=int(input(‘Enter customer no=’))

L.append(custno)

Name=input(‘Enter name:’)

L.append(name)

Addr=input(‘Enter address:’)

L.append(addr)

Jr_date=input(‘Enter date of journey:’)

L.append(jr_date)

Source=input(‘Enter source:’)

9
L.append(source)

Destination=input(‘Enter destination:’)

L.append(destination)

Cust=(L)

Sql=’insert into pdata(custno,custname,addr,jrdate,source,destination)


values(%s,%s,%s,%s,%s,%s)’

Mycursor.execute(sql,cust)

Mydb.commit()

Def ticketprice():

L=[]

Cno=int(input(‘Enter custoner no=’))

L.append(cno)

Print(‘We have the following rooms for you:-‘)

Print(‘1. Type First class-→rs 6000 PN\-‘)

Print(‘2. Type Business class-→rs 4000 PN\-‘)

Print(‘3. Type Economy class-→rs 2000 PN\-‘)

10
X=int(input(‘Enter your choice:’))

N=int(input(‘Enter No. Of Passengers:’))

If x==1:

Print(‘you have opted First class.’)

S=6000*n

L.append(s)

Elif x==2:

Print(‘you have opted Business class.’)

S=4000*n

L.append(s)

Elif x==3:

Print(‘you have opted Economy class.’)

S=2000*n

L.append(s)

Else:

Print(‘Please select a class type.’)

Print(‘your ticket charge is =’,s,’\n’)

11
Print(‘Extra luggage charge 100 rs per kg’)

Y=int(input(‘Enter your weight,of extra luggage:’))

Z=y*100

L.append(z)

Tkt=(L)

Print(‘Your Totalbill:’,s+z,’\n’)

G_tot=s+z

L.append(g_tot)

Sql=”insert into tkt (custno,tkt_tot,lug_tot,g_tot) values (%s,%s,%s,%s)”

Mycursor.execute(sql,tkt)

Mydb.commit()

Def dis():

Custno=int(input(“Enter the customer number whose bill to be viewed : “))

Sql=”Select pdata.custno, pdata.custname,


pdata.addr,pdata.source,pdata.destination,tkt.tkt_tot,tkt.lug_tot, g_tot from pdata INNER
JOIN tkt ON pdata.custno=tkt.custno and tkt.custno = %s”

Rl=(custno,)

12
Mycursor.execute(sql,rl)

Res=mycursor.fetchall()

For x in res:

Print(x)

Def dispall():

Sql=”Select pdata.custno, pdata.custname,


pdata.addr,pdata.source,pdata.destination,tkt.tkt_tot,tkt.lug_tot, g_tot from pdata INNER
JOIN tkt ON pdata.custno=tkt.custno”

Mycursor.execute(sql)

Res=mycursor.fetchall()

Print(“The Customer details are as follows : “)

For x in res:

Print(x)

Def Menuset():

Print(‘Enter 1: To enter customer data.’)

Print(‘Enter 2: For ticketamount.’)

Print(‘Enter 3: Display customerwise Details.’)

13
Print(‘Enter 4: Display All Details.’)

Print(‘Enter 5: Exit’)

Userinput=int(input(‘Enter your choice:’))

If userinput==1:

Registercust()

Elif userinput==2:

Ticketprice()

Elif userinput==3:

Dis()

Elif userinput==4:

Dispall()

Elif userinput==5:

Quit()

Else:

Print(‘Enter correct choice.’)

Menuset()

14
Def runagain():

Runagn=input(‘\nWant to run again? y/n:’)

While runagn==’y’:

If platform.system==’windows’:

Print(os.system(‘cls’))

Else:

Print(os.system(‘clear’))

Menuset()

Runagn=input(‘\nWant to run again? y/n:’)

Runagain()

15
5.OUTPUT

16
17
6.CONCLUSION

Hence, the project is successfully tested and executed.

18
7.BIBLIOGRAPHY

1. Computer science With Python - Class XII By : Sumita Arora ,


2. Website: https://www.w3schools.com
https://en.wikipedia.org

19

You might also like