Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #New Hotel room_7
- month = input()
- nights_num = int(input())
- room_1 = ''
- room_2 = ''
- price_studio = 0
- price_apartment = 0
- if month == 'May' or month == 'October':
- room_1 = 'Studio'
- room_2 = 'Apartment'
- price_studio = 50 * nights_num
- price_apartment = 65 * nights_num
- if 7 < nights_num <= 14:
- price_studio *= 0.95
- elif nights_num > 14:
- price_studio *= 0.70
- price_apartment *= 0.9
- elif month == 'June' or month == 'September':
- room_1 = 'Studio'
- room_2 = 'Apartment'
- price_studio = 75.20 * nights_num
- price_apartment = 68.70 * nights_num
- if nights_num > 14:
- price_studio *= 0.80
- price_apartment *= 0.9
- elif month == 'July' or month == 'August':
- room_1 = 'Studio'
- room_2 = 'Apartment'
- price_studio = 76 * nights_num
- price_apartment = 77 * nights_num
- if nights_num > 14:
- price_apartment *= 0.9
- print(f"Apartment: {price_apartment:.2f} lv.")
- print(f"Studio: {price_studio:.2f} lv.")
- # new house_3
- flowers = input()
- num_flowers = int(input())
- budget = int(input())
- price = 0
- if flowers == 'Roses':
- if num_flowers > 80:
- price = 5 * num_flowers * 0.90
- else:
- price = 5 * num_flowers
- elif flowers == 'Dahlias':
- if num_flowers > 90:
- price = 3.80 * num_flowers * 0.85
- else:
- price = 3.80 * num_flowers
- elif flowers == 'Tulips':
- if num_flowers > 80:
- price = 2.80 * num_flowers * 0.85
- else:
- price = 2.80 * num_flowers
- elif flowers == 'Narcissus':
- if num_flowers < 120:
- price = 3 * num_flowers * 1.15
- else:
- price = 3 * num_flowers
- elif flowers == 'Gladiolus':
- if num_flowers < 80:
- price = 2.50 * num_flowers * 1.20
- else:
- price = 2.50 * num_flowers
- diff = abs(price - budget)
- if budget >= price:
- print(f'Hey, you have a great garden with {num_flowers} {flowers} and {diff:.2f} leva left.')
- else:
- print(f"Not enough money, you need {diff:.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement