Advertisement
exDotaPro

9_march_2019_1_tennis_equipment

Jan 10th, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. import math
  2.  
  3. tennis_racket_price = float(input())
  4. tennis_rackets_count = int(input())
  5. sneakers_pears_count = int(input())
  6.  
  7. total_tennis_rackets = tennis_racket_price * tennis_rackets_count
  8. sneakers_pears_price = (tennis_racket_price / 6) * sneakers_pears_count
  9. equipment_price = (total_tennis_rackets + sneakers_pears_price) * 0.2
  10.  
  11. total_price = total_tennis_rackets + sneakers_pears_price + equipment_price
  12.  
  13. djokovic_bill = total_price / 8
  14. sponsors_bill = total_price - djokovic_bill
  15.  
  16. print(f'Price to be paid by Djokovic {math.floor(djokovic_bill)}')
  17. print(f'Price to be paid by sponsors {math.ceil(sponsors_bill)}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement