Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions