Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 07. School Camp
- season = input()
- groupType = input()
- students = int(input())
- nightsCount = int(input())
- hotelPrice = 0
- sport = None
- if season == "Spring":
- if groupType == "girls":
- hotelPrice = 7.20
- sport = "Athletics"
- elif groupType == "boys":
- hotelPrice = 7.20
- sport = "Tennis"
- elif groupType == "mixed":
- hotelPrice = 9.50
- sport = "Cycling"
- elif season == "Winter":
- if groupType == "girls":
- hotelPrice = 9.60
- sport = "Gymnastics"
- elif groupType == "boys":
- hotelPrice = 9.60
- sport = "Judo"
- elif groupType == "mixed":
- hotelPrice = 10
- sport = "Ski"
- elif season == "Summer":
- if groupType == "girls":
- hotelPrice = 15
- sport = "Volleyball"
- elif groupType == "boys":
- hotelPrice = 15
- sport = "Football"
- elif groupType == "mixed":
- hotelPrice = 20
- sport = "Swimming"
- priceNights = students * hotelPrice * nightsCount
- discount = 0;
- if students >= 50:
- priceNights /= 2
- elif students >= 20 and students < 50:
- discount = priceNights * 0.15
- priceNights = priceNights - discount
- elif students >= 10 and students < 20:
- discount = priceNights * 0.05
- priceNights = priceNights - discount
- print(f"{sport} {priceNights:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment