Answer to Question #29227 in Java | JSP | JSF for Anuradha
Suppose that you are a financier and purchase 100 shares of stock in Company X in each of January, April and September and sell 100 shares in each of June and November. The prices per share in these months were:
Determine the total amount of your capital gain or loss using (a)FIFO (first in, first out) accounting and (b) LIFO (last in, first out) accounting (that is assuming that you keep your stock certification in (a) a queue or (b) a stack using C language). The 100 shares you still own at the end of the year do not enter the calculation.
Unfortunately,your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.