Question: need it in c++ CSE 112 - Introduction to Computer Science II // Constant for array size const int NUM_BINS =10; // Declaration of the

need it in c++

need it in c++ CSE 112 - Introduction to Computer Science II// Constant for array size const int NUM_BINS =10; // Declaration of

CSE 112 - Introduction to Computer Science II // Constant for array size const int NUM_BINS =10; // Declaration of the InventoryBin structure struct InventoryBin \{ string description; // Item description int num; // Number of parts in a bin \}; // Array of InventoryBins initialized InventoryBin bins[NUM_BINS] ={ { "Valve", 10\}, \{"Bearing", 5\}, \{"Bushing", 15\}, \{"Coupling", 21\}, \{"Flange", 7\}, \{"Gear", 5\}, \{"Gear Housing", 5\}, \{"Vacuum Gripper", 25\}, \{"Cable", 18\}, { "Rod", 12\}\}; CSE 112 - Introduction to Computer Science II CSE 112 - Lab \#1 Inventory Bins - Array of Structures Ref: Chapter 11 Programming Challenge \#14 (page 674) Write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts. The program shall use an array of 10 structures: The program will create an array of ten (10) structures, initialize the struct members with the data on page 674 (initialization included on next page), and meet with the requirements of the challenge. Users select a bin by number and can add or remove a number of parts. Input should be validated. The program shall not accept negative numbers to add or remove, a user cannot remove more items than are in the bin, and a bin cannot exceed 30 parts. Grading will be based on meeting all of the lab requirements, adherence to programming standards, operation and accurate output, and programming style including white space and indentation. The grade penalty is 3 points for each standards violation and 5 points for each missing requirement. Sample output

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!