Spocoman

Agency Profit

Feb 16th, 2022 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. agency = input()
  2. ticket = int(input())
  3. kid_ticket = int(input())
  4. ticket_price = float(input())
  5. service = float(input())
  6.  
  7. total_adult = (ticket_price + service) * ticket
  8. total_kid = (0.3 * ticket_price + service) * kid_ticket
  9. total = total_adult + total_kid / 5
  10.  
  11. print(f'The profit of your agency from {agency} tickets is {total:.2f} lv.')
Add Comment
Please, Sign In to add comment