Advertisement
Spocoman

Aluminum Joinery

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