Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer as soon as possible, i give likes. class is already defined, i just need the others from here down: / Which header files

please answer as soon as possible, i give likes.
class is already defined, i just need the others image text in transcribed
from here down:
image text in transcribed
image text in transcribed
/ Which header files should be included? The class variable is initialized to 0 // The default constructor initializes the title to the // empty string and pages to 0 . booknumber is initialized 1/. to one more than the current value of bookscreated, I/ and bookscreated is incremented. I/ The copy constructor initializes bookNumber to one more II than the current value of bookscreated, and bookscreated 1/ is incremented. It initializes the title and pages to the II same value as that of the title and pages of the parameter. 1/ The destructor prints the phrase "Book number [number] has 1/ been removed from the collection" II define the setters and getters 1/ The printBook method uses printf to print the book's state 1/ in a table ready format. It prints the book number aligned 1/ to the left in a 3-space column, the number of pages also 1/ aligned to the left in an 8-space column, and finally the I/ book's title (no column size). 11 declare a pointer to a Book object named mycollection If and initialize it to the null pointer 1/ declare an integer variable named books and initialize it to 0 1f prompt the user for the amount of books using the phrase 1/ "Enter the anount of books in your collection: ", and store If the value in the previously declared integer variable 1f The value used must be greater then 3 // Create a Book array using the number of books as the size II Implement a for iteration control structure to prompt the user 1/ for the title and number of pages of each book in the collection If Create a Book object named copia using the copy constructor and 1f the reference of the second book in the array. If change the title of copia to add volume II at the end 1f print the following header using the same column sizes as in printBook 1/ The data to be printed in the \# symbol, PAGES, and TITLE // Using a for iteration control structure call the print method for each book 1/ Release the menory allocated to the Book array I/ print a statement with your personal information using the phrase 1/. ".. Program developed by [YOUR NAME], IDI [YOUR ID NUMBBR] ."" /f where the square brackets and the text within is substituted with your personal 1/ information. Make sure to add a blank line before and after the phrase is printed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Real Time Database And Information Systems Research Advances

Authors: Azer Bestavros ,Victor Fay-Wolfe

1st Edition

1461377803, 978-1461377801

More Books

Students also viewed these Databases questions

Question

Discuss acceptance sampling.

Answered: 1 week ago

Question

List behaviors to improve effective leadership in meetings

Answered: 1 week ago