subject

C Code 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 10Bearing 5Bushing 15Coupling 21Flange 7Gear 5Gear Housing 5Vacuum Gripper 25Cable 18Rod 12The program should have the following functions: Add Parts: function that increases a specific bins part count by a specified number. Remove Parts: a function that decreases a specific bins part count by a specified number. When the program runs, it should repeat a loop that performs the following steps:1) The user should see a list of what each bin holds and how many parts are in each bin.2) 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.-- Don't accept negative values for the number of arts being
added or removed. DEMONSTRATE ALL FUNCTIONALITY in your program including your Input Validation.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:30, glocurlsprinces
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, kp2078
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
image
Computers and Technology, 23.06.2019 19:00, amayax77
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
image
Computers and Technology, 24.06.2019 15:00, firdausmohammed80
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
C Code Write a program that simulates inventory bins in a warehouse. Each bin holds a number of th...

Questions in other subjects:

Konu
Physics, 21.01.2021 22:20