Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- duration_of_contract = str(input())
- type_of_contract = str(input())
- mobile_internet = str(input())
- count_months = int(input())
- total_sum = 0
- if duration_of_contract == "one":
- if type_of_contract == "Small":
- if mobile_internet == "yes":
- total_sum = (count_months * 9.98) + (5.50 * count_months)
- else:
- total_sum = count_months * 9.98
- elif type_of_contract == "Middle":
- if mobile_internet == "yes":
- total_sum = (count_months * 18.99) + (4.35 * count_months)
- else:
- total_sum = count_months * 18.99
- elif type_of_contract == "Large":
- if mobile_internet == "yes":
- total_sum = (count_months * 25.98) + (4.35 * count_months)
- else:
- total_sum = count_months * 25.98
- elif type_of_contract == "ExtraLarge":
- if mobile_internet == "yes":
- total_sum = (count_months * 35.99) + (3.85 * count_months)
- else:
- total_sum = count_months * 35.99
- elif duration_of_contract == "two":
- if type_of_contract == "Small":
- if mobile_internet == "yes":
- total_sum = (count_months * 8.58) + (5.50 * count_months) * 0.9625
- else:
- total_sum = (count_months * 8.58) * 0.9625
- elif type_of_contract == "Middle":
- if mobile_internet == "yes":
- total_sum = (count_months * 17.09) + (5.50 * count_months) * 0.9625
- else:
- total_sum = (count_months * 17.09) * 0.9625
- elif type_of_contract == "Large":
- if mobile_internet == "yes":
- total_sum = (count_months * 23.59) + (5.50 * count_months) * 0.9625
- else:
- total_sum = (count_months * 23.59) * 0.9625
- elif type_of_contract == "ExtraLarge":
- if mobile_internet == "yes":
- total_sum = (count_months * 31.79) + (5.50 * count_months) * 0.9625
- else:
- total_sum = (count_months * 31.79) * 0.9625
- print(f"{total_sum:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement