when using the weighted-average cost method to determine the cost of inventory, the weighted-average cost per unit is calculated as the a. cost of goods sold divided by the number of units sold. b. cost of goods sold divided by the average number of units in inventory. c. cost of goods available for sale divided by the number of units available for sale. d. cost of goods in ending inventory divided by the number of units in ending inventory.