Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Read all parts from top to buttom. However just answer the last part. All parts

ID: 3751343 • Letter: R

Question

Read all parts from top to buttom. However just answer the last part. All parts are related, thats why i uploaded the whole question. (Just answer cost_effiecient_plan section)

Make sure to solve it by PHYTHON.

Thanks

Tasks GMU-Mobile, a new cell phone initiative by GMU, is offering three new cell phone plans to its students starting 2019. Your task is to help your friends decide which cell phone plan to purchase based on their monthly usage Refer to the table below to see a description of the monthly plans. Plan Cost Per Month (S) S15 $20 S25 Free Calls (minutes) Texts 100 175 250 Free Price for additional Price for additional calls per minute (S) text (S) 1.50 1.25 Basic Standard Premium 1000 1500 2000 0.75 0.5 0.25

Explanation / Answer

def cost_efficient_plan(age, major, is_in_military, gpa, num_minutes, num_text):
  
    #
    # This function first calculates the cost of every
    # plan after that it finds the least cost and returns
    # the name of the least cost plan.
    #
  
    #basic plan cost
    basic_plan_cost = calculate_cost("basic", num_minutes, num_text)
  
    #if discount is applicable, apply 20% discount:
    if discount(age, major, is_in_military, gpa) == True:
        basic_plan_cost = basic_plan_cost - (basic_plan_cost*0.2)
  
    #standard plan cost
    standard_plan_cost = calculate_cost("standard", num_minutes, num_text)

    #premium plan cost
    premium_plan_cost = calculate_cost("premium", num_minutes, num_text)
  
    #if basic plan cost is least, return the string "basic"
    if (basic_plan_cost < standard_plan_cost) and (basic_plan_cost < premium_plan_cost):
        return "basic"
  
    #if standard plan cost is least, return the string "standard"
    if (standard_plan_cost < basic_plan_cost) and (standard_plan_cost < premium_plan_cost):
        return "standard"
  
    #if premium plan cost is least, return the string "premium"
    if (premium_plan_cost < basic_plan_cost) and (premium_plan_cost < standard_plan_cost):
        return "premium"
  
    #Tie breakers:
  
    #if basic plan and standard plan costs are equal, return "standard".
    #Since standard plan has more number of free minutes.
    if basic_plan_cost == standard_plan_cost > premium_plan_cost:
        return "standard"
  
    #if premium plan and standard plan costs are equal, return "premium".
    #Since premium plan has more number of free minutes.
    if standard_plan_cost == premium_plan_cost < basic_plan_cost:
        return "premium"
  
    #if basic plan and premium plan costs are equal, return "premium".
    #Since premium plan has more number of free minutes.
    if basic_plan_cost == premium_plan_cost < standard_plan_cost:
        return "premium"

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote