Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using c++. After you write the code and run the code then take pictures of the output. I need the output and also put the

Using c++. After you write the code and run the code then take pictures of the output. I need the output and also put the code so I could copy the code. Make sure you put the picture of the output. Thank you image text in transcribed
image text in transcribed
This program assumes that a company has warehouses in 5 cities: New York, Los Angeles, Miami, Houston, and Chicago. In each warehouse the company stocks three items. A record contains the amount of each Item currently in each warehouse. The record should contaln an array of 5 warehouses with the name of each warehouse and an array of the 3 itams with the amount that is currently in stock in the warehouse Inibally the warehouses are emplty. Read in a card containing the three prices of the three items. Then 1. Shipment carde containing This data represents a shipment to a glven city of amt1 of item1, amt2 of item2, and amt3 of item3. 2. Order cards contalning.. o city This data represents an order in a glven city of the respective amounts of the various Items. As each shipment card is read in, print it out, update the amounts in that warehouse and then print on the next line: city amt amt2 amt3 As each order card is read in, print it out. If there is enough in stock at that warehouse of each tem, update the amounts. If there is not enough, search the other warehouses for the one which has the most of that particular item, ship the amount needed from one warehouse to the other, printing out: x of item y shipped from city1 to citya and city1 amt1 am12 amt3 10% extra is to be charged for any item shipped from one city to another. enough extra to fill the order for a particular item, print out If no single warehouse has Order Unfilled However any shipments of the previous items remain in effect. In either case print out the adjusted... city amt1 amt2 amt3 And if the order if filled print.. Price of Order: Price

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

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions