##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 04\04.04 - Calculating the monthly fee for a cell phone plan from the operator Bye.py
# Description: Calculating the monthly fee for a cell phone plan from the operator Bye
##############################################################################
plan = input("What's your cell phone plan? ")
if plan == "LittleTalk":
minutes_on_plan = 100
extra = 0.20
price = 50
if plan == "TalkMore":
minutes_on_plan = 500
extra = 0.15
price = 99
if plan != "LittleTalk" and plan != "TalkMore":
print("I don't know this plan")
if plan == "LittleTalk" or plan == "TalkMore":
minutes_consumed = int(input("How many minutes did you consume? "))
print("You will pay:")
print(f"Plan price ${price:10.2f}")
supplement = 0
if minutes_consumed > minutes_on_plan:
supplement = extra * (minutes_consumed - minutes_on_plan)
print(f"Supplement ${supplement:10.2f}")
print(f"Total ${price + supplement:10.2f}")