def hotdogs(angie, jasmine): """ Returns the number of hotdogs required for the party. Parameters: angie -- the number of hotdogs angie will eat jasmine -- the number of hotdogs jasmine will eat """ chris = 2 * jasmine brenda = chris - 1 wenting = (brenda + 1) // 2 + 1 # add 1 to brenda to round up total_hotdogs = angie + jasmine + chris + brenda + wenting return total_hotdogs def soda(num_people): """ Returns the number of sodas required for num_people """ return 2 * num_people def bbq_cost(angie, jasmine, num_people): """ Calculates the total cost of the BBQ """ soda_cost = 0.5 hotdog_cost = 0.75 num_hotdogs = hotdogs(angie, jasmine) num_sodas = soda(num_people) return num_sodas * soda_cost + num_hotdogs * hotdog_cost def bbq_plan(angie, jasmine, num_people): """ Prints out the plan for the BBQ """ print("We need to buy " + str(hotdogs(angie, jasmine)) + " hotdogs") print(" and " + str(soda(num_people)) + " sodas for a total") print(" cost of $" + str(bbq_cost(angie, jasmine, num_people)))