Advertisement
BbJLeB

test

Jun 13th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.05 KB | None | 0 0
  1. championshipEtap = input()
  2. ticketType = input()
  3. ticketsCount = int(input())
  4. photoWithTheTrophy = input()
  5. ticketPrice = 0
  6. if championshipEtap == "Quarter final":
  7.     if ticketType == "Standard":
  8.         ticketPrice += 55.50
  9.     elif ticketType == "Premium":
  10.         ticketPrice += 105.20
  11.     elif ticketType == "VIP":
  12.         ticketPrice += 118.90
  13. if championshipEtap == "Semi final":
  14.     if ticketType == "Standard":
  15.         ticketPrice += 75.88
  16.     elif ticketType == "Premium":
  17.         ticketPrice += 125.22
  18.     elif ticketType == "VIP":
  19.         ticketPrice += 300.40
  20. if championshipEtap == "Final":
  21.     if ticketType == "Standard":
  22.         ticketPrice += 110.10
  23.     elif ticketType == "Premium":
  24.         ticketPrice += 160.66
  25.     elif ticketType == "VIP":
  26.         ticketPrice += 400.00
  27. totalTicketPrice = ticketsCount * ticketPrice
  28. if totalTicketPrice > 4000:
  29.     totalTicketPrice *= 0.75
  30. elif totalTicketPrice > 2500:
  31.     totalTicketPrice *= 0.90
  32.     if photoWithTheTrophy == 'Y':
  33.         totalTicketPrice += ticketsCount * 40
  34. elif photoWithTheTrophy == 'Y':
  35.     totalTicketPrice += ticketsCount * 40
  36. print(f"{totalTicketPrice:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement