Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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++
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 outputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started