Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Solution MUST be in C++. Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication. Design

The Solution MUST be in C++.

Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication. Design a class bookType that defines the book as an ADT.

Each object of the class bookType can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of authors, add another member variable.

Include the member functions to perform the various operations on objects of type bookType. For example, the usual operations that can be performed on the title are to show the title, set the title, and check whether a title is the same as the actual title of the book. Similarly, the typical operations that can be performed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock, and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors and a destructor (if one is needed).

Write the definitions of the member functions of the class bookType.

Utilize the attached main program file that is designed to make calls to the class elements and use the variables defined in the class. Make certain that you have a header file and an implementation file and that you submit those files. Use the attached bookData.txt file with sample data. The main program reads the data from the file.

image text in transcribed

Please read the above description to get the output!!

Here is a screen shot of the output you should get from your program: studio 20121Projects Ch10 Ex8 Debug Ch10 Ex8.exe elcome to Rock' s Book Store o make a selection enter the nunbe r and press enter Print a list of books : Print a list of books and ISBN nunbers : Io see if a book in store :To update the nunber of copies of a book :To print books data :Exit the progran itle: C++Prograning: Fron Problen Analysis to Progran Design itle: Fuzzy Discrete Structures itle: Fuzzy Mathematic in Medicine itle: Harry John and The Magician itle: Dynanic InterWeb Progranning elcome to Rock' s Book Store o nake a selection enter the nunber and press enter : Print a list of books : Print a list of books and ISBN nunbers : To see if a book in store :Io update th nunber of copies of a book :To print books data :Exit the progran [itle: C++Programing: Fron Problen Analysis to Progran Design ; ISBN: 5-17-52528 itle: Fuzzy Discrete StructuresISBN: 3-7988-1335-4 itle: Fuzzy Mathematic in Medicine ISBN: 3-7988-1325-7 itle: Harry John and The Magicin; ISBN: 8-239-23635-8 itle: Dynaic InterWeb Progranning ISBN: 22-99521-453-1 elcome to Rock's Book Store To nake a selection enter the nunbe : Print a 1ist of books r and press enter : Print a list of books and ISBN nunbers : To see if a book in store 4: To update the nunber of copies of a book :To print books data 9 Exit the progran nter To search the book by ISBN : To search the book by title nter the title of the book harlottes Web he store does not sel1 this book elcome to Rock's Book Store To nake a selection enter the nunber and press enter : Print a list of books : Print a list of books and ISBN nunbers : To see if a book in store : To update the nunber of copies of a book :To print books data Exit the progran nter To search the book by ISBN To search the book by title nter the ISBN of the book 908-1325- he store sells this book elcone to Rock' s Book Store o make a selection enter the nunber and press enter Print a list of books : Print a list of books and ISBN nunbers : To see if a book in store : To update th nuber of copies of a book To print books data Exit the progran nter To search the book by ISBN To search the book by title nter the title of the book uzzy Discrete Structures Enter the nunber of books15 elcone to Rock' s Book Store To make a selection enter the nunber and press enter Print a list of books : Print a list of books and ISBN nunbers : To see if a book in store 4: To update the nunber of copies of a book To print books data Exit the prosran

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions