Final answer:
Using the FIFO method, the cost of the ending inventory at June 30 is $2,465. Using the LIFO method, the cost of the ending inventory is $2,795.
Step-by-step explanation:
To calculate the cost of the ending inventory at June 30 using the first-in, first-out (FIFO) method, we need to consider the chronological order of purchases and sales. The remaining 5 units from the June 1 balance would be valued at $60 each, resulting in a total cost of $300. The 20 units purchased on June 8 would be valued at $61 each, totaling $1,220. Lastly, the remaining 15 units from the June 30 purchase would be valued at $63 each, resulting in a total cost of $945. Therefore, the cost of the ending inventory using FIFO would be $300 + $1,220 + $945 = $2,465.
To calculate the cost of the ending inventory at June 30 using the last-in, first-out (LIFO) method, we start with the most recent purchase. The 15 units purchased on June 30 would be valued at $63 each, resulting in a total cost of $945. Then, the 20 units purchased on June 20 would be valued at $62 each, totaling $1,240. Lastly, the remaining 10 units from the June 16 sale would be valued at $61 each, resulting in a total cost of $610. Therefore, the cost of the ending inventory using LIFO would be $945 + $1,240 + $610 = $2,795.