George_Ivanov05

06. Godzilla vs. Kong

Feb 14th, 2021
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.32 KB | None | 0 0
  1. budget_for_the_movie = float(input())
  2. statist = int(input())
  3. price_for_clothes_for_one_statist = float(input())
  4.  
  5. decor = budget_for_the_movie * 0.1
  6. sum_for_clothes_for_one_statist = price_for_clothes_for_one_statist * statist
  7.  
  8. discount = budget_for_the_movie * 0.1
  9.  
  10. if sum_for_clothes_for_one_statist > 150:
  11.     if sum_for_clothes_for_one_statist + decor - discount > budget_for_the_movie:
  12.         need_money = (sum_for_clothes_for_one_statist + decor) - budget_for_the_movie
  13.         print("Not enough money!")
  14.         print(f"Wingard needs {need_money:.2f} leva more.")
  15.     elif sum_for_clothes_for_one_statist + decor - discount <= budget_for_the_movie:
  16.         money_left = budget_for_the_movie - (sum_for_clothes_for_one_statist + decor)
  17.         print("Action!")
  18.         print(f"Wingard starts filming with {money_left:.2f} leva left.")
  19. elif sum_for_clothes_for_one_statist + decor > budget_for_the_movie:
  20.     need_money = (sum_for_clothes_for_one_statist + decor) - budget_for_the_movie
  21.     print("Not enough mony!")
  22.     print(f"Wingard needs {need_money:.2f} leva more.")
  23. elif sum_for_clothes_for_one_statist + decor <= budget_for_the_movie:
  24.     money_left = budget_for_the_movie - (sum_for_clothes_for_one_statist + decor)
  25.     print("Action!")
  26.     print(f"Wingard starts filming with {money_left:.2f} leva left.")
  27.  
Advertisement
Add Comment
Please, Sign In to add comment