Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hi! we are using c++. put comments to help me understand. A bookstore is to be represented as an Abtract DATA TYPE CLASS named BOOK
hi! we are using c++. put comments to help me understand.
A bookstore is to be represented as an Abtract DATA TYPE CLASS named BOOK Store Manager. A book proro Stocks books. BOOK, will be repre- (ented by the ART Class BOOK. The BOOKEDTC Manager class will cont9177, 2 "have" BOOK objects The Books will be stored in a primitive, 1-dim array, which is dynamically allocated. Goal: create two classes for this project, the PO Perles of which are shown in the following be The diagrams. Clicrt will able to add Book Objects to BOOK Store Object well other typical behavias, ruch as removing items from the array UML al clars: BOOK - un signed int - title : String ISBN: vector LTS: String Le Publisher: String + of) ) + BooK ( BOOK Cint) + BOOK ( String&, int vector strings, String Il Mutator methods + Set Publisher (string&)i void + SEKISBN (ints:void + setAuthor lint, string&): bool 11 Obrervei Methods + ger Title 11: String get ISBN 1) :int t get Author line): string + get Publisher [] : string + tostring: string + clair BOOK Store Manager BODK: BOOK* nmbr BOOKS:int array capacity :int INIT - SIZE; static const int RESIZE_FACTOR : static Corst int + BOOKStore Manager () + BOOK Store Manager (const BODKitore Manager t~ BOOK store Manager () D Mutator Methods + insert Lionst BOOK & J:void + remove (const BOOK & bool tromou epublicher l string of Hint ll Observer Methods t is Empty (): 600 l + capacity (): unsigned + list Sizell : Unligned Search Iconst BOOK of 1: unsigned + to string(): sting t The array for the BOOK Object is dynamically allocated. The parameterleri Constructor shall allocate Heap Memory for INIT SIZE , BOOK Objects. Define IMIT-SIZE to be 2, the initial capacity of the array. 2 to 2, constant RESIZE-FACTOR, the new capacity initialized determines
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started