rozalina1988

1_Cinema

Oct 29th, 2024
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | Software | 0 0
  1. movie_type = input()
  2. rows_number = int(input())
  3. columns_number = int(input())
  4.  
  5. # •   Premiere - премиерна прожекция, на цена 12.00 лева;
  6. # •   Normal - стандартна прожекция, на цена 7.50 лева;
  7. # •   Discount - прожекция за деца,от 5.00 лева.
  8. profit = 0
  9.  
  10. cinema_capacity = rows_number * columns_number
  11.  
  12. if movie_type == "Premiere":
  13.     profit = cinema_capacity * 12
  14. elif movie_type == "Normal":
  15.     profit = cinema_capacity * 7.5
  16. elif movie_type == "Discount":
  17.     profit = cinema_capacity * 5
  18.  
  19. print(f"{profit:.2f} leva")
  20.  
Advertisement
Add Comment
Please, Sign In to add comment