Make sure to include all necessary validations in the OPERATIONS of the SHELF. Include validations as well in your MAIN PROGRAM in order to ensure that valid data at forwarded to your CLASS. Create a library for this ADT. Create a separate program that will implement the SHELF ADT. The program will show all available options that your program can do. You can only EXIT in the MAIN MENU. In snipping images of your answers, make sure that the names of the files are visible. Properly label the images as follows and should be pasted in the order stated below as well: o Header File (.h file)

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%
Consider the class definition of the ADT SHELF below:
class Shelf
{
Operation
(1) SHELF
}
(2) INSERT_BOOK
(3) REMOVE_BOOK
private:
string book[100][100];
int row, col;
public:
Shelf(int x, int y);
void Insert Book(string Book Title);
void Remove_Book(string Book Title);
void Display_Books() const;
int Count Space() const;
int Count Books() const;
int Find Book(string Book Title) const;
string View Book(int Book_Location) const,
bool Shelf Empty() const;
bool Shelf Full() const
void Load Book():
-Shelf();
(4) DISPLAY_BOOKS
(5) COUNT SPACE
(6) COUNT_BOOK
(7) PICK_BOOK
(8) VIEW_BOOK
(9) SHELF_EMPTY
(10) SHELF FULL
(11) LOAD BOOK
Description
Creates the two-dimensional array based
on the size provided by the user.
Insert a Book in the first available slot.
Remove a Book in the shelf and empty
the location.
Display all the books in the shelf.
Count all empty slots in the shelf.
Count all books in the shelf.
Required
Choose only 1 among options (5)-(8)
Choose only 1 among options (5)-(8)
Display the location where a given book is Choose only 1 among options (5)-(8)
allocated.
Choose only 1 among options (5)-(8)
Required
Required
Required
Display the title of the book stored in a
given location.
Check if the shelf is empty.
Check if the shelf is full.
Required
Required
Required
Load a pre-defined list of 5 books in a
shelf that is empty. The list will be coming
from a .txt file.
Delete all the books in the shelf.
Modules to Develop
(12)-SHELF
Requirements:
•
Define a class called SHELF. Follow the provided CLASS DEFINITION.
Create and code OPERATIONS listed above for the data structure SHELF.
• Use authentic book titles to store in your SHELF.
Required
Transcribed Image Text:Consider the class definition of the ADT SHELF below: class Shelf { Operation (1) SHELF } (2) INSERT_BOOK (3) REMOVE_BOOK private: string book[100][100]; int row, col; public: Shelf(int x, int y); void Insert Book(string Book Title); void Remove_Book(string Book Title); void Display_Books() const; int Count Space() const; int Count Books() const; int Find Book(string Book Title) const; string View Book(int Book_Location) const, bool Shelf Empty() const; bool Shelf Full() const void Load Book(): -Shelf(); (4) DISPLAY_BOOKS (5) COUNT SPACE (6) COUNT_BOOK (7) PICK_BOOK (8) VIEW_BOOK (9) SHELF_EMPTY (10) SHELF FULL (11) LOAD BOOK Description Creates the two-dimensional array based on the size provided by the user. Insert a Book in the first available slot. Remove a Book in the shelf and empty the location. Display all the books in the shelf. Count all empty slots in the shelf. Count all books in the shelf. Required Choose only 1 among options (5)-(8) Choose only 1 among options (5)-(8) Display the location where a given book is Choose only 1 among options (5)-(8) allocated. Choose only 1 among options (5)-(8) Required Required Required Display the title of the book stored in a given location. Check if the shelf is empty. Check if the shelf is full. Required Required Required Load a pre-defined list of 5 books in a shelf that is empty. The list will be coming from a .txt file. Delete all the books in the shelf. Modules to Develop (12)-SHELF Requirements: • Define a class called SHELF. Follow the provided CLASS DEFINITION. Create and code OPERATIONS listed above for the data structure SHELF. • Use authentic book titles to store in your SHELF. Required
Make sure to include all necessary validations in the OPERATIONS of the SHELF. Include validations as well
in your MAIN PROGRAM in order to ensure that valid data at forwarded to your CLASS.
• Create a library for this ADT.
Create a separate program that will implement the SHELF ADT. The program will show all available options
that your program can do. You can only EXIT in the MAIN MENU.
In snipping images of your answers, make sure that the names of the files are visible. Properly label the
images as follows and should be pasted in the order stated below as well:
o Header File (.h file)
o Implementation File (.cpp)
o Main Program (.cpp)
Put necessary comments.
Show sample output for each operation.
You are required to use Microsoft Visual Studio.
Transcribed Image Text:Make sure to include all necessary validations in the OPERATIONS of the SHELF. Include validations as well in your MAIN PROGRAM in order to ensure that valid data at forwarded to your CLASS. • Create a library for this ADT. Create a separate program that will implement the SHELF ADT. The program will show all available options that your program can do. You can only EXIT in the MAIN MENU. In snipping images of your answers, make sure that the names of the files are visible. Properly label the images as follows and should be pasted in the order stated below as well: o Header File (.h file) o Implementation File (.cpp) o Main Program (.cpp) Put necessary comments. Show sample output for each operation. You are required to use Microsoft Visual Studio.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 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