Question: 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

 Write a small C program which holds the locations of items

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 locations on the shelves) Allow the user to add items to the shelves by giving the name, price, and location. 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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!