In a periodic inventory system, the cost of goods sold is calculated as
A.
beginning inventory plus the cost of goods purchased less ending inventory.
B.
ending inventory less cost of goods purchased.
C.
beginning inventory less cost of goods purchased.
D.
cost of goods purchased plus ending inventory less beginning inventory.