Compute the cost of the ending inventory and the cost of goods sold under FIFO, LIFO, and average cost.