C++ Programming: From Problem Analysis To Program Design, Loose-leaf Version
C++ Programming: From Problem Analysis To Program Design, Loose-leaf Version
8th Edition
ISBN: 9781337684392
Author: Malik, D. S.
Publisher: Cengage Learning
bartleby

Videos

Textbook Question
Book Icon
Chapter 10, Problem 12PE
  1. 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.

    1. 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.

    2. 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).

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

  3. 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.

Blurred answer
Students have asked these similar questions
Problem: Course information System Super Class Attributes Methods : Student Studentid, StudentName, Address, Level Set the student details using constructor Display the Student details Sub class : Course Attributes Methods Coures1, Course2, Credit1, Credit 2, Mark1, Mark2 Set the course details using constructor Calculate the total number of credits Calculate the total number of marks Display the course details Driver Class : Display the student details and course details. The following information are required for the assignment Properties with proper data types Methods with proper return types and scope Demonstration of OOP feature- (Inheritance) Demonstration of user defined package Proper naming convention Proper comments in each program and within program Purpose of each code should be explained. Program Execution (output) Presentation (Word Document) 56S1740
Cruise Recreational Activities Example Recreational activities include things like aerobics, shuffle board, and swimming.  Each activity is identified by an activity code and includes other information such as description.  Classes are offered for each activity.  A class is uniquely identified by a combination of the activity code and the day/time at which it is held.  It is assumed that a specific class will never be offered for the same activity at the same day and time, although it could be offered on a different day and/or time.  Other information about a class includes the enrollment limit and the current enrollment count.  A class will never include more than one activity.  A passenger can sign up for a class as long as there is sufficient room in the class.  Passengers are identified by a unique passenger number.  Other information stored about passengers includes name, address, and age.  Passengers have no limit on the number and type of classes they can sign up for.  When they…
8
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
C++ Data Members; Author: CppNuts;https://www.youtube.com/watch?v=StlsYRNnWaE;License: Standard YouTube License, CC-BY