Cost of goods sold is given by:

a. Beginning inventory + accounts payable - net purchases.
b. Net Purchases + beginning inventory - ending inventory.
c. Beginning inventory - net purchases + ending inventory.
d. Net purchases + ending inventory - beginning inventory.