subject

Write a small c program which holds the locations of items on a shelving unit. specifically, your program should: contain a struct representing an item on the shelf. it needs only contain the item’s name and price. ask the user for the number of shelves in the unit, and the number of "slots" available on each shelf which can hold items. from the above, build a two dimensional array of item structs. the array represents locations on the shelving unit (rows = shelves, columns = slots on the shelves). allow the user to add items to the shelves by giving the name, price, and location by reading input in the format: , , , allow the user to indicate they are done adding items. at this point the user should be able to enter the coordinate of an item in the shelving unit and the program should print out the information about the selected item (or some message if that slot is empty).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
What is the main benefit of minimizing the ribbon in word? more options will be accessible through customized keystrokes. more of the document will be viewable without needing to scroll. fewer controls will be accessible to the user by using the mouse. fewer editing options will be available without entering a password.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
You know the right answer?
Write a small c program which holds the locations of items on a shelving unit. specifically, your pr...
Questions
Questions on the website: 13722361