The cost of ending inventory under the average-cost method is $75,250.
The average cost method is a method used to determine the cost of inventory in which the cost of goods sold is determined by determining the weighted average of the cost of inventory.
Average cost method = total cost of inventory bought / total units bought
(5,000 x $8) + (15,000 x 10) + (20,000 x 12) = $430,000
Total units bought = 5000 + 15,000 + 20,000 = 40,000
Price of inventory = $430,000 / 40,000 = $10.75
Cost of ending inventory = $10.75 x 7000 = $75,250.
Please find attached an image that contains more information. To learn more, please check: https://brainly.com/question/14272486?referrer=searchResults