Advertisement
Spocoman

Easter Bakery

Feb 21st, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. flour_kg = float(input())
  2. flour_price = float(input())
  3. sugar_kg = float(input())
  4. egg_pack = float(input())
  5. yeast = float(input())
  6.  
  7. flour_total = flour_kg * flour_price
  8. sugar_total = flour_kg * sugar_kg * 0.75
  9. egg_pack_total = flour_kg * egg_pack * 1.1
  10. yeast_total = flour_kg * 0.75 * yeast * 0.2
  11. total_sum = flour_total + sugar_total + egg_pack_total + yeast_total
  12.  
  13. print(f"{total_sum:.2f}")
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement