Computers and Technology

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).

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:00, SKYBLUE1015
What are the different parts of computer
Answers: 2
image
Computers and Technology, 23.06.2019 18:30, DSUDLER5555
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
image
Computers and Technology, 23.06.2019 22:00, rocksquad9125
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
image
Computers and Technology, 24.06.2019 07:00, sudotoxic
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
Do you know the correct answer?
Write a small c program which holds the locations of items on a shelving unit. specifically, your pr...

Questions in other subjects: