Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hrisantemas = int(input())
- roses = int(input())
- tulips = int(input())
- season = input()
- holiday = input()
- hrisantemas_price = 0
- roses_price = 0
- tulips_price = 0
- if season == 'Spring' or season == 'Summer':
- hrisantemas_price = hrisantemas * 2.00
- roses_price = roses * 4.10
- tulips_price = tulips * 2.50
- elif season == 'Autumn' or season == 'Winter':
- hrisantemas_price = hrisantemas * 3.75
- roses_price = roses * 4.50
- tulips_price = tulips * 4.15
- if holiday == 'Y':
- hrisantemas_price += hrisantemas_price * 0.15
- tulips_price += tulips_price * 0.15
- roses_price += roses_price * 0.15
- total_price = hrisantemas_price + roses_price + tulips_price
- if tulips > 7 and season == 'Spring':
- total_price -= total_price * 0.05
- if roses >= 10 and season == 'Winter':
- total_price -= total_price * 0.10
- if hrisantemas + roses + tulips > 20:
- total_price -= total_price * 0.2
- total_with_arranging = total_price + 2
- print(f'{total_with_arranging:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment