You are on page 1of 19

PK GUIDES

AND
project
name

TOURS
Make your tours safe and fun with
us
CLASSES
We aadded following classes in our project of tour
compnay

Tour company Tours mMonotnhtlyhlc

yocuorusrese
Rides Bookings Customer
info
Page 03 of
15
class TourCompany:
def __init__(self, name, address, contact):
class class Customer:
self.name = name
def __init__(self,Guide:
name, experience, rating): def __init__(self, name,
self.address =
address self.contact = self.name = name email,
contact self.experience = phone,bookedtour):
def display(self): experience self.name =
print(f"Name: self.rating = name self.email =
{self.name}") rating def
email self.phone =
print(f"Address: {self.address}") display(self):
print(f"Contact: {self.contact}") phone
print(f"Name: {self.name}")
class Tour: self.bookedtour =
print(f"Experience: {self.experience}
def __init__(self, name, description, price,
years") bookedtour def
duration, guide): display(self):
self.name = name class Ride:
def __init__(self, type, print(f"Name: {self.name}")
self.description =
description self.price = price): self.type = print(f"Email: {self.email}")
price self.duration = type print(f"Phone: {self.phone}")
duration self.price = print(f"Booked tour:
self.guide {self.price}")
print(f"Price: = def __init__(self, price def
customer_name, tour, ride, {self.bookedtour}")
guide def
print(f"Duration: display(self):
date): self.customer_name = class BookingCourses:
display(self):
{self.duration}") print(f"Guide: print(f"Type: {self.type}")
customer_name def __init__(self, customer_name,
print(f"Tour Name: {self.name}")
{self.guide}") print(f"Price: {self.price}")
self.tour = self.ride
tour = course,
defprint(f"Description:
class MonthlyCourses:
__init__(self, name, description, price, class
ride Booking:
self.date =
{self.description}")
duration): date):
date def self.customer_name =
self.name = name
self.description = display(self): customer_name
description self.price = print(f"Customer Name:
self.course =
price {self.customer_name}")
course self.date
self.duration = self.tour.display()
= date
duration def self.ride.display()
display(self): def display(self):
print(f"Date: {self.date}")
print(f"Course Name: {self.name}") print(f"Customer
while True: elif i == 6:
print("PK GUIDES AND tours") name = input("Enter your name: ")
print("1.About us") email = input("Enter your email: ")
print("2.Information about tours") phone = input("Enter your phone number: ")
print("3.Information about monthly courses") customer = Customer(name, email, phone)
print("4.Information about guides") tour = Tour("Multan City Tour","Visit the historical and cultural sites of
print("5.Information about rides")
Multan",3000,"1 day","Ali Khan")
print("6.Book your tour")
ride = Ride("Rickshaw Ride",1000)
print("7.book a course")
date = input("Enter your preferred date for the tour (DD/MM/YYYY): ")
print("8.Your information")
booking = Booking(customer.name, tour, ride, date)
i=int(input("Press from 1 to 7 to get required information :
")) if i == 1:
print("Your booking has been confirmed!")
company = TourCompany("PK Guides & Tours","Multan","03000000000") booking.display()
company.display() elif i == 7:
elif i == 2: name = input("Enter your name: ") email =
tour = Tour("Multan City Tour","Visit the historical and cultural sites of input("Enter your email: ")
Multan",3000,"1 day","Ali Khan") phone = input("Enter your phone number: ") customer =
tour.display() Customer(name, email, phone)
tour2 = Tour("Skardu Tour","Do mountain climbing and course = MonthlyCourses("Tour guiding","Learn to guide
treakking",20000,"4 tours ",10000,"2
days","Wan Fateh") week")
tour2.display() date = input("Enter your preferred date for the course (DD/MM/YYYY): ")
elif i == 3: booking = BookingCourses(customer.name, course, date)
course = MonthlyCourses("Tour guiding","Learn to guide tours ",10000,"2 week") print("Your booking has been confirmed!")
course.display() booking.display()
course2 = MonthlyCourses("First Aid course","Learn to give first aid at any
elif i == 8:
emergency",5000,"1 week")
print("Your tour information : ")
course2.display()
elif i == 4: customer1=Customer("ALISHBA","alishba@gmail.com","0909909","Sakardu
guide = Guide("Ali Khan",5,4.8) tour")
guide.display() customer1.display()
guide2 = Guide("Wan Fateh",6,4.9) else:
guide2.display() print("Invalid input. Please enter a valid option.")
elif i == 5: continue
ride = Ride("Rickshaw Ride",1000) choice = input("Do you want to continue? (yes/no):
ride.display() ") if choice.lower() != "yes":
ride = Ride("Car ride",1000) break
ride2.display()
First part of
Output
output
CODE
while True:
print("PK GUIDES AND tours")
print("1.About us")
print("2.Information about tours")
print("3.Information about
monthly courses")
print("4.Information about
guides") print("5.Information about
rides") print("6.Book your tour")
print("7.book a course")
print("8.Your information")
i=int(input("Press from 1 to 7 to get
required information : "))
Output of 1st
output
class COD
class TourCompany:
E
def init (self, name, address, contact)
self.name = name
self.address = address
self.contact = contact
def display(self):
print(f"Name: {self.name}")
print(f"Address: {self.address}")
print(f"Contact: {self.contact}")

if i = = 1:
company = TourCompany("PK Guides
& Tours","Multan","03000000000")
company.display()
Output of 2nd
COD
class
output class Tour:
E name, description,
def __init__(self,
price, duration, guide):
self.name = name
self.description = description
self.price = price
self.duration = duration
self.guide = guide
def display(self):
print(f"Tour Name: {self.name}")
print(f"Description: {self.description}")
print(f"Price: {self.price}")
print(f"Duration: {self.duration}")
print(f"Guide: {self.guide}")

elif i == 2:
tour = Tour("Multan City Tour","Visit the
historical and cultural sites of Multan",3000,"1
day","Ali Khan")
tour.display()
Output of 3rd COD
class
output
class MonthlyCourses:
E
def __init__(self, name,
description, price, duration):
self.name = name
self.description = description
self.price = price
self.duration = duration
def display(self):
print(f"Course Name:
{self.name}") print(f"You will learn:
{self.description}")
print(f"Price: {self.price}")
print(f"Duration: {self.duration}")

elif i == 3:
course = MonthlyCourses("Tour guiding","Learn
to guide tours ",10000,"2 week")
course.display()
Output of 4th
COD
class
output E
class Guide:
def __init__(self, name,
experience rating):
self.name = name
self.experience = experience
self.rating = rating
def display(self):
print(f"Name: {self.name}")
print(f"Experience: {self.experience
years")
elif i == 4:
guide = Guide("Ali
Khan",5,4.8) guide.display()
guide2 = Guide("Wan
Fateh",6,4.9) guide2.display()
Output of 5th
output
class CODE
class Ride:
def __init__(self, type, price):
self.type = type
self.price =
price def
display(self):
print(f"Type:
{self.type}") print(f"Price:
elif i == 5:
{self.price}")
ride = Ride("Rickshaw Ride",1000)
ride.display()
ride= Ride("Car ride",1000)
ride2.display()
Output of 6th
class
output
CODE
elif i == 6:
name = input("Enter your name:
class Booking:
") email = input("Enter your email:
def __init__(self, customer_name, tour,
")
ride, date): phone = input("Enter your phone number")
self.customer_name = bookedtour = input("Enter tour you want
customer_name to
self.tour = tour book : ")
customer = Customer(name, email,
self.ride = ride
phone,bookedtour)
self.date = date tour = Tour("Multan City Tour","Visit the
def display(self): historical and cultural sites of
print(f"Customer Name: Multan",3000,"1
{self.customer_name}") day","Ali Khan")
ride = Ride("Rickshaw Ride",1000)
self.tour.display()
date = input("Enter your preferred date
self.ride.display()
for
print(f"Date: {self.date}") the tour (DD/MM/YYYY): ")
Output of 7th
class
output
COD
class BookingCourses: E elif i == 7:
name = input("Enter your name:
def __init__(self,
") email = input("Enter your email:
customer_name, course, ")
date): phone = input("Enter your phone number:
") bookedtour=input("Enter course you
self.customer_name =
want
customer_name to get enrolled in : ")
self.course = course customer = Customer(name, email,
self.date = phone,bookedtour)
course = MonthlyCourses("Tour
date def guiding","Learn to guide tours ",10000,"2
display(self): week")
print(f"Customer date = input("Enter your preferred date
Name: for the course (DD/MM/YYYY): ")
booking =
{self.customer_name}") BookingCourses(customer.name, course,
self.course.display() date)
print(f"Which date do print("Your booking has been confirmed!")
booking.display()
you want to start:
Output of 8th
output
class
COD
class Customer: E elif i == 8:
def __init__(self, name, name = input("Enter your name :
email,
") email = input("Enter your
phone,bookedtour):
email : ") print("Your tour
self.name = name
self.email = email information : ")
self.phone = customer1=Customer(name,email,"0
phone 909909","Sakardu tour")
self.bookedtour = customer1.display()
bookedtour def
display(self):
print(f"Name: {self.name}")
print(f"Email: {self.email}")
print(f"Phone: {self.phone}")
print(f"Booked tour:
{self.bookedtour}")
Thank
you

You might also like