Teo_Yanchev

easter_bakery_20-21-2019_exam

Jul 17th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. flour_kg = float(input())
  2. kg_flour = float(input())
  3. kg_sugar = float(input())
  4. eggs = int(input())
  5. yeast = int(input())
  6.  
  7. sugar_price = flour_kg * 0.75
  8. eggs_price = flour_kg * 1.1
  9. yeast_price = sugar_price * 0.20
  10. sum_flour = flour_kg * kg_flour
  11. sum_sugar = sugar_price * kg_sugar
  12. sum_eggs = eggs_price * eggs
  13. sum_yeast = yeast_price * yeast
  14.  
  15. total = sum_flour + sum_sugar + sum_eggs + sum_yeast
  16. print(f"{total:.2f}")
Add Comment
Please, Sign In to add comment