Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- compotjar = int(input())
- jellyjar =int(input())
- cherryPrice = 3.20
- compotjarQuantity = compotjar+1
- jellyjarQuantity = jellyjar+1
- totalCherriesCompot = (compotjarQuantity*0.300)+0.05*(compotjarQuantity*0.300)
- totalCherriesJelly= (jellyjarQuantity*0.650)+0.1*(jellyjarQuantity*0.650)
- totalCherries= totalCherriesCompot+totalCherriesJelly
- totalPrice = totalCherries*cherryPrice
- print(round(totalPrice,2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement