If you dont know then skip it, if you click  on reject i will report your account. Clearly read the NOTE given above the question. write the program in C or C++, Code/output screenshot. Correct answer will get 3 likes Dont do copy paste. do it in 40 minutes. Note:-String data type not allowed instead use CString with null termination else you will get 0. Question : Your task is to design a departmental store management system. The store has multiple shelves with numbers on it for placing multiple items, initially the shelf is empty, means that there is no item on the shelf. The store consists of k number of shelves, and each shelf has exactly p number of positions for items to be placed on it. The store wants to design a software to keep the records of item on the shelves. The software should be able to perform the following operations: 1. Insert the item at a particular position in a given shelf, if it's empty else place the item in the first empty location in that shelf, and if there is no location empty on that shelf then do not insert it and display the appropriate message to the user. 2. Display all the items in a given shelf. 3. Remove the item from particular position in a given shelf if it is there. 4. Remove all the item from a given shelf 5. Return total number of the items in the specified shelf 6. Return the total number of items in all the shelves. 7. Find item in the store and return the shelf number and its position if it exists. 8. Update the item at given position (can be empty or filled) by replacing it with the new item. 9. Check if the shelf is empty 10. Check if the shelf is full Your process will start for asking number of shelves (k) and (p) positions on each shelf (Each shelf can have varying storage positions) Sample Input/Output: Enter no of shelves: 2 Enter no of positions on each shelf: 4 *******Menu********** Press 1 for inserting an item. Press 2 for Displaying all items.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

If you dont know then skip it, if you click  on reject i will report your account.
Clearly read the NOTE given above the question.

write the program in C or C++, Code/output screenshot.
Correct answer will get 3 likes
Dont do copy paste.
do it in 40 minutes.

Note:-String data type not allowed instead use CString with null termination else you will get 0.

Question : Your task is to design a departmental store management system. The store has multiple shelves with numbers on it for placing multiple items, initially the shelf is empty, means that there is no item on the shelf. The store consists of k number of shelves, and each shelf has exactly p number of positions for items to be placed on it. The store wants to design a software to keep the records of item on the shelves. The software should be able to perform the following operations:

1. Insert the item at a particular position in a given shelf, if it's empty else place the item in the first empty location in that shelf, and if there is no location empty on that shelf then do not insert it and display the appropriate message to the user.

2. Display all the items in a given shelf.

3. Remove the item from particular position in a given shelf if it is there.

4. Remove all the item from a given shelf

5. Return total number of the items in the specified shelf

6. Return the total number of items in all the shelves.

7. Find item in the store and return the shelf number and its position if it exists.

8. Update the item at given position (can be empty or filled) by replacing it with the new item.

9. Check if the shelf is empty

10. Check if the shelf is full

Your process will start for asking number of shelves (k) and (p) positions on each shelf (Each shelf can have varying storage positions)


Sample Input/Output:

Enter no of shelves: 2

Enter no of positions on each shelf: 4

*******Menu**********

Press 1 for inserting an item.

Press 2 for Displaying all items.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY