Advertisement
veronikaaa86

01. Fruit Market

Feb 19th, 2022
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. strawberry_price = float(input())
  2. bananas_quantity = float(input())
  3. oranges_quantity = float(input())
  4. raspberries_quantity = float(input())
  5. strawberries_quantity = float(input())
  6.  
  7. raspberries_price = strawberry_price / 2
  8. oranges_price = raspberries_price * 0.60
  9. bananas_price = raspberries_price * 0.20
  10.  
  11. total_price = (bananas_price * bananas_quantity) + \
  12. (oranges_price * oranges_quantity) + \
  13. (raspberries_price * raspberries_quantity) + \
  14. (strawberry_price * strawberries_quantity)
  15.  
  16. print(f"{total_price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement