[Solved] Objectives Linked List Pointer Dynamic Object Project Continuation Project 3 Program Accep Q37224785
in C++




Objectives: Linked List, Pointer, and Dynamic Object This project is a continuation from Project 3. The program should accept the same input data file and support the same list and find operations. Rather than use an array to storage all the book object, you will implement a Linked List data structure to storage dynamic book objects. Use the update Book.h and Warehouse.h header files provided below. You should create Book.epp and Warehouse.cpp to implement the two classes. Develop a program, name Proj03.cpp, to use the Warehouse object to read from the input textbook record file and create a list of book objects This program can perform 2 functions . List: to list all the textbook records read from the input file Find: to lookup a specific textbook record by the input ISBN number. The ISBN number is in alphanumeric. You should only have the following source files in your submission Book.h contains the Book class declaration Book.cpp contains the Book class implementation. Warehouse.h contains the Warehouse class declaration Warehouse.cpp contains the Warehouse class implementation proj03.cpp – contains the main function and any global helper functions Your program will read all input from the command line, no prompting for user input and hardcoding for input file name. The required program output is provided below Declaration of Book class: // efile Book.h #ifndef BOOK H #define BOOK H #include <iostream> #include <string> using namespace std class Book @param is the input stream @param book the book object to be filled *@return the input stream friend istream& operator >> (istream& is, Book& book); @param os the output stream @param book the book object reference *Creturn the output streanm friend ostream& operator < (ostream& os, const Book& book) public: static const int MAX AUTHORS = 35; Book We were unable to transcribe this imagePrints the inventory of the Warehouse (i.e. list all the books) void list const; private extra credit/ void sort private: Book* head; int bookCount; #endif /* WAREHOUSE H */ Example Output cat book . dat C++ Network Programming Volume 1 2 Douglas C. Schmidt Stephen D. Huston Addison-Wesley 2002 35.99 0-201-60464-7 236 Programming Ruby 2 David Thomas Andrew Hunt Addison-Wesley 2001 42.95 0-201-71089-7 123 Problem Solving with C++- The Object of Programming Walter Savitch Addison Wesley Longman, Inc. 2001 74.00 0-201-70390-4 325 % ./proj 03 ./proj02 <input file find <isbn> ./proj02 <input file list ⅝ ./proj 03 books .dat list Title: C++ Network Programming – Volume 1 Author: Douglas C. Schmidt Author: Stephen D. Huston Publisher: Addison-Wesley Year: 2002 Cover: Paperback Price: $35.99 ISBN: 0-201-60464-7 Copies: 236 Title: Programming Ruby Author: David Thomas Auth r: Andrew Hunt Publisher: Addison-Wesley Year: 2001 Cover: Paperback Price: $42.95 ISBN: 0-201-71089-7 Copies: 123 % ./proj 02 books . dat find 0-201-60464-7 ISBN: 0-201-60464-7FOUND Title: C++ Network Programming Volume 1 Author: Douglas C. Schmidt Author: Stephen D. Huston Publisher: Addison-Wesley Year: 2002 Cover: Paperback Price: $35.99 ISBN: 0-201-60464-7 Copies: 236 Extra Credit: Implement an internal sort method for the Warehouse class to sort the list of Book objects stored in the Warehouse’s internal list. This method should be call one time in the Warehouse’s operator >> method after the list of book objects is read from the file Show transcribed image text Objectives: Linked List, Pointer, and Dynamic Object This project is a continuation from Project 3. The program should accept the same input data file and support the same list and find operations. Rather than use an array to storage all the book object, you will implement a Linked List data structure to storage dynamic book objects. Use the update Book.h and Warehouse.h header files provided below. You should create Book.epp and Warehouse.cpp to implement the two classes. Develop a program, name Proj03.cpp, to use the Warehouse object to read from the input textbook record file and create a list of book objects This program can perform 2 functions . List: to list all the textbook records read from the input file Find: to lookup a specific textbook record by the input ISBN number. The ISBN number is in alphanumeric. You should only have the following source files in your submission Book.h contains the Book class declaration Book.cpp contains the Book class implementation. Warehouse.h contains the Warehouse class declaration Warehouse.cpp contains the Warehouse class implementation proj03.cpp – contains the main function and any global helper functions Your program will read all input from the command line, no prompting for user input and hardcoding for input file name. The required program output is provided below Declaration of Book class: // efile Book.h #ifndef BOOK H #define BOOK H #include #include using namespace std class Book @param is the input stream @param book the book object to be filled *@return the input stream friend istream& operator >> (istream& is, Book& book); @param os the output stream @param book the book object reference *Creturn the output streanm friend ostream& operator
Expert Answer
Answer to Objectives: Linked List, Pointer, and Dynamic Object This project is a continuation from Project 3. The program should a… . . .
OR

