Average cost method assigns a cost to inventory items based on the total cost of goods purchased in a period divided by