Write a program using 2D array to keep track stationary store inventory. The store sells various items. For each item in the store, the following information is entered: item ID, item name, number of pieces ordered, number of pieces currently in the store, number of pieces sold, manufacturer’s price for the item, and the store’s selling price. At the end of each week, the store manager would like to see a report in the following form: Happy Stationary Store               itemID itemName pOrdered pInStore pSold manufPrice sellingPrice 1111 Pencil 120 180 80 5.00 8.00 1112 A4 Paper 150 100 50 10.00 14.00 :             :                           Total Inventory: RM #####.##     Total number of items in the store: ________________ The total inventory is the total selling value of all of the items currently in the store. The total number of items is the sum of the number of pieces of all of the items in the store.   b) In order to use 1D or 2D array, programmer need to become familiar with declaring and manipulating arrays, as well as using arrays as parameters. Describe the need for an array when processing items that are the same data type and represent the same conceptual item.

c++ shell

a) Write a program using 2D array to keep track stationary store inventory. The store sells various items. For each item in the store, the following information is entered: item ID, item name, number of pieces ordered, number of pieces currently in the store, number of pieces sold, manufacturer’s price for the item, and the store’s selling price. At the end of each week, the store manager would like to see a report in the following form:

Happy Stationary Store

             

itemID

itemName

pOrdered

pInStore

pSold

manufPrice

sellingPrice

1111

Pencil

120

180

80

5.00

8.00

1112

A4 Paper

150

100

50

10.00

14.00

:

 

 

 

 

 

 

:

 

 

 

 

 

 

             

Total Inventory: RM #####.##

 

 

Total number of items in the store: ________________

The total inventory is the total selling value of all of the items currently in the store. The total number of items is the sum of the number of pieces of all of the items in the store.

 

b) In order to use 1D or 2D array, programmer need to become familiar with declaring and manipulating arrays, as well as using arrays as parameters.

  1. Describe the need for an array when processing items that are the same data type and represent the same conceptual item.
  2. Discuss the syntax involved in accessing array components. Review the use of the array subscripting operator with the code 2(a).
  3. Describe some common operations typically performed on arrays.
  4. Explain the consequences of using an array index that is out of bounds and discuss some common coding errors that can result in an out of bounds array index.
  5. Explain in more detail why C++ only allows arrays to be passed as reference parameters.
Tired of numerous paper assignments?
Rely on us and receive professional paper writing assistance!
Professional paper Writing Assistance

Who We Are

We are a professional website for customized writing. If you searched a question and stumbled into our website, you are in the right place to receive assistance with your coursework.

Do you handle any type of coursework?

Yes. We have displayed prior orders to demonstrate our experience. We can answer this question for you as we have previously. Please fill out our Order Form so that we may ensure its flawlessness. Correctly completing the order form will help our staff with reference, requirements, and future communication.

Is it hard to Place an Order?

  1. Click on the “Order Now” tab at the top menu or “GET A FREE QUOTE” icon at the bottom and a new page will appear with an order form to be filled
  2. Fill in the initial requirements in the small order form located on the home page and press “continue” button to proceed to the main order form or press “order” button in the header menu. Starting from there let our system intuitively guide you through all steps of ordering process. Submit detailed paper instructions, upload necessary files if needed and provide your contact information – you are almost done!
  3. Proceed with the payment- click on “PROCEED TO CHECKOUT” at the bottom of the page. From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it. All your payments are processed securely through PayPal. This enables us to guarantee a 100% security of your funds and process payments swiftly.
  4. Delivery- Once finished, your final paper will be available for download through your personal dashboard. You will also receive an email notification with a copy of your paper attached to it.