Computer Science Projec1
Computer Science Projec1
Submitted by
Mohammed Zuwair Ahmed
Class XII-A
Admission no: 90588
Submitted to
Mrs.farida Dawood
CONTENT
§ Introduction
§ Abstract
§ Python Libraries
§ Functions Used
§ Code
§ Output
§ Conclusion
INTRODUCTION
Python is a high level, object-oriented
programming language. It was developed in
1991 by Guido Van Rossum. Python too
supports file handling and allows users to
handle files i.e., to read and write files,
along with many other file handling
options, to operate on files. Files are used to
store data ina storage device permanently.
The concept of file handling has stretched
over various otherlanguages, but the
implementation is either complicated or
lengthy, but like other concepts of Python,
this concept here is also easy and short.
Python treats files differently as text or
binary and this is important. Each line of
code includes a sequence of characters and
they form a text file. Each line of a file is
terminated with a special character, called
the EOL or End of Line characters like
comma
{,} or newline character. It ends the current
line and tells the interpreter a new one has
begun.
ABSTRACT
The Tour Package Information System
program is a program used to store the
details of the customers as a data to display
detailed data and to search for a specific
customers detail. It can highly be used by
travel agency people. This program uses
binary file as its bases and stores values
more effectively. It uses python module,
pickle which helps in serializing and de-
serializing the object structure safely and
securely. This program isuser friendly, i.e.,
people of any age group can access it anytime
and anywhere. The goal of this project is to
develop a system for the computerization of
the Travel agencies. The common
transactions of these agencies include
customer details, tour circuit details,
categorizing & organizing the trip, payment
details, etc. are stored into the databases
and are generated according to the user
requirement.
HARDWARE AND SOFTWARE REQUIREMENTS
HARDWARE
This project uses the following
hardware:
Modern Operating System:
Windows 7 or 10
Mac OS X 10.11 or higher, 64-bit
Linux: RHEL 6/7, 64-bit
x86 64-bit CPU (Intel / AMD architecture)
4 GB RAM
5 GB free disk space
SOFTWARE
This project uses the following software:
Operating system
Ø Linux
Program
s
Ø Python IDLE 3.6 (or newer)
Ø Notepad
PYTHON LIBRARIES
sno=x
name=input("\nEnter your name :")
age=int(input("Enter your age :"))
gen=input("enter your gender :")
data=[sno,name,age,gen,ad,ph_no]
s_package.append(data)
pickle.dump(s_package,file)
def n_details1():
ppl=int(input("Enter no.of people :"))
ph_no=phone()
ad=input("Enter your
address :")for x in
range(1,ppl+1):
sno=x
name=input("\nEnter your name
:")age=int(input("Enter your age
:")) gen=input("enter your gender
:")
data=[sno,name,age,gen,ad,ph_no]
n_package1.append(data)
pickle.dump(n_package1,fi
le)def n_details2():
ppl=int(input("Enter no.of people
:"))
ph_no=phone()
ad=input("Enter your
address :")for x in
range(1,ppl+1):
sno=x
alt="y"
while alt=="y":
print("sno","\t","name","\t","age","\t","gender",
"\t", "add ress","\t","phone number")
while True:
x=pickle.load(file
3)for i in x:
print(i[0],"\t",i[1],"\t",i[2],"\t",i[3],"\t",i[4],
"\t",i[ 5])
except EOFError:
alt=input("\nDo you want to
see the packages again?(y/n)")
file3.close()
print("\nWe celebrate our customers with
success, not failure~~visit us soon~~")
output
1.Welcome screen
x-x-x-x-x-x-x-x-x-x-x-x-x-x-x
|welcome to|
|Hira Travels|
x-x-x-x-x-x-x-x-x-x-x-x-x-x-x
planning a trip? à--Seek to us first!
1.See the plan
2.Search a
record
3.Display all the values
2.Add details
Enter your
option:1 1.south
india tour
2.north india
tour 3.west
india tour
4. east india tour
Tour Circuit
Chennai\palakkad\bangluru\chennai
\7D\8DEnter no of people:
Enter your phone number:XXXXXX
Enter your address:XXX
3. Search a customer
5. Search a customer