In a periodic inventory system, the quantity of ending inventory is determined by_______.
subtracting units sold from units purchased
a physical inventory count
looking at the balance in the inventory account
subtracting cost of goods sold from the beginning inventory balance