Answer:
#Here is program in Python
#read the minutes
minutes=int(input("Please enter the minutes:"))
#charge if minutes <=300
if minutes<=300:
m_charge=30
# charge if minutes>300
else:
m_charge=30+(minutes-300)*0.45
#print the charge
print("monthly charge is: $",m_charge)
Explanation:
Read the total used minutes of month and assign it to variable "minutes".If theused minutes are less or equal to 300 then monthly charge is $30.If the used minutes are greater then 300 then for first 300 minutes charge is $30 and for additional minutes multiply by 0.45 and sum them.This will be the monthly charge.
Output:
Please enter the minutes:310
monthly charge is: $ 34.5