Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- days_stay = int(input())
- room_type = input()
- feedback = input()
- price = 0
- if room_type == "room for one person":
- price = (days_stay - 1) * 18
- elif room_type == "apartment":
- price = (days_stay - 1) * 25
- if days_stay < 10:
- price -= price * 0.3
- elif 10 <= days_stay < 15:
- price -= price * 0.35
- elif days_stay >= 15:
- price -= price * 0.50
- elif room_type == "president apartment":
- price = (days_stay - 1) * 35
- if days_stay < 10:
- price -= price * 0.1
- elif 10 <= days_stay < 15:
- price -= price * 0.15
- elif days_stay >= 15:
- price -= price * 0.20
- if feedback == "positive":
- price += price * 0.25
- else:
- price -= price * 0.10
- print(f"{price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment