# Function that calculate sales totals and return output def sales_total(quantity) if quantity >= 100 price = 8 quantity * price elsif quantity < 100