FIFO and LIFO Calculator

<--- Enter P (purchase) or C (cost), Units, and then Cost