Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions