Learn how to calculate cost of merchandise sold and cost of ending inventory using the perpetual LIFO method of inventory valuation.