Advertisement
pacho_the_python

Untitled

Sep 29th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.21 KB | None | 0 0
  1. number_of_windows = int(input())
  2. type_of_windows = input()
  3. type_of_delivery = input()
  4.  
  5. price = 0
  6.  
  7. if number_of_windows >= 10:
  8.     if type_of_windows == "90X130":
  9.         price = number_of_windows * 110
  10.         if 30 < number_of_windows <= 60:
  11.             price *= 0.95
  12.         elif number_of_windows > 60:
  13.             price *= 0.92
  14.  
  15.     elif type_of_windows == "100X150":
  16.         price = number_of_windows * 140
  17.         if 40 < number_of_windows <= 80:
  18.             price *= 0.94
  19.         elif number_of_windows > 80:
  20.             price *= 0.9
  21.  
  22.     elif type_of_windows == "130X180":
  23.         price = number_of_windows * 190
  24.         if 20 < number_of_windows <= 50:
  25.             price *= 0.93
  26.         elif number_of_windows > 50:
  27.             price *= 0.88
  28.  
  29.     elif type_of_windows == "200X300":
  30.         price = number_of_windows * 250
  31.         if 25 < number_of_windows <= 50:
  32.             price *= 0.91
  33.         elif number_of_windows > 50:
  34.             price *= 0.86
  35.  
  36.     if type_of_delivery == "With delivery":
  37.         price = price + 60
  38.  
  39.     if number_of_windows > 90:
  40.         price *= 0.96
  41.         print(f"{price:.2f} BGN")
  42.     else:
  43.         print(f"{price:.2f} BGN")
  44. else:
  45.     print("Invalid order")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement