Advertisement
Guest User

Jelly Jars

a guest
Apr 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. compotjar = int(input())
  2. jellyjar =int(input())
  3.  
  4. cherryPrice = 3.20
  5.  
  6. compotjarQuantity = compotjar+1
  7.  
  8. jellyjarQuantity = jellyjar+1
  9.  
  10. totalCherriesCompot = (compotjarQuantity*0.300)+0.05*(compotjarQuantity*0.300)
  11.  
  12. totalCherriesJelly= (jellyjarQuantity*0.650)+0.1*(jellyjarQuantity*0.650)
  13.  
  14.  
  15. totalCherries= totalCherriesCompot+totalCherriesJelly
  16.  
  17. totalPrice = totalCherries*cherryPrice
  18.  
  19. print(round(totalPrice,2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement