Final answer:
The times interest earned ratio is 4.
Step-by-step explanation:
The times interest earned ratio measures a company's ability to cover its interest expenses with its operating income. To calculate the ratio, divide the company's operating income (gross profit - operating expenses) by its interest expense.
In this case, the company's operating income is $340,000 - $180,000 = $160,000, and its interest expense is $40,000. Therefore, the times interest earned ratio is $160,000 / $40,000 = 4.