Advertisement
Guest User

Untitled

a guest
Dec 15th, 2021
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.40 KB | None | 0 0
  1. game_type = input()
  2. ticket_type = input()
  3. ticket_amnt = int(input())
  4. trophy = input()
  5.  
  6. trophy_pic_price = 40
  7. total_amnt = 0
  8.  
  9. if game_type == "Quarter final":
  10.     if ticket_type == "Standard":
  11.         ticket_price = 55.50
  12.     elif ticket_type == "Premium":
  13.         ticket_price = 105.20
  14.     elif ticket_type == "VIP":
  15.         ticket_price = 118.90
  16.  
  17. elif game_type == "Semi final":
  18.     if ticket_type == "Standard":
  19.         ticket_price = 75.88
  20.     elif ticket_type == "Premium":
  21.         ticket_price = 125.22
  22.     elif ticket_type == "VIP":
  23.         ticket_price = 300.40
  24.  
  25. elif game_type == "Final":
  26.     if ticket_type == "Standard":
  27.         ticket_price = 110.10
  28.     elif ticket_type == "Premium":
  29.         ticket_price = 160.66
  30.     elif ticket_type == "VIP":
  31.         ticket_price = 400
  32.  
  33. total_amnt = ticket_amnt * ticket_price
  34.  
  35. # print(ticket_price, total_amnt)
  36.  
  37. if total_amnt > 2500 and total_amnt <= 4000:
  38.     discount = 0.1
  39. elif total_amnt > 4000:
  40.     discount = 0.25
  41.     trophy_pic_price = 0
  42. else:
  43.     discount = 0
  44.  
  45. total_pay = total_amnt - (total_amnt * discount)
  46.  
  47. # print(total_pay)
  48.  
  49. if trophy == "N":
  50.     trophy_pic_price = 0
  51. elif trophy == "Y":
  52.     trophy_pic_price = trophy_pic_price * ticket_amnt
  53. elif trophy == "Y" and total_amnt > 4000:
  54.     trophy_pic_price = 0
  55.  
  56. # print(trophy_pic_price)
  57. total_pay = total_pay + trophy_pic_price
  58. print("{:.2f}".format(total_pay))
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement