Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is to be written in C++ entirely, thank you, this is also ONE QUESTION! The problem from chapter 10 is included because the assignment
This is to be written in C++ entirely, thank you, this is also ONE QUESTION! The problem from chapter 10 is included because the assignment is not possible to complete without using it as a reference. Please read the instructions carefully!
DO NOT COPY AND PASTE THE OTHER ANSWERS ON THIS SITE! THEY ARE INCORRECT YOU WILL RECEIVE A THUMBS DOWN
PROBLEM FROM TEXTBOOK CHAPTER 10
Program the following problem from the textbook Chapter 10 o Pg 732 - Programming Exercise 10 - bookType class program . Create the BookType class as specified in the book Set the array to 10 rather than 100 as specified in the book . When you write the program to use the BookType class, structure the program as follows: Create a menu with the following options Enter Book Information . Update Book information The Update choice should allow the user to change the book publisher, ISBN, price, number of copies, one of the authors . Search by Title Search by ISBN . Exit . The program should return the appropriate message if there are no books yet entered . The choice to enter Book information should not allow you to enter more books once the limit of 10 is entered The Update menu choice should allow you to update any data member of the bookType object. . The Update menu choice should print out all data elements for the book after the data has been updated The search menu choices should print out the information for the book if it is found, or provide a message that the book was not found The user should be allowed to use all menu functions until they decide to exit the program. The program should not exit when the array is full 10. a. 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. i. 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. ii. 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. Write a program that uses the class bookType and tests various operations on the objects of the class bookType. Declare an array of 100 components of type bookType. Some of the operations that you should perform are to search for a book by its title, search by ISBN, and update the number of copies of a book. b. CStep 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