Example illustrates how to use the gross profit method to estimate cost of goods sold and ending inventory.