Inventory Bins
Write a
Description of the part kept in the bin
Number of parts in the bin
The program should have an array of 10 bins, initialized with the following data:
Part Description | Number of Parts in the Bin |
Valve | 10 |
Bearing | 5 |
Bushing | 15 |
Coupling | 21 |
Flange | 7 |
Gear | 5 |
Gear Housing | 5 |
Vacuum Gripper | 25 |
Cable | 18 |
Rod | 12 |
The program should have the following functions:
AddParts—increases a specific bin’s part count by a specified number.
RemoveParts—decreases a specific bin’s part count by a specified number.
When the program runs, it should repeat a loop that performs the following steps: The user should see a list of what each bin holds and how many parts are in each bin. The user can choose to either quit the program or select a bin. When a bin is selected, the user can either add parts to it or remove parts from it. The loop then repeats, showing the updated bin data on the screen.
Input Validation: No bin can hold more than 30 parts, so don’t let the user add more than a bin can hold. Also, don’t accept negative values for the number of parts being added or removed.
Want to see the full answer?
Check out a sample textbook solutionChapter 11 Solutions
Starting Out with C++ from Control Structures to Objects (9th Edition)
Additional Engineering Textbook Solutions
Starting Out with C++: Early Objects (9th Edition)
Modern Database Management
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Mechanics of Materials (10th Edition)
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
INTERNATIONAL EDITION---Engineering Mechanics: Statics, 14th edition (SI unit)
- Pattern RecognitionPCA algorithmplease write the steps not only last answerarrow_forwardPlease original work Final Project: Part I Background Information: E-TechMart, established in 2005, has grown to become a leading global electronics retailer, renowned for its extensive range of electronic devices and accessories. With a robust online platform and numerous brick-and-mortar stores spread across various regions, E-TechMart serves millions of customers worldwide. The company's product offerings include the latest smartphones, laptops, tablets, smart home devices, and a variety of electronic accessories, catering to both individual consumers and businesses. E-TechMart has always prioritized customer satisfaction and aims to provide an exceptional shopping experience. This commitment is evident in their comprehensive customer service, competitive pricing, and a well-organized loyalty program that rewards repeat customers. Despite these strengths, E-TechMart faces increasing competition from other major players in the electronics retail market. To maintain its competitive…arrow_forwardCan you show me how to redesign the GameStop website using HTML and CSS using Sublime Text?arrow_forward
- Manhattan distancearrow_forwardAiwhat cost from Oradea to Goal which Eforie us A* Algorithm G(n)+H(n) last what ıs the costarrow_forwardWhat is the SELECT statement? give one reference with your answer What is a URL and what is it used for? give one reference with your answer What is e-mail, and what are its advantages? Give one reference with your answerarrow_forward
- What is the difference between the World Wide Web (WWW) and the Internet? Give two references from a journal along with your answer.arrow_forwardDiscuss with appropriate examples, the types of relationship in a database. Give two references from an article.arrow_forwardWhat is a cloud and why do we use it? Give one reference with your answer.arrow_forward
- What are triggers and how do you invoke a trigger on demand? give one reference with your anwer.arrow_forwardWhy is database normalization important? Give one reference with your answer.arrow_forwardDescribe the role of databases and database management systems in the context ofenterprise systems. Give two references with your answer.arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,