Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

in c++ QUESTION 2 (15 pts): Implement class Book that represents a book with the following: 1. Attributes a. book_title (string), b. book_author (string), c.

image text in transcribed

in c++

QUESTION 2 (15 pts): Implement class Book that represents a book with the following: 1. Attributes a. book_title (string), b. book_author (string), c. book_count (int), to represent the available number of copies of the book d. book_price (Price). 2. A parameterized constructor to set all Book data members 3. setters for all data members 4. getters for all data members 5. void modifyBookCount(int n), modify current value of book_count by the amount n (n can be positive or 6. void printBook(), a member function to print the book information title, author, and price). Submit two files for this part, book.h (for the class interface) and book.cpp (for the class implementation)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

Explain the pages in white the expert taxes

Answered: 1 week ago