Advertisement
AntonStanoev

Book

Dec 18th, 2022
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. price_per_page = float(input())
  2. price_per_cover = float(input())
  3. discount = int(input())
  4. price_designer = float(input())
  5. price_team = int(input())
  6.  
  7.  
  8. primary_price = price_per_page * 899 + price_per_cover * 2
  9. total_discount = primary_price * (discount / 100)
  10.  
  11. primary_price = primary_price - total_discount
  12.  
  13. total_price_designer = price_designer + primary_price
  14.  
  15. total_price_team = total_price_designer - (total_price_designer * (price_team / 100))
  16.  
  17.  
  18. print(f"Avtonom should pay {total_price_team:.2f} BGN.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement