Write a java program to handle the flow of widgets into and outof a warehouse. The warehouse will have numerous deliveries of newwidgets and orders for widgets. The widgets in a filled order arebilled at a profit of 50 percent over their cost. Each delivery ofnew widgets may have a different cost associated with it.
The accountants for the firm have instituted a LIFO system fortracking widgets-on-hand. This means that the newest widgets arethe first ones sent out to fill an order. The accountants for thefirm have instituted a FIFO system for tracking orders. This meansthe most recent orders are filled
OR
OR