0% found this document useful (0 votes)
13 views16 pages

Aravind - XII C

The document presents a Computer Science investigatory project focused on developing a Tourist Management System, specifically a Library Management System using Python. It includes acknowledgments, project details, hardware and software requirements, an overview of Python, user-defined functions, source code, output screens, and a bibliography. The project aims to streamline the management of tourist information and includes features like billing, travel details, and additional services.

Uploaded by

thanigai8614
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views16 pages

Aravind - XII C

The document presents a Computer Science investigatory project focused on developing a Tourist Management System, specifically a Library Management System using Python. It includes acknowledgments, project details, hardware and software requirements, an overview of Python, user-defined functions, source code, output screens, and a bibliography. The project aims to streamline the management of tourist information and includes features like billing, travel details, and additional services.

Uploaded by

thanigai8614
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

COMPUTER SCIENCE INVESTIGATORY

PROJECT ON

TOURIST MANAGEMENT

Central Board of Secondary Education

Under the guidance of:


Mrs.Mahalakshmi Ramesh
B.Sc ,M.C.A. ,M.Phil ,B.Ed
(Computer science faculty)
Department of Computer Science

Project done by:


THANIGAIVELMURUGAN.T.T
XII-C

Senthil Public School;


(Affiliated to CBSE, New Delhi, Affiliation No.1930323)
Near Vennangudi Muniyappan Kovil, Jagirammapalayam,
Salem-636-302, Tamil Nadu.
Acknowledgement

I am here over whelmed in all humbleness & gratefulness to acknowledge my


depth to all those who have helped me to put these ideas, well above the level of
simplicity & into something concrete.

I would like to express my special note gratitude to my teacher


Mrs.Mahalakshmi Ramesh B.Sc ,M.C.A. ,M.Phil ,B.Ed., for spending many
precious hours in helping me for the quality of the thesis, providing valuable
guidance, motivation & his constant encouragement.
I would like to thank our senior principal Mr.C.Srinivasan M.Sc., M.Ed.,
principal Dr.V.Manoharan M.Sc.,M.Phil.,M.Ed., Ph.D.,& our vice principal Mrs.
Nalini& our Academic Coordinator Mr. Soundararajan who gave me the golden
opportunity to do this wonderful project.

I am thankful to them. Any attempt at any level can't be satisfactorily completed


without the support & guidance of My Parents & My Friends.

I would like to thank my parents who helped me a lot in gathering different


information, collecting data & guiding me from time to time in making this
project, despite of their busy, schedules, they gave me different ideas in making
this project unique .

THANIGAIVELMURUGAN.T.T
INDEX

S.No Content Pg.No


1 About project
2 Hardware and software requirements
3 Python overview
4 File handling
5 Database and Table design
6 Source code
7 Output screen
8 Bibliography
A PROJECT REPORT
ON
SOFTWARE
FOR
TOURIST MANAGEMENT
About the project

Library Management System

In the evolving landscape of information management, the need for efficient and
organized library systems is more crucial than ever. The creation of a robust
Library Management System (LMS) is not only a technological challenge but
also an opportunity to streamline the management of vast collections of literary
works. In this project, we embark on the journey of developing a Library
Management System utilizing the power of binary files.

Easy-to-read − Python code is more clearly defined and visible to the eyes.

Easy-to-maintain − Python's source code is fairly easy-to-maintain.

A broad standard library − Python's bulk of the library is very portable


and cross-platform compatible on UNIX, Windows, and Macintosh.

Interactive Mode − Python has support for an interactive mode which


allows interactive testing and debugging of snippets of code.

Portable − Python can run on a wide variety of hardware platforms and has
the same interface on all platforms.

Extendable − You can add low-level modules to the Python interpreter.


These modules enable programmers to add to or customize their tools to be
more efficient.

Databases − Python provides interfaces to all major commercial databases


User-defined functions in Library Management System

1. Vehicle(vehicle_type, license_plate, entry_time):


Initializes a vehicle object with vehicle type, license
plate number, and entry time.
2. ParkingLot(): Initializes a parking lot object with an
empty dictionary to store vehicles.
3. add_vehicle(vehicle): Adds a vehicle to the parking
lot by storing it in the dictionary with the license plate
number as the key.
4. remove_vehicle(license_plate): Removes a vehicle
from the parking lot by popping it from the dictionary
and calculating the parking fee.
5. get_vehicle_info(license_plate): Returns the vehicle
object associated with a given license plate number.
6. get_all_vehicles(): Returns a list of all vehicles in
the parking lot.
7. get_total_revenue(): Calculates the total revenue
from all vehicles that have exited the parking lot.
HARDWARE AND SOFTWARE REQUIREMENTS

Hardware
Following are the hardware specifications that is required to develop this
project is as follows:
1. Computer components like Monitor, Keyboard, Mouse, CPU, Keyboard.
2. Minimum 1 GB ram for smooth working of application.
3. 250 GB Hard Disk or More. CD ROM Drive.
Software
This is in contrast to physical hardware, from which the system is build and
actually performs the work.
 Front End- Python
 Text Editors- VS Code Editor Operating System
 Windows10
 Ubuntu Linux
PYTHON OVERVIEW

Python is a high-level, interpreted, interactive and object-oriented scripting


language. Python is designed to be highly readable. It uses English keywords
frequently where as other languages use punctuation, and it has fewer
syntactical constructions than other languages.

 Python is Interpreted − Python is processed at runtime by the interpreter.


You do not need to compile your program before executing it. This is
similar to PERL and PHP.
 Python is Interactive − You can actually sit at a Python prompt and
interact with the interpreter directly to write your programs.
 Python is Object-Oriented − Python supports Object-Oriented style or
technique of programming that encapsulates code within objects.
 Python is a Beginner's Language − Python is a great language for the
beginner-level programmers and supports the development of a wide
range of applications from simple text processing to WWW browsers to
games.
 Easy-to-learn − Python has few keywords, simple structure, and a
clearly defined syntax. This allows the student to pick up the language
quickly.
 GUI Programming − Python supports GUI applications that can be
created and ported to many system calls, libraries and windows systems,
such as Windows MFC, Macintosh, and the X Window system of Unix.
 Scalable − Python provides a better structure and support for large
programs than shell scripting.

FILE HANDLING
File handling in Python is the process of working with files, such as reading
from them, writing to them, or manipulating their contents.Python provides a
variety of built in functions and modules for file handling, making it relatively
easy to work with files.

OURCE CODE
import pandas as pd
import random
from datetime import datetime

# Get input from user


num_passengers = int(input("Enter the number of passengers: "))
num_days = int(input("Enter the number of days: "))
plan_type = input("Enter the plan type (International/National): ")
destination = input("Enter the destination: ")

# Get input for each passenger


passengers = []
for i in range(num_passengers):
name = input(f"Enter the name of passenger {i+1}: ")
email = input(f"Enter the email ID of passenger {i+1}: ")
mobile = input(f"Enter the mobile number of passenger {i+1}: ")
passengers.append({"Name": name, "Email": email, "Mobile":
mobile})

# Get the booker's name


booker_name = input("Enter the name of the booker: ")

# Get input for specific destination spots


num_stops = int(input("Enter the number of specific destination spots:
"))
stops = []
for i in range(num_stops):
stop_name = input(f"Enter the name of stop {i+1}: ")
stop_day = int(input(f"Enter the day of the trip for stop {i+1}: "))
stops.append({"Stop Name": stop_name, "Day": stop_day})

# Get input for travel dates


start_date = input("Enter the start date of travel (YYYY-MM-DD): ")
end_date = input("Enter the end date of travel (YYYY-MM-DD): ")

# Create a dictionary to store the information


data = {
"Number of Passengers": [num_passengers],
"Number of Days": [num_days],
"Plan Type": [plan_type],
"Destination": [destination],
"Specific Stops": [", ".join([stop["Stop Name"] for stop in stops])],
"Start Date": [start_date],
"End Date": [end_date]
}

# Create a DataFrame from the dictionary


df = pd.DataFrame(data)

# Print the first table


print(f"Table_{booker_name}:")
print(df)

# Add a new column with random flight numbers


df["Flight Number"] = [random.randint(1000, 9999) for _ in
range(len(df))]

# Add flight details for start and end day


df["Flight Details"] = [f"Flight {df['Flight Number'][0]} on
{start_date} and Flight {df['Flight Number'][0]} on {end_date}"]

# Print the second table


print("\nTable with Flight Numbers and Details:")
print(df)

# Create a new DataFrame for the stay information


stay_data = {
"Day": range(1, num_days + 1),
"Stay": [f"Hotel {i}" for i in range(1, num_days + 1)]
}

# Add specific stops to the stay information


for stop in stops:
stay_data["Stay"][stop["Day"] - 1] = stop["Stop Name"]

stay_df = pd.DataFrame(stay_data)

# Print the third table


print("\nTable with Stay Information:")
print(stay_df)

# Create a new DataFrame for the billing information


billing_data = {
"Day": range(1, num_days + 1),
"Minimum Charge": [7000 for _ in range(num_days)],
"Charge per Day": [random.randint(1000, 2000) for _ in
range(num_days)]
}

# Add flight charges to the billing information


billing_data["Minimum Charge"][0] += random.randint(15000, 20000)
billing_data["Minimum Charge"][-1] += random.randint(15000,
20000)

billing_df = pd.DataFrame(billing_data)

# Print the billing table


print("\nBilling Table:")
print(billing_df)

# Print the total billing amount


total_billing = sum(billing_data["Minimum Charge"])
print(f"\nTotal Billing Amount: {total_billing}")

# Print the passenger information


print("\nPassenger Information:")
for passenger in passengers:
print(f"Name: {passenger['Name']}, Email: {passenger['Email']},
Mobile: {passenger['Mobile']}")

# Generate a random customer number for the booker


customer_number = random.randint(100000, 999999)
print(f"\nCustomer Number: {customer_number}")

# Generate a random customer care number


customer_care_number = random.randint(1000000000, 9999999999)
print(f"\nCustomer Care Number: {customer_care_number}")

# Print the final message


print("\nThe rest of the details of the passengers and travel will be
posted through email.")

# Add additional features


print("\nAdditional Features:")
print("1. Travel Insurance: Yes/No")
print("2. Hotel Upgrade: Yes/No")
print("3. Car Rental: Yes/No")

# Get input for additional features


additional_features = []
for i in range(3):
feature = input(f"Enter your choice for feature {i+1}: ")
additional_features.append(feature)

# Print the additional features


print("\nAdditional Features:")
for i, feature in enumerate(additional_features):
print(f"{i+1}. {feature}")

# Calculate the total cost with additional features


total_cost = total_billing
if additional_features[0] == "Yes":
total_cost += 500
if additional_features[1] == "Yes":
total_cost += 1000
if additional_features[2] == "Yes":
total_cost += 2000

print(f"\nTotal Cost with Additional Features: {total_cost}")

UTPUT SCREEN
Table 1: Travel Information

Number
Numb Specif
of Plan Destinat Start End
er of ic
Passeng Type ion Date Date
Days Stops
ers

Eiffel
Towe
202 202
r,
Internati 3- 3-
2 5 Paris Louvr
onal 02- 02-
e
20 25
Museu
m

Table 2: Flight Information

Flight
Flight Details
Number

Flight 1234 on 2023-02-20 and Flight 1234 on


1234
2023-02-25

Table 3: Stay Information

Day Stay

1 Hotel 1

2 Hotel 2

3 Eiffel Tower

4 Louvre Museum

5 Hotel 3
Table 4: Billing Information

Day Minimum Charge Charge per Day

1 7000 1500

2 7000 1200

3 7000 1800

4 7000 1500

5 7000 1200

Total Billing Amount: $35,000

Passenger Information:

 Name: John Doe, Email: [email protected], Mobile:


1234567890
 Name: Jane Doe, Email: [email protected], Mobile:
9876543210

Customer Number: 123456

Customer Care Number: 1234567890

Additional Features:

 Travel Insurance: Yes


 Hotel Upgrade: No
 Car Rental: Yes

Total Cost with Additional Features: $36,500

IBLIOGRAPHY
1. Progress in Computer Science with Python
- Dhanpat Rai & Co [ Publisher ]
- Sumita Arora [ Author ]
2. Computer science with Python
- Sultan Chand [ Publisher ]
- Preeti Arora [ Author ]

3. Computer Science
- New Saraswathi House [ Publisher ]
- Reeta Sahoo & Gagan Sahoo[ Author ]

4. Textbook of Computer Scienec with Python


- New Age International Publishers [ Publisher ]
- Harsh Bhasin [Author]

You might also like