Advertisement
aneliabogeva

Maiden_party

Apr 24th, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. price_of_the_party = float(input())
  2. quantity_love_messages = int(input())
  3. quantity_wax_rose = int(input())
  4. quantity_key_holder = int(input())
  5. quantity_cartoon = int(input())
  6. quantity_surprise = int(input())
  7. total_quantitry = 0
  8. final_sum = 0
  9.  
  10. price_love_message = quantity_love_messages * 0.60
  11. price_wax_rose = quantity_wax_rose * 7.20
  12. price_key_holder = quantity_key_holder * 3.60
  13. price_cartoon = quantity_cartoon * 18.20
  14. price_surprise = quantity_surprise * 22
  15.  
  16. total_quantitry = quantity_love_messages + quantity_wax_rose + quantity_key_holder + quantity_cartoon + quantity_surprise
  17. final_sum = price_love_message + price_wax_rose + price_key_holder + price_cartoon + price_surprise
  18.  
  19. if total_quantitry >= 25:
  20. final_sum = final_sum * 0.65
  21.  
  22. final_sum = final_sum *0.90
  23.  
  24. if final_sum >= price_of_the_party:
  25. print(f"Yes! {(final_sum-price_of_the_party):.2f} lv left.")
  26. else:
  27. print(f"Not enough money! {(price_of_the_party-final_sum):.2f} lv needed.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement