Question & Answer: Your sister has a cell phone and after a month of use is trying to decide which price plan is the best for her usage pattern. She…..

How do I compute this two phone plans to find out which one is the better deal? Using python 3.6
Your sister has a cell phone and after a month of use is trying to decide which price plan is the best for her usage pattern. She has two options, each plan has different costs for daytime minutes, evening minutes and weekend minutes (remember this is from the olden days when unlimited calling was rare and expensive) Costs A 100 free minutes, then 1Se/minute B 250 free minutes, then 35e/minute Plan Weekend 20c/minute Evening Daytime 25e/minute 45c/minute 25c/minute Wite a program that will input the number of each type of minutes and output the cheapest plan for this usage patterm, using the format shown below. The input will be in the order of daytime minutes, evening minutes and weekend minutes. If the two plans are the same price, print an appropriate message.

Your sister has a cell phone and after a month of use is trying to decide which price plan is the best for her usage pattern. She has two options, each plan has different costs for daytime minutes, evening minutes and weekend minutes (remember this is from the “olden days” when unlimited calling was rare and expensive) Costs A 100 free minutes, then 1Se/minute B 250 free minutes, then 35e/minute Plan Weekend 20c/minute Evening Daytime 25e/minute 45c/minute 25c/minute Wite a program that will input the number of each type of minutes and output the cheapest plan for this usage patterm, using the format shown below. The input will be in the order of daytime minutes, evening minutes and weekend minutes. If the two plans are the same price, print an appropriate message.

Expert Answer

 

daytimeminutes = int(input(“Enter the day time minutes: “))
eveningtimeminutes = int(input(“Enter the day evening minutes: “))
weekendtimeminutes = int(input(“Enter the day weekend minutes: “))
totalPlanAAmount = 0
totalPlanBAmount = 0
if daytimeminutes > 100:
daytimeminutes = daytimeminutes – 100
totalPlanAAmount = totalPlanAAmount + daytimeminutes * 25;
totalPlanAAmount = totalPlanAAmount + eveningtimeminutes * 15;
totalPlanAAmount = totalPlanAAmount + weekendtimeminutes * 20;

if daytimeminutes > 250:
daytimeminutes = daytimeminutes – 250
totalPlanBAmount = totalPlanBAmount + daytimeminutes * 45;
totalPlanBAmount = totalPlanBAmount + eveningtimeminutes * 35;
totalPlanBAmount = totalPlanBAmount + weekendtimeminutes * 25;

if totalPlanBAmount < totalPlanAAmount:
print(“Plan B is the better plan to choose”)
elif totalPlanBAmount > totalPlanAAmount:
print(“Plan A is the better plan to choose”)
else:
print(“Both plans A and B are same”)

Output:

Enter the day time minutes: 200
Enter the day evening minutes:20 
Enter the day weekend minutes: 30
Plan B is the better plan to choose
Still stressed from student homework?
Get quality assistance from academic writers!