Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type = input()
- cabin = input()
- nights = int(input())
- if type == "Mediterranean":
- if cabin == "standard cabin":
- total = nights * 4 * 27.50
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif cabin == "cabin with balcony":
- total = nights * 4 * 30.20
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif cabin == "apartment":
- total = nights * 4 * 40.50
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif type == "Adriatic":
- if cabin == "standard cabin":
- total = nights * 4 * 22.99
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif cabin == "cabin with balcony":
- total = nights * 4 * 25.00
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif cabin == "apartment":
- total = nights * 4 * 34.99
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif type == "Aegean":
- if cabin == "standard cabin":
- total = nights * 4 * 23.00
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif cabin == "cabin with balcony":
- total = nights * 4 * 26.60
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
- elif cabin == "apartment":
- total = nights * 4 * 39.80
- if nights > 7:
- total *= 0.75
- print(f"Annie's holiday in the {type} sea costs {total:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment