# List inputs so user can enter values p = float(input("Number of pizza orders ")) s = float(input("Number of salad orders ")) # Calculates pizza cost, salad cost, total cost of pizza and salad combined, delivery charge, total amount , and the discount. pizza_cost: float = (p * 15.99) salad_cost: float = (s * 7.99) total_cost: float = (pizza_cost + salad_cost) delivery_charge: float = (7 / 100 * total_cost) discount: float = 0 # Both of these if statements allow the discount to be applied on orders over 10 pizzas. It updates the variable to an actual discount. if p > 10: pizza_discount1: float = (15 / 100 * pizza_cost) discount += pizza_discount1 if s > 10: salad_discount1: float = (15 / 100 * salad_cost) discount += salad_discount1 # This if statement puts a minimum of $20 on delivery orders if 7% is under $20, and leaves it alone if delivery fee above $20. if delivery_charge < 20: delivery_charge = 20 #Calculate total amount due total_amount: float = (total_cost - discount + delivery_charge) print("Pizzas ordered:",p) print("Pizza cost $",pizza_cost) print("Salad cost $",salad_cost) print("Total $",total_cost) print("Discount $",discount) print("Delivery $",delivery_charge) print("Total amount $",total_amount)