Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pvcCount = int(input())
- pvcType = input()
- deliveryType = input()
- pvcPrice = 0
- total = 0
- priceAfterDiscount = 0
- if pvcCount <= 10:
- print("Invalid order")
- else:
- if pvcType == "90X130":
- pvcPrice = 110
- total = pvcPrice * pvcCount
- if pvcCount > 60:
- priceAfterDiscount = total - total * 0.08
- elif pvcCount > 30:
- priceAfterDiscount = total - total * 0.05
- else:
- priceAfterDiscount = total
- elif pvcType == "100X150":
- pvcPrice = 140
- total = pvcPrice * pvcCount
- if pvcCount > 80:
- priceAfterDiscount = total - total * 0.10
- elif pvcCount > 40:
- priceAfterDiscount = total - total * 0.06
- else:
- priceAfterDiscount = total
- elif pvcType == "130X180":
- pvcPrice = 190
- total = pvcPrice * pvcCount
- if pvcCount > 50:
- priceAfterDiscount = total - total * 0.12
- elif pvcCount > 20:
- priceAfterDiscount = total - total * 0.07
- else:
- priceAfterDiscount = total
- elif pvcType == "200X300":
- pvcPrice = 250
- total = pvcPrice * pvcCount
- if pvcCount > 50:
- priceAfterDiscount = total - total * 0.14
- elif pvcCount > 25:
- priceAfterDiscount = total - total * 0.09
- else:
- priceAfterDiscount = total
- if deliveryType == "With delivery":
- priceAfterDiscount += 60
- if pvcCount > 99:
- priceAfterDiscount *= 0.96
- print("{:.2f} BGN".format(priceAfterDiscount))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement