![]() |
|
![]() | ||
|
Subject:
program to implement queue using fifo( description given below) in C
Category: Computers > Programming Asked by: frozenice-ga List Price: $5.00 |
Posted:
21 Feb 2003 15:23 PST
Expires: 23 Mar 2003 15:23 PST Question ID: 165396 |
Write a program in C to monitor the flow of an item into and out of a warehouse. The warehouse will have numerous deliveries and shipments for the item (a widget) during the time peroid covered. A shipment out is billed at a profit of 50 percent over the cost of a widget. Unfortunately, each shipment received may have a different cost associated with it. The accountants for the firm have instituted a first-in, first-out system for filling orders. This means that the oldest widgets are the first ones sent out to fill an order. This method of inventory can be represented using a queue. Each data record will consist of S or O: shipment received or an order to be sent #: Quanitity received or shipped out Cost: Cost er widget (only for a shipment received) Vendor: Character string that names company snt to or received from (up to 20 characters) Write the necessary functions to store the shipments received and to process orders. The output for an order will consist of the quantity and the total cost for all the widgets in the order. (Hint: Each widget price is 50 percent higher than its cost. The widgets used to fill an order may come from multiple shipments with different costs.) also, Write address and contents of each link to an output file. Get the name of the output file at runtime as an argument to main. | |
| |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |