Write a program that simulates inventory bins in a warehouse

Assignment Help C/C++ Programming
Reference no: EM13936789

Book: Starting out with C++: From Control Structures through Objects
Edition: 6th Edition
ISBN: 0321545885

Chapter - 11 (Structured Data)
Problem #14

IMPORTANT Note:
1) You MUST use the structure presented in the attached PDF file.
2) Use the functions insert, retrieve, delete, option menu.
3) Copy Constructor.

In C++, write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts. The program should use a structure that keeps the following data:
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: a function that increases a specific bin's part count by a specific number.

RemoveParts: a function that decreases a specific bin's part count by a specific 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.

Please see the attached PDF file, you will need it to complete this problem as directed.

Attachment:- 2Data Structure Chap11 Prob14.zip

Reference no: EM13936789

Questions Cloud

Marketing orientation and product orientation : Marketing Orientation and Product Orientation are, arguably, two opposite ends of the customer orientation spectrum. Write a report that: Identifies positive and negative aspects of each approach and draws conclusions
Target consumer-buyer analysis-segmentation and targets : Develop a table that identifies the a. Segments in market b. Customer needs for each segment c. Corresponding features and benefits desired  d. Size of segments
What portion of the plan would you like to implement : What small group have you selected (for example, three families with young children, a group of five AIDS patients, and so on)? What made you select this particular group? What portion of the plan would you like to implement in the small group
Provide a description of cancer vaccinations : Provide a description of cancer vaccinations including an explanation of the difference between endogenous and exogenous categories of vaccines. Also, please provide several references for further elaboration of the topic.
Write a program that simulates inventory bins in a warehouse : In C++, write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts. The program should use a structure that keeps the following data:
Why would cancer cells express high levels of telomerase : The enzyme telomerase adds DNA to the ends of chromosomes. Why would cancer cells express high levels of telomerase?
Evaluation of plan effectiveness criteria : Evaluation of Plan Effectiveness Criteria - Would I be able to implement the interventions? If not, what barriers exist
Difficulty to get people take part in market research survey : It is becoming more and more difficult to get people to take part in market research surveys. What are the implications of this and what can market researchers do to encourage people to take part? - No more than a 1,000 words.
What are the mechanisms of dna repair : What is DNA repair? What are the mechanisms of DNA repair? What is DNA stability?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Determines whether the ascii value is valid for the base

Accept a number base value in another register. Determines whether the ASCII value is valid for the base. Use the AsciiToDigit procedure

  Read in data from an input file (qstr.txt).

It will print the output and say that it is NOT palindrome which leads me to believe it is missing something somehow.

  Approached to create a computer program

Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant.  That person is very bad at math and recently discovered that most customers have been significantly undercharged for meals. You have been approached to create a computer ..

  Write a program to determine how long ball moves

Using the v2 form of drag, write a program to determine how long (sec.) and how far (m) a 150 gram ball whose radius is 3.5cm would fall before it reached 75% of its terminal velocity.

  Compare the running time of two versions of the insertion

implement Uniform Random Number generator and Generate 1000 Random number between 0 an 10000. Try to use insertion sort to sort them. Compare the running time of two versions of the insertion sort.

  Local diner that allows customers to see the diner''s menu

Design a program to be used for a small local diner that allows customers to see the diner's menu and then make their meal selections using the program.The program will also calculate and print an itemized bill.

  Pairs of equivalent english spanish words

Create a program to implement a bi-lingual dictionary.set up an array to contain pairs of equivalent english spanish words.When an english word is input, looks up its spanish equivalent and display it.

  Develop the implementation file student.cpp

The data fields have self explanatory identifiers, and their meaning should be clear from the Introduction.

  Use a switch statement

Use a switch statement to write a program that prompts user to enter an character.

  An essential component of compromised to a resource

1. true or false? an essential component of compromised to a resource is that the situation resulting in the compromise was motivated by malice. A.true B.false

  Display the array, the average and the number of days above

Write a program that stores the daily temperatures for the month of April in an array name dailytemp. Calculate the average temperature for the month and the count the number of days that the daily temperature was above the average.

  Show the items by zone or location within the store

There is other information. Some people shop on a budget so they need the price and the sale price. Use an array or vector to hold the list of items. The display should show the items by zone or location within the store. (Display the output by loc..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd