In a period of rising prices, the inventory method that produces the lowest ending inventory is the:

average cost method.
LIFO periodic method.
FIFO perpetual method.
LIFO perpetual method.