LO8-04: In a periodic inventory system, determine the ending inventory and the cost of goods sold using (a) specific identification, (b) average cost, (c) FIFO, and (d) LIFO.