Write a program that simulates inventory bins in a warehouse

Assignment Help Computer Engineering
Reference no: EM131654763

Assignment: Inventory Bins

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 structure that keeps the following data:

1. Description of the part kept in bin
2. 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 specified number.

RemoveParts: a function that 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.

Reference no: EM131654763

Questions Cloud

Experience of streaming movies : How does your calculated result over a copper wire compare to your own experience of streaming movies on the Internet? What is your conclusion?
How to reduce the percentage of appliances : The research department of an appliance manufacturing firm has developed a solid-state switch for its blender that the department claims will reduce.
What characterized the successful adjustments : What characterized the successful adjustments? The unsuccessful ones? Do these characteristics apply to an innovative organization?
Example of an application of a graph : Give an example of an application of a graph in computer science. Indicate whether the graph is directed or undirected.
Write a program that simulates inventory bins in a warehouse : Write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts.
What are the ethical thoughts on printing weapons : Overall, 3D printing technology is beneficial to society and will only continue to grow and increase in capability.
Find the average time required for typing the business form : Jody wishes to have an estimate of the smallest and biggest differences that might exist in the average time required for typing the business form.
Visiting a planet where the inhabitants : The Starship Enterprise is visiting a planet where the inhabitants have 8 fingers. Not surprisingly, they use a base 8 numbering system.
Concept impact the cybersecurity discussion : Clarke and other leaders in cybersecurity put the nation's power systems at the top-tier of our defensive actions against cyber attack.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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