Ip Project Source Code
Ip Project Source Code
import pandas as pd
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:")
# 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
# Get feedback
feedback = input("\nHow was your booking experience?
(Excellent/Good/Average/Poor): ")
print(f"Thank you for your feedback: {feedback}")
# Bar width
bar_width = 0.25