Advertisement
aneliabogeva

Godzilla vs. Kong

Apr 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. budget = float(input())
  2. number_of_people = int(input())
  3. price_for_one = float(input())
  4. total_price = 0
  5. price_decor = budget * 0.10
  6.  
  7. if number_of_people < 150:
  8. total_price = number_of_people * price_for_one + price_decor
  9. elif number_of_people >= 150:
  10. total_price = (number_of_people * price_for_one)*0.90 + price_decor
  11.  
  12. if total_price > budget:
  13. print("Not enough money!")
  14. print(f"Wingard needs {(total_price-budget):.2f} leva more.")
  15. else:
  16. print("Action!")
  17. print(f"Wingard starts filming with {(budget-total_price):.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement