Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++**** Implement a Book class. The book class should have the following have private member variables for the ISBN (store as a string), title, author

C++****

Implement a Book class. The book class should have the following have private member variables for the ISBN (store as a string), title, author and whether or not the book is checked out or not. ? Write a constructor that assigns values to each member variable as well as a default constructor that leaves data uninitialized. ? Write public methods for retrieving these data values. ? Write a public method for checking a book in and out. ? Write a public method -- istream& read_book(istream& is); ? We will use this function to load a single books data into a Book object. ? This method will read a Book s data (from a text file) in the following format:

( Title: "Adventures of Huckleberry Finn" ) ( ISBN: 1234567 ) ( Author: Mark Twain )

Add operators for the Book class. Have the == operator check whether the ISBN numbers are the

same for two books. Have != also compare the ISBN numbers. Have << print out the title, author, and ISBN on separate lines. ==, != should be class methods, and << must be a function.

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Define and measure service productivity.

Answered: 1 week ago