exDotaPro

15_june_2019_1_movie_profit

Jan 21st, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. movie_title = input()
  2. days_count = int(input())
  3. tickets_count = int(input())
  4. ticket_price = float(input())
  5. percentage_for_cinema = int(input())
  6.  
  7. daily_tickets_price = tickets_count * ticket_price
  8. total_tickets_price = daily_tickets_price * days_count
  9. for_cinema = total_tickets_price * percentage_for_cinema / 100
  10.  
  11. income = total_tickets_price - for_cinema
  12.  
  13. print(f'The profit from the movie {movie_title} is {income:.2f} lv.')
Add Comment
Please, Sign In to add comment