Advertisement
mbstanchev

Untitled

Feb 20th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. num_of_people_in_group = int(input())
  2. num_of_nights = int(input())
  3. num_transport_cards = int(input())
  4. num_of_musiem_tickets = int(input())
  5.  
  6. price_per_night = 20
  7. price_transport_card = 1.60
  8. price_musiem_ticket = 6
  9.  
  10. cost_nights = num_of_nights * 50
  11. cost_transport = num_transport_cards * price_transport_card
  12. cost_musiem = price_musiem_ticket * num_of_musiem_tickets
  13.  
  14. all_cost = (cost_musiem + cost_nights + cost_transport) * 50
  15. total = all_cost + all_cost * 0.25
  16. print(f"{total:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement