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

  Program reads the contents of employees

Design a program that reads the contents of the employees.dat file and prints all the data within it. Format the report as designated in the Printer Spacing Chart below.

  Display the equivalent prices

Test your application with 1.259 per liter against 4.50 per gallon. Once the decision is made, display the equivalent prices. (1 liter is 0.264172 gallons)

  Asignment1questionwrite a recursive function void reverse

assignment1questionwrite a recursive function void reverse that reverse a sentence.for examplesentence greeting new

  Define two derived classes of the abstract class

Define two derived classes of the abstract class ShapeBase below. Your two classes will be called RightArrow and LeftArrow. These classes will draw arrows that point right and left,

  Generate a random number and guess what the number is

Prepare a program in c++ that generates a random number and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display "Too high, try again."

  Derive the expression for variance of the continuous uniform

Derive the expression for variance of the continuous uniform probability distribution (we derived the expression for mean in class). Show your work.

  Write c program that forks two child processes

Write a C program that forks two child processes. The parent process will print all prime numbers up to 229, the first child process will print the first 50 Fibonacci numbers.

  Calculate the celsius equivalent of a fahrenheit temperature

Prepare a program to calculate the Celsius equivalent of a Fahrenheit temperature

  Program to record the temperature and pressure

Write a program to record the temperature and pressure values in a scientific experiment and store the data in two one-dimensional arrays, then identify the extreme values of pressure and temperature. The array size is 20.

  Whitewater high school has contracted

Whitewater High School has contracted you to write a program that will read a file of student names and test scores in the formation FIRST NAME LAST NAME: SCORE1 SCORE2 SCORE3, where each of the scores is an integer

  Q1 write a menu-driven program that maintains an address

q1. write a menu-driven program that maintains an address book using a linked list. the address book must supports the

  Section instance variables and encapsulation

What is the public interface of the counter class in section instance variables and encapsulation?

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