Question: The program need to be done with java please. Project #1 Stacks and Queues You are to write a program that will handle the inventory

 The program need to be done with java please. Project #1
Stacks and Queues You are to write a program that will handle
The program need to be done with java please.

Project #1 Stacks and Queues You are to write a program that will handle the inventory for "widgets". For bookkeeping purposes, the management of the inventory will follow a LIFO structure. We will assume that the cost of the widgets will increase with time, and that the price charged will be based on the most recent (and therefore highest cost shipment of widgets received. Customers will be charged a 40% markup over the cost. For bookkeeping, we will keep track of the amount charged to the customer, and the actual cost of the widgets that were sold. For example: Shipments received: 100 widgets S1.35 50 widgets S1.40 75 widgets a S1.45 Customer order for 200 widgets. The customer will be charged 40% over the highest cost, si.45 for the 200 widgets 200 a 2.03 S406.00 for the Customer receipt. Actual cost: 75 a 1.45 108.75 50 a 1.40 70.00 75 a 1.35 101.25 Total cost-$280.00 for the bookkeeper's records. Shipments will be received (saved in the appropriate structure) and sold in the order requests are received. If there are not enough widgets in stock for a sale, the balance of the customer's order will be placed on backorder (stored in an appropriate structure), and filled when the next shipment comes in, at the price they would have been charged, not the new price. I will post a text file with data like: R 3001.00 (Received a shipment of 300 widgets at S1.00) R 5001.03 eceived a shipment of 500 widgets at S1.03) S 200 (Customer order: sell 200 widgets) on each sale, you should "display" the customer's receipt and the bookkeeper's data Each transaction should be processed as it is posted (read in) You may use the Java data structures that are appropriate, the ones from the textbook, or write your own, and your program should be organized

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!