Professional Documents
Culture Documents
2022 PM Tasks123 Combined
2022 PM Tasks123 Combined
2022 PM Tasks123 Combined
Booking_Tickets = []
def Ticket_Options():
print("-------------------------------------------")
print (" Ticket type || Cost for 1 day ")
print("1. One adult || $ 20.00 ")
print("2. One child || $ 12.00 (an adult may bring up to two children) ")
print("3. One senior || $ 16.00 ")
print("4. Family ticket || $ 60.00 (up to two adults or seniors, and three
children)")
print("5. Groups of people || $ 15.00 six people or more, price per person")
print("-------------------------------------------")
print (" Ticket type || Cost for 2 days ")
print("6. One adult || $ 30.00 ")
print("7. One child || $ 18.00 (an adult may bring up to two children) ")
print("8. One senior || $ 24.00 ")
print("9. Family ticket || $ 90.00 (up to two adults or seniors, and three
children)")
print("10. Groups of people || $ 22.50 six people or more, price per person")
print(" ==> Press 1 for 1 day option ")
print(" ==> Press 2 for 2 days option")
ch=int(input("Enter your choice = "))
return ch
def Day1_Option():
print("----------------------------")
print(" Ticket type || Cost for 1 day ")
print("1. One adult || $ 20.00 ")
print("2. One child || $ 12.00 (an adult may bring up to two children) ")
print("3. One senior || $ 16.00 ")
print("4. Family ticket || $ 60.00 (up to two adults or seniors, and three
children)")
print("5. Groups of people || $ 15.00 six people or more, price per person")
ch = int(input("Enter your choice = "))
return ch
def Day2_Option():
print("----------------------------")
print(" Ticket type || Cost for 2 days ")
print("6. One adult || $ 30.00 ")
print("7. One child || $ 18.00 (an adult may bring up to two children) ")
print("8. One senior|| $ 24.00 ")
print("9. Family ticket|| $ 90.00 (up to two adultsor seniors, and three
children)")
print("10. Groups of people|| $ 22.50 six people or more,price per person")
ch=int(input("Enter your choice = "))
return ch
def extra1():
print("Extra Attraction || Cost per person")
print("1. lion feeding || $2.50 ")
print("2. Penguine feeding || $ 2.00" )
ch=int(input("Enter your choice = "))
return ch
def extra2():
print("Extra Attraction || Cost per person")
print("1. lion feeding || $2.50 ")
print("2. Penguine feeding || $ 2.00" )
print("3. evening barbecue || $ 5.00")
ch=int(input("Enter your choice = "))
return ch
def Check_Offer(No_of_Adults,No_of_children,day,Total_Amount,Group_Members):
Total_Amount=0
Number_of_Tickets=[0]*10
day=Ticket_Options()
if(day==1):
while(True):
ch = Day1_Option()
if(ch==1):
No_of_Adults=int(input("How many adults ? "))
Number_of_Tickets[ch-1]=Number_of_Tickets[ch-1]+No_of_Adults
Total_Amount = (Total_Amount + No_of_Adults) * 20
elif(ch==2):
No_of_children=int(input("How many child ? "))
Number_of_Tickets[ch-1]=Number_of_Tickets[ch-1]+No_of_children
Total_Amount = (Total_Amount + No_of_children) * 12
elif (ch == 3):
No_of_Senior = int(input("How many Senior ? "))
Number_of_Tickets[ch - 1] = Number_of_Tickets[ch - 1] +
No_of_Senior
Total_Amount = (Total_Amount + No_of_Senior) * 16
elif (ch == 4):
Family_Members = int(input("How many members in family ? "))
Number_of_Tickets[ch - 1] = Number_of_Tickets[ch - 1] +
Family_Members
Total_Amount = Total_Amount + 60
elif (ch == 5):
Group_Members = int(input("How many Group Members ? "))
Number_of_Tickets[ch - 1] = Number_of_Tickets[ch - 1] +
Group_Members
Total_Amount = (Total_Amount + Group_Members) * 15
else:
Total_Amount = Check_Offer(No_of_Adults, No_of_children,
Total_Amount, Group_Members)
ch=extra1()
Total_Person = sum(Number_of_Tickets)
if (ch == 1):
Total_Amount = Total_Amount + (Total_Person * 2.5)
elif (ch == 2):
Total_Amount = Total_Amount + (Total_Person * 2.0)
else:
while (True):
ch = Day2_Option()
if (ch == 6):
No_of_Adults = int(input("How many adults ? "))
Number_of_Tickets[ch - 1] = Number_of_Tickets[ch - 1] +
No_of_Adults
Total_Amount = (Total_Amount + No_of_Adults) * 30