The pizza store wants to know how long each order will take. They know:

- Prepping a pizza takes 3 mins
- Cook a pizza takes 10 mins
- Every salad takes 3 mins to make
- Every appetizer takes 5 mins to make
- There are 2 pizza ovens
- 5 pizzas can fit in a oven
- Prepping for a pizza must be done before it can be put in the oven
- There are two pizza chefs and one chef for appitizers and salads combined
- The two pizza chefs can work on the same pizza

Write a function, order, which will tell the company how much time the order will take.

See example tests for details.

Difficulty: introductory

Starter code:

def order(pizzas, salads, appetizers):
	

Solutions:
from math import ceil

def order(pizzas, salads, appetizers):
    tp = 3 * pizzas / 2 + 10 * math.ceil(pizzas / 10)
    ts = 3 * salads + 5 * appetizers
    return max(tp, ts)


def order(pizzas, salads, appetizers):
    side_total = 0
    pizza_total = 0 
    side_total += salads * 3 
    side_total += appetizers * 5
    pizza_total += pizzas * 1.5
    if pizza_total <= 10:
        pizza_total += 10
    elif pizza_total >= 10:
        pizza_total += 10 * 2
    return max(side_total, pizza_total)

def order(pizzas, salads, appetizers):  
    pizza_time = 3 * (pizzas / 2) + 10 * ((pizzas // 11) + 1)
    other_time = 3 * salads + 5 * appetizers

    return max(other_time, pizza_time)

import math

def order(pizzas, salads, appetizers):
    return max(pizzas * 1.5 + math.ceil(pizzas / 10)*10, salads * 3 + appetizers * 5)

def order(p, s, a):
    return max(p*1.5+p//-10*-10,s*3+a*5)


def order(pizzas, salads, appetizers):
    time = 0
    if pizzas > 0:
        time = (pizzas * 3) / 2
        oven_cycles = (pizzas // 10) + 1
        time = time + (oven_cycles * 10)
        time_2 = (salads * 3) + (appetizers * 5)
        if time > time_2:
            return time
        else:
            return time_2
    else:
        time_2 = (salads * 3) + (appetizers * 5)
        return time_2
    


from math import ceil
def order(pizzas, salads, appetizers):
    p=(pizzas/2)*3+ceil(pizzas/10)*10
    sa=3*salads+5*appetizers
    return max(p,sa)

import math

def order(pizzas, salads, appetizers):
    pizza_prep = 3 * pizzas / 2
    pizza_cook = math.ceil(pizzas / 10) * 10
    salad_prep = salads * 3
    app_prep = appetizers * 5
    return max([pizza_prep + pizza_cook, salad_prep + app_prep])

def order(pizzas, salads, appetizers):
    pizza_time = (3 * pizzas / 2) + 10 * (pizzas // 10 + 1) 
    salad_app_time = 3 * salads + 5 * appetizers
    return max(pizza_time, salad_app_time)

def order(pizzas, salads, appetizers):
    if pizzas <= 10:
        pizzas= 10 + 1.5 * pizzas
    elif pizzas <=20:
        pizzas = 20 + 1.5 * pizzas
    if pizzas > salads*3 + appetizers*5: 
        return pizzas
    else: 
        return salads*3 + appetizers*5