BbJLeB

03. Sushi Time

Jun 9th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.42 KB | None | 0 0
  1. # 03. Sushi Time
  2.  
  3. import math
  4.  
  5. sushi = input()
  6. restourant = input()
  7. count = int(input())
  8. delivery = input()
  9. price1 = 0
  10. price = 0
  11. if sushi == "sashimi":
  12.     if restourant == "Sushi Zone":
  13.         price = count * 4.99
  14.         if delivery == "Y":
  15.             price1 = price + (price * 0.2)
  16.     elif restourant == "Sushi Time":
  17.         price = count * 5.49
  18.         if delivery == "Y":
  19.             price1 = price + (price * 0.2)
  20.     elif restourant == "Sushi Bar":
  21.         price = count * 5.25
  22.         if delivery == "Y":
  23.             price1 = price + (price * 0.2)
  24.     elif restourant == "Asian Pub":
  25.         price = count * 4.50
  26.         if delivery == "Y":
  27.             price1 = price + (price * 0.2)
  28.     elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
  29.         print(f"{restourant} is invalid restaurant!")
  30.         exit(0)
  31.  
  32. elif sushi == "maki":
  33.     if restourant == "Sushi Zone":
  34.         price = count * 5.29
  35.         if delivery == "Y":
  36.             price1 = price + (price * 0.2)
  37.     elif restourant == "Sushi Time":
  38.         price = count * 4.69
  39.         if delivery == "Y":
  40.             price1 = price + (price * 0.2)
  41.     elif restourant == "Sushi Bar":
  42.         price = count * 5.55
  43.         if delivery == "Y":
  44.             price1 = price + (price * 0.2)
  45.     elif restourant == "Asian Pub":
  46.         price = count * 4.80
  47.         if delivery == "Y":
  48.             price1 = price + (price * 0.2)
  49.     elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
  50.         print(f"{restourant} is invalid restaurant!")
  51.         exit(0)
  52.  
  53. elif sushi == "uramaki":
  54.     if restourant == "Sushi Zone":
  55.         price = count * 5.99
  56.         if delivery == "Y":
  57.             price1 = price + (price * 0.2)
  58.     elif restourant == "Sushi Time":
  59.         price = count * 4.49
  60.         if delivery == "Y":
  61.             price1 = price + (price * 0.2)
  62.     elif restourant == "Sushi Bar":
  63.         price = count * 6.25
  64.         if delivery == "Y":
  65.             price1 = price + (price * 0.2)
  66.     elif restourant == "Asian Pub":
  67.         price = count * 5.50
  68.         if delivery == "Y":
  69.             price1 = price + (price * 0.2)
  70.     elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
  71.         print(f"{restourant} is invalid restaurant!")
  72.         exit(0)
  73.     if delivery == "Y":
  74.         price1 = price + (price * 0.2)
  75. elif sushi == "temaki":
  76.     if restourant == "Sushi Zone":
  77.         price = count * 4.29
  78.         if delivery == "Y":
  79.             price1 = price + (price * 0.2)
  80.     elif restourant == "Sushi Time":
  81.         price = count * 5.19
  82.         if delivery == "Y":
  83.             price1 = price + (price * 0.2)
  84.     elif restourant == "Sushi Bar":
  85.         price = count * 4.75
  86.         if delivery == "Y":
  87.             price1 = price + (price * 0.2)
  88.     elif restourant == "Asian Pub":
  89.         price = count * 5.50
  90.         if delivery == "Y":
  91.             price1 = price + (price * 0.2)
  92.     elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
  93.         print(f"{restourant} is invalid restaurant!")
  94.         exit(0)
  95. if delivery == "Y":
  96.     price1 = price + (price * 0.2)
  97.     print(f"Total price: {math.ceil(price1)} lv.")
  98. else:
  99.     print(f"Total price: {math.ceil(price)} lv.")
Add Comment
Please, Sign In to add comment