0% found this document useful (0 votes)
21 views8 pages

Ip Project Source Code

Uploaded by

jkaku1039
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)
21 views8 pages

Ip Project Source Code

Uploaded by

jkaku1039
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/ 8

Source code

import pandas as pd

print(" WELCOME TO TRAVEL BUDDY")


print("*")
print("Press 1 to view details about the company.")
print("Press 2 to proceed with booking.")
print("*")

choice = int(input("Enter your choice: "))


print(" ")

if choice == 1:
print("ABOUT TRAVEL BUDDY")
print("*")
print("Our company has been providing exceptional travel services
since 2001, assisting tourists from around the world to explore the
beauty of India.")
print("We specialize in showcasing India's diverse culture, rich
heritage, and scenic landscapes.")
print("Our passion for travel, coupled with years of expertise,
ensures that every journey is unforgettable.")
print("*")
print("Now that you know about us, let's proceed to booking!")
else:
print("Proceeding to booking...")
Source code
print("*")

def book_trip():
print("\nEnter your details:")

name = input("Enter your name: ")


mobile = input("Enter your mobile number: ")
email = input("Enter your Gmail address: ")
address = input("Enter your residential address: ")

print('\nPlaces you can visit:\n1. Goa\n2. Delhi\n3. Mumbai')


place_no = int(input('Enter the serial number of the city you want
to visit: '))

# Initialize variables
city = ""
places = []
package = ""

# Package details
if place_no == 1:
city = "Goa"
print("You are visiting Goa.")
Source code
package = input("Package you want to buy
(regular/golden/diamond): ").lower()

if package == "regular":
places = ["Palolem Beach", "Baga Beach", "Agonda Beach"]
elif package == "golden":
places = ["Dudhsagar Falls", "Hanoi Street Tour", "Panjim",
"Baga Beach", "Pololem Beach"]
elif package == "diamond":
places = ["Pololem Beach", "Dudhsagar Falls", "Bardez",
"Calangute", "Canacona", "Boat Cruising"]
else:
print('Invalid package')
return

elif place_no == 2:
city = "Delhi"
print("You are visiting Delhi.")
package = input("Package you want to buy
(regular/golden/diamond): ").lower()

if package == "regular":
places = ["Qutub Minar", "India Gate", "Humayun's Tomb"]
elif package == "golden":
Source code
places = ["Qutub Minar", "India Gate", "Gurudwara Bangla
Sahib", "Lodhi Garden", "Lotus Temple"]
elif package == "diamond":
places = ["Qutub Minar", "Lodhi Garden", "India Gate", "Lotus
Temple", "Connaught Place", "Chandni Chowk"]
else:
print('Invalid package')
return

elif place_no == 3:
city = "Mumbai"
print("You are visiting Mumbai.")
package = input("Package you want to buy
(regular/golden/diamond): ").lower()

if package == "regular":
places = ["Gateway of India", "Marine Drive", "Juhu Beach"]
elif package == "golden":
places = ["Elephanta Caves", "Colaba Causeway", "Marine
Drive", "Juhu Beach"]
elif package == "diamond":
places = ["Gateway of India", "Elephanta Caves", "Marine
Drive", "Juhu Beach", "Colaba Causeway", "Chhatrapati Shivaji
Terminus"]
else:
Source code
print('Invalid package')
return
else:
print('Invalid city selection')
return

# Calculate bill
num_passengers = int(input("Enter the number of passengers: "))

if package == 'regular':
bill = 3000 * num_passengers + 60
elif package == 'golden':
bill = 5000 * num_passengers + 100
elif package == 'diamond':
bill = 7000 * num_passengers + 140
else:
print("Invalid package selected. Cannot generate bill.")
return

# Print user details and bill


print("\n========== User Details ==========")
print(f"Name: {name}")
print(f"Mobile: {mobile}")
print(f"Email: {email}")
Source code
print(f"Address: {address}")

print("\n========== Booking Details ==========")


print(f"City: {city}")
print(f"Package: {package.capitalize()}")
print("Places Included:")
for place in places:
print(f"- {place}")

print("\n========== Billing Details ==========")


print(f"Number of Passengers: {num_passengers}")
print(f"Total Amount (including GST): ₹{bill}")

# Get feedback
feedback = input("\nHow was your booking experience?
(Excellent/Good/Average/Poor): ")
print(f"Thank you for your feedback: {feedback}")

# Main function for rebooking


while True:
book_trip()
rebook = input("\nWould you like to book another trip? (yes/no):
").lower()
if rebook != 'yes':
Source code
print("Thank you for using our booking system!")
break

import matplotlib.pyplot as plt


import numpy as np

# Data for packages in each state


states = ['Goa', 'Mumbai', 'Delhi']
regular = [120, 80, 150] # Example data for Regular package
gold = [90, 110, 70] # Example data for Gold package
diamond = [60, 50, 100] # Example data for Diamond package

# X-axis positions for grouped bars


x = np.arange(len(states))

# Bar width
bar_width = 0.25

# Create bar plots for each package


plt.bar(x - bar_width, regular, width=bar_width, label='Regular',
color='skyblue')
plt.bar(x, gold, width=bar_width, label='Gold', color='orange')
Source code
plt.bar(x + bar_width, diamond, width=bar_width, label='Diamond',
color='green')

# Add labels and title


plt.xlabel('States')
plt.ylabel('Number of People')
plt.title('Most Preferred Packages in Different States')
plt.xticks(x, states)
plt.legend()

# Show the plot


plt.tight_layout()
plt.show()

You might also like