Advertisement
desislava_topuzakova

charity campaign

Apr 12th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. days = int(input())
  2. pastry_cooks = int(input())
  3. cakes_per_day = int(input())
  4. waffles_per_day = int(input())
  5. pancakes_per_day = int(input())
  6.  
  7. total_cakes_number = days * pastry_cooks * cakes_per_day
  8. total_waffles_number = days * pastry_cooks * waffles_per_day
  9. total_pancakes_number = days * pastry_cooks * pancakes_per_day
  10.  
  11. total_cakes_price = total_cakes_number * 45
  12. total_waffles_price = total_waffles_number * 5.80
  13. total_pancakes_price = total_pancakes_number * 3.20
  14.  
  15. amount_collected = (total_cakes_price + total_pancakes_price + total_waffles_price) * 7 / 8
  16. print(f'{amount_collected:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement